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
7ce103b4
Commit
7ce103b4
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wireless wavelan{_cs}] use alloc_etherdev; remove useless net_device* typedef
parent
ab40fdb6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
138 additions
and
157 deletions
+138
-157
drivers/net/wireless/wavelan.c
drivers/net/wireless/wavelan.c
+40
-40
drivers/net/wireless/wavelan.p.h
drivers/net/wireless/wavelan.p.h
+26
-27
drivers/net/wireless/wavelan_cs.c
drivers/net/wireless/wavelan_cs.c
+48
-65
drivers/net/wireless/wavelan_cs.p.h
drivers/net/wireless/wavelan_cs.p.h
+24
-25
No files found.
drivers/net/wireless/wavelan.c
View file @
7ce103b4
This diff is collapsed.
Click to expand it.
drivers/net/wireless/wavelan.p.h
View file @
7ce103b4
...
...
@@ -469,7 +469,6 @@ static const char *version = "wavelan.c : v24 (SMP + wireless extensions) 11/12/
/****************************** TYPES ******************************/
/* Shortcuts */
typedef
struct
net_device
device
;
typedef
struct
net_device_stats
en_stats
;
typedef
struct
iw_statistics
iw_stats
;
typedef
struct
iw_quality
iw_qual
;
...
...
@@ -492,7 +491,7 @@ typedef u_char mac_addr[WAVELAN_ADDR_SIZE]; /* Hardware address */
struct
net_local
{
net_local
*
next
;
/* linked list of the devices */
device
*
dev
;
/* reverse link */
struct
net_
device
*
dev
;
/* reverse link */
spinlock_t
spinlock
;
/* Serialize access to the hardware (SMP) */
en_stats
stats
;
/* Ethernet interface statistics */
int
nresets
;
/* number of hardware resets */
...
...
@@ -542,8 +541,8 @@ static inline void
u_short
),
/* hacr */
wv_16_on
(
u_long
,
/* ioaddr */
u_short
),
/* hacr */
wv_ints_off
(
device
*
),
wv_ints_on
(
device
*
);
wv_ints_off
(
struct
net_
device
*
),
wv_ints_on
(
struct
net_
device
*
);
/* ----------------- MODEM MANAGEMENT SUBROUTINES ----------------- */
static
void
psa_read
(
u_long
,
/* Read the Parameter Storage Area. */
...
...
@@ -592,57 +591,57 @@ static inline void
u_char
*
,
/* b */
int
);
/* n */
static
void
wv_ack
(
device
*
);
wv_ack
(
struct
net_
device
*
);
static
inline
int
wv_synchronous_cmd
(
device
*
,
wv_synchronous_cmd
(
struct
net_
device
*
,
const
char
*
),
wv_config_complete
(
device
*
,
wv_config_complete
(
struct
net_
device
*
,
u_long
,
net_local
*
);
static
int
wv_complete
(
device
*
,
wv_complete
(
struct
net_
device
*
,
u_long
,
net_local
*
);
static
inline
void
wv_82586_reconfig
(
device
*
);
wv_82586_reconfig
(
struct
net_
device
*
);
/* ------------------- DEBUG & INFO SUBROUTINES ------------------- */
#ifdef DEBUG_I82586_SHOW
static
void
wv_scb_show
(
unsigned
short
);
#endif
static
inline
void
wv_init_info
(
device
*
);
/* display startup info */
wv_init_info
(
struct
net_
device
*
);
/* display startup info */
/* ------------------- IOCTL, STATS & RECONFIG ------------------- */
static
en_stats
*
wavelan_get_stats
(
device
*
);
/* Give stats /proc/net/dev */
wavelan_get_stats
(
struct
net_
device
*
);
/* Give stats /proc/net/dev */
static
void
wavelan_set_multicast_list
(
device
*
);
wavelan_set_multicast_list
(
struct
net_
device
*
);
/* ----------------------- PACKET RECEPTION ----------------------- */
static
inline
void
wv_packet_read
(
device
*
,
/* Read a packet from a frame. */
wv_packet_read
(
struct
net_
device
*
,
/* Read a packet from a frame. */
u_short
,
int
),
wv_receive
(
device
*
);
/* Read all packets waiting. */
wv_receive
(
struct
net_
device
*
);
/* Read all packets waiting. */
/* --------------------- PACKET TRANSMISSION --------------------- */
static
inline
int
wv_packet_write
(
device
*
,
/* Write a packet to the Tx buffer. */
wv_packet_write
(
struct
net_
device
*
,
/* Write a packet to the Tx buffer. */
void
*
,
short
);
static
int
wavelan_packet_xmit
(
struct
sk_buff
*
,
/* Send a packet. */
device
*
);
struct
net_
device
*
);
/* -------------------- HARDWARE CONFIGURATION -------------------- */
static
inline
int
wv_mmc_init
(
device
*
),
/* Initialize the modem. */
wv_ru_start
(
device
*
),
/* Start the i82586 receiver unit. */
wv_cu_start
(
device
*
),
/* Start the i82586 command unit. */
wv_82586_start
(
device
*
);
/* Start the i82586. */
wv_mmc_init
(
struct
net_device
*
),
/* Initialize the modem. */
wv_ru_start
(
struct
net_device
*
),
/* Start the i82586 receiver unit. */
wv_cu_start
(
struct
net_device
*
),
/* Start the i82586 command unit. */
wv_82586_start
(
struct
net_
device
*
);
/* Start the i82586. */
static
void
wv_82586_config
(
device
*
);
/* Configure the i82586. */
wv_82586_config
(
struct
net_
device
*
);
/* Configure the i82586. */
static
inline
void
wv_82586_stop
(
device
*
);
wv_82586_stop
(
struct
net_
device
*
);
static
int
wv_hw_reset
(
device
*
),
/* Reset the WaveLAN hardware. */
wv_hw_reset
(
struct
net_device
*
),
/* Reset the WaveLAN hardware. */
wv_check_ioaddr
(
u_long
,
/* ioaddr */
u_char
*
);
/* mac address (read) */
/* ---------------------- INTERRUPT HANDLING ---------------------- */
...
...
@@ -651,12 +650,12 @@ static irqreturn_t
void
*
,
struct
pt_regs
*
);
static
void
wavelan_watchdog
(
device
*
);
/* transmission watchdog */
wavelan_watchdog
(
struct
net_
device
*
);
/* transmission watchdog */
/* ------------------- CONFIGURATION CALLBACKS ------------------- */
static
int
wavelan_open
(
device
*
),
/* Open the device. */
wavelan_close
(
device
*
),
/* Close the device. */
wavelan_config
(
device
*
,
unsigned
short
);
/* Configure one device. */
wavelan_open
(
struct
net_device
*
),
/* Open the device. */
wavelan_close
(
struct
net_
device
*
),
/* Close the device. */
wavelan_config
(
struct
net_
device
*
,
unsigned
short
);
/* Configure one device. */
extern
struct
net_device
*
wavelan_probe
(
int
unit
);
/* See Space.c. */
/**************************** VARIABLES ****************************/
...
...
drivers/net/wireless/wavelan_cs.c
View file @
7ce103b4
This diff is collapsed.
Click to expand it.
drivers/net/wireless/wavelan_cs.p.h
View file @
7ce103b4
...
...
@@ -588,7 +588,6 @@ struct wavepoint_table
/****************************** TYPES ******************************/
/* Shortcuts */
typedef
struct
net_device
device
;
typedef
struct
net_device_stats
en_stats
;
typedef
struct
iw_statistics
iw_stats
;
typedef
struct
iw_quality
iw_qual
;
...
...
@@ -611,7 +610,7 @@ typedef u_char mac_addr[WAVELAN_ADDR_SIZE]; /* Hardware address */
struct
net_local
{
dev_node_t
node
;
/* ???? What is this stuff ???? */
device
*
dev
;
/* Reverse link... */
struct
net_
device
*
dev
;
/* Reverse link... */
spinlock_t
spinlock
;
/* Serialize access to the hardware (SMP) */
dev_link_t
*
link
;
/* pcmcia structure */
en_stats
stats
;
/* Ethernet interface statistics */
...
...
@@ -673,11 +672,11 @@ static inline void
hacr_write_slow
(
u_long
,
u_char
);
static
void
psa_read
(
device
*
,
/* Read the Parameter Storage Area */
psa_read
(
struct
net_
device
*
,
/* Read the Parameter Storage Area */
int
,
/* offset in PSA */
u_char
*
,
/* buffer to fill */
int
),
/* size to read */
psa_write
(
device
*
,
/* Write to the PSA */
psa_write
(
struct
net_
device
*
,
/* Write to the PSA */
int
,
/* Offset in psa */
u_char
*
,
/* Buffer in memory */
int
);
/* Length of buffer */
...
...
@@ -707,57 +706,57 @@ static void
int
);
/* number of registers */
/* ---------------------- I82593 SUBROUTINES ----------------------- */
static
int
wv_82593_cmd
(
device
*
,
/* synchronously send a command to i82593 */
wv_82593_cmd
(
struct
net_
device
*
,
/* synchronously send a command to i82593 */
char
*
,
int
,
int
);
static
inline
int
wv_diag
(
device
*
);
/* Diagnostique the i82593 */
wv_diag
(
struct
net_
device
*
);
/* Diagnostique the i82593 */
static
int
read_ringbuf
(
device
*
,
/* Read a receive buffer */
read_ringbuf
(
struct
net_
device
*
,
/* Read a receive buffer */
int
,
char
*
,
int
);
static
inline
void
wv_82593_reconfig
(
device
*
);
/* Reconfigure the controller */
wv_82593_reconfig
(
struct
net_
device
*
);
/* Reconfigure the controller */
/* ------------------- DEBUG & INFO SUBROUTINES ------------------- */
static
inline
void
wv_init_info
(
device
*
);
/* display startup info */
wv_init_info
(
struct
net_
device
*
);
/* display startup info */
/* ------------------- IOCTL, STATS & RECONFIG ------------------- */
static
en_stats
*
wavelan_get_stats
(
device
*
);
/* Give stats /proc/net/dev */
wavelan_get_stats
(
struct
net_
device
*
);
/* Give stats /proc/net/dev */
/* ----------------------- PACKET RECEPTION ----------------------- */
static
inline
int
wv_start_of_frame
(
device
*
,
/* Seek beggining of current frame */
wv_start_of_frame
(
struct
net_
device
*
,
/* Seek beggining of current frame */
int
,
/* end of frame */
int
);
/* start of buffer */
static
inline
void
wv_packet_read
(
device
*
,
/* Read a packet from a frame */
wv_packet_read
(
struct
net_
device
*
,
/* Read a packet from a frame */
int
,
int
),
wv_packet_rcv
(
device
*
);
/* Read all packets waiting */
wv_packet_rcv
(
struct
net_
device
*
);
/* Read all packets waiting */
/* --------------------- PACKET TRANSMISSION --------------------- */
static
inline
void
wv_packet_write
(
device
*
,
/* Write a packet to the Tx buffer */
wv_packet_write
(
struct
net_
device
*
,
/* Write a packet to the Tx buffer */
void
*
,
short
);
static
int
wavelan_packet_xmit
(
struct
sk_buff
*
,
/* Send a packet */
device
*
);
struct
net_
device
*
);
/* -------------------- HARDWARE CONFIGURATION -------------------- */
static
inline
int
wv_mmc_init
(
device
*
);
/* Initialize the modem */
wv_mmc_init
(
struct
net_
device
*
);
/* Initialize the modem */
static
int
wv_ru_stop
(
device
*
),
/* Stop the i82593 receiver unit */
wv_ru_start
(
device
*
);
/* Start the i82593 receiver unit */
wv_ru_stop
(
struct
net_
device
*
),
/* Stop the i82593 receiver unit */
wv_ru_start
(
struct
net_
device
*
);
/* Start the i82593 receiver unit */
static
int
wv_82593_config
(
device
*
);
/* Configure the i82593 */
wv_82593_config
(
struct
net_
device
*
);
/* Configure the i82593 */
static
inline
int
wv_pcmcia_reset
(
device
*
);
/* Reset the pcmcia interface */
wv_pcmcia_reset
(
struct
net_
device
*
);
/* Reset the pcmcia interface */
static
int
wv_hw_config
(
device
*
);
/* Reset & configure the whole hardware */
wv_hw_config
(
struct
net_
device
*
);
/* Reset & configure the whole hardware */
static
inline
void
wv_hw_reset
(
device
*
);
/* Same, + start receiver unit */
wv_hw_reset
(
struct
net_
device
*
);
/* Same, + start receiver unit */
static
inline
int
wv_pcmcia_config
(
dev_link_t
*
);
/* Configure the pcmcia interface */
static
void
...
...
@@ -768,11 +767,11 @@ static irqreturn_t
void
*
,
struct
pt_regs
*
);
static
void
wavelan_watchdog
(
device
*
);
/* Transmission watchdog */
wavelan_watchdog
(
struct
net_
device
*
);
/* Transmission watchdog */
/* ------------------- CONFIGURATION CALLBACKS ------------------- */
static
int
wavelan_open
(
device
*
),
/* Open the device */
wavelan_close
(
device
*
);
/* Close the device */
wavelan_open
(
struct
net_
device
*
),
/* Open the device */
wavelan_close
(
struct
net_
device
*
);
/* Close the device */
static
dev_link_t
*
wavelan_attach
(
void
);
/* Create a new device */
static
void
...
...
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