/*********************************************************************
 *                
 * Filename:      crc.h
 * Version:       
 * Description:   CRC routines
 * Status:        Experimental.
 * Author:        Dag Brattli <dagb@cs.uit.no>
 * Created at:    Mon Aug  4 20:40:53 1997
 * Modified at:   Sun May  2 20:25:23 1999
 * Modified by:   Dag Brattli <dagb@cs.uit.no>
 * 
 ********************************************************************/

#ifndef IRDA_CRC_H
#define IRDA_CRC_H

#include <linux/types.h>
#include <linux/crc-ccitt.h>

#define INIT_FCS  0xffff   /* Initial FCS value */
#define GOOD_FCS  0xf0b8   /* Good final FCS value */

/* Recompute the FCS with one more character appended. */
#define irda_fcs(fcs, c) crc_ccitt_byte(fcs, c)

/* Recompute the FCS with len bytes appended. */
#define irda_calc_crc16(fcs, buf, len) crc_ccitt(fcs, buf, len)

#endif
d='get'>
<input type='hidden' name='id' value='9d312cfb3d91227423f6e0f318de01f317130be5'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/smc/smc_rx.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/smc/smc_rx.h?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/smc/smc_rx.h?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/smc/smc_rx.h?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/smc/smc_rx.h'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='9d312cfb3d91227423f6e0f318de01f317130be5'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/smc?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>smc</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/smc/smc_rx.h?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5'>smc_rx.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/smc/smc_rx.h?h=nds-private-remove&amp;id=9d312cfb3d91227423f6e0f318de01f317130be5&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>