/*********************************************************************
 *                
 * 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
m'><form method='get'>
<input type='hidden' name='id' value='f39908d3b1c45208c6898550167bfa766fdd6bb8'/><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=f39908d3b1c45208c6898550167bfa766fdd6bb8'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/wireless/radiotap.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/wireless/radiotap.c?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/wireless/radiotap.c?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/wireless/radiotap.c?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/wireless/radiotap.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='f39908d3b1c45208c6898550167bfa766fdd6bb8'/><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=f39908d3b1c45208c6898550167bfa766fdd6bb8'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/wireless?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>wireless</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/wireless/radiotap.c?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8'>radiotap.c</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/wireless/radiotap.c?h=nds-private-remove&amp;id=f39908d3b1c45208c6898550167bfa766fdd6bb8&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>