Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d06f2a68
Commit
d06f2a68
authored
Oct 11, 2002
by
Jean Tourrilhes
Committed by
Linus Torvalds
Oct 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irda update 3/6:
o [FEATURE] Export CRC16 helper so that drivers can use it
parent
c8dc801d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
include/net/irda/crc.h
include/net/irda/crc.h
+1
-1
net/irda/crc.c
net/irda/crc.c
+1
-1
net/irda/irsyms.c
net/irda/irsyms.c
+2
-0
No files found.
include/net/irda/crc.h
View file @
d06f2a68
...
...
@@ -28,6 +28,6 @@ static inline __u16 irda_fcs(__u16 fcs, __u8 c)
}
/* Recompute the FCS with len bytes appended. */
unsigned
short
crc_calc
(
__u16
fcs
,
__u8
const
*
buf
,
size_t
len
);
unsigned
short
irda_calc_crc16
(
__u16
fcs
,
__u8
const
*
buf
,
size_t
len
);
#endif
net/irda/crc.c
View file @
d06f2a68
...
...
@@ -57,7 +57,7 @@ __u16 const irda_crc16_table[256] =
0x7bc7
,
0x6a4e
,
0x58d5
,
0x495c
,
0x3de3
,
0x2c6a
,
0x1ef1
,
0x0f78
};
unsigned
short
crc_calc
(
__u16
fcs
,
__u8
const
*
buf
,
size_t
len
)
unsigned
short
irda_calc_crc16
(
__u16
fcs
,
__u8
const
*
buf
,
size_t
len
)
{
while
(
len
--
)
fcs
=
irda_fcs
(
fcs
,
*
buf
++
);
...
...
net/irda/irsyms.c
View file @
d06f2a68
...
...
@@ -42,6 +42,7 @@
#include <net/irda/wrapper.h>
#include <net/irda/timer.h>
#include <net/irda/parameters.h>
#include <net/irda/crc.h>
extern
struct
proc_dir_entry
*
proc_irda
;
...
...
@@ -163,6 +164,7 @@ EXPORT_SYMBOL(irda_task_delete);
EXPORT_SYMBOL
(
async_wrap_skb
);
EXPORT_SYMBOL
(
async_unwrap_char
);
EXPORT_SYMBOL
(
irda_calc_crc16
);
EXPORT_SYMBOL
(
irda_start_timer
);
EXPORT_SYMBOL
(
setup_dma
);
EXPORT_SYMBOL
(
infrared_mode
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment