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
nexedi
linux
Commits
b04d4c94
Commit
b04d4c94
authored
Sep 30, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Add alloc_irdadev() interface.
parent
fb72ddb7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
include/net/irda/irda_device.h
include/net/irda/irda_device.h
+1
-0
net/irda/irda_device.c
net/irda/irda_device.c
+11
-0
net/irda/irsyms.c
net/irda/irsyms.c
+1
-0
No files found.
include/net/irda/irda_device.h
View file @
b04d4c94
...
...
@@ -223,6 +223,7 @@ int irda_device_set_raw_mode(struct net_device* self, int status);
int
irda_device_set_dtr_rts
(
struct
net_device
*
dev
,
int
dtr
,
int
rts
);
int
irda_device_change_speed
(
struct
net_device
*
dev
,
__u32
speed
);
void
irda_device_setup
(
struct
net_device
*
dev
);
struct
net_device
*
alloc_irdadev
(
int
sizeof_priv
);
/* Dongle interface */
void
irda_device_unregister_dongle
(
struct
dongle_reg
*
dongle
);
...
...
net/irda/irda_device.c
View file @
b04d4c94
...
...
@@ -387,6 +387,17 @@ void irda_device_setup(struct net_device *dev)
dev
->
flags
=
IFF_NOARP
;
}
/*
* Funciton alloc_irdadev
* Allocates and sets up an IRDA device in a manner similar to
* alloc_etherdev.
*/
struct
net_device
*
alloc_irdadev
(
int
sizeof_priv
)
{
return
alloc_netdev
(
sizeof_priv
,
"irda%d"
,
irda_device_setup
);
}
/*
* Function irda_device_txqueue_empty (dev)
*
...
...
net/irda/irsyms.c
View file @
b04d4c94
...
...
@@ -150,6 +150,7 @@ EXPORT_SYMBOL(irlap_close);
EXPORT_SYMBOL
(
irda_init_max_qos_capabilies
);
EXPORT_SYMBOL
(
irda_qos_bits_to_value
);
EXPORT_SYMBOL
(
irda_device_setup
);
EXPORT_SYMBOL
(
alloc_irdadev
);
EXPORT_SYMBOL
(
irda_device_set_media_busy
);
EXPORT_SYMBOL
(
irda_device_txqueue_empty
);
...
...
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