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
e40cca9e
Commit
e40cca9e
authored
Dec 29, 2003
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr e100] remove __devinit markers, fixing oops
parent
068ff4a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
drivers/net/e100/e100_config.c
drivers/net/e100/e100_config.c
+4
-4
drivers/net/e100/e100_main.c
drivers/net/e100/e100_main.c
+16
-16
drivers/net/e100/e100_phy.c
drivers/net/e100/e100_phy.c
+7
-7
No files found.
drivers/net/e100/e100_config.c
View file @
e40cca9e
...
@@ -60,7 +60,7 @@ static const u8 def_config[] = {
...
@@ -60,7 +60,7 @@ static const u8 def_config[] = {
* All other init functions will only set values that are
* All other init functions will only set values that are
* different from the 82557 default.
* different from the 82557 default.
*/
*/
void
__devinit
void
e100_config_init_82557
(
struct
e100_private
*
bdp
)
e100_config_init_82557
(
struct
e100_private
*
bdp
)
{
{
/* initialize config block */
/* initialize config block */
...
@@ -104,7 +104,7 @@ e100_config_init_82557(struct e100_private *bdp)
...
@@ -104,7 +104,7 @@ e100_config_init_82557(struct e100_private *bdp)
e100_config_mulcast_enbl
(
bdp
,
false
);
e100_config_mulcast_enbl
(
bdp
,
false
);
}
}
static
void
__devinit
static
void
e100_config_init_82558
(
struct
e100_private
*
bdp
)
e100_config_init_82558
(
struct
e100_private
*
bdp
)
{
{
/* MWI enable. This should be turned on only if the adapter is a 82558/9
/* MWI enable. This should be turned on only if the adapter is a 82558/9
...
@@ -136,7 +136,7 @@ e100_config_init_82558(struct e100_private *bdp)
...
@@ -136,7 +136,7 @@ e100_config_init_82558(struct e100_private *bdp)
e100_config_long_rx
(
bdp
,
true
);
e100_config_long_rx
(
bdp
,
true
);
}
}
static
void
__devinit
static
void
e100_config_init_82550
(
struct
e100_private
*
bdp
)
e100_config_init_82550
(
struct
e100_private
*
bdp
)
{
{
/* The D102 chip allows for 32 config bytes. This value is
/* The D102 chip allows for 32 config bytes. This value is
...
@@ -160,7 +160,7 @@ e100_config_init_82550(struct e100_private *bdp)
...
@@ -160,7 +160,7 @@ e100_config_init_82550(struct e100_private *bdp)
}
}
/* Initialize the adapter's configure block */
/* Initialize the adapter's configure block */
void
__devinit
void
e100_config_init
(
struct
e100_private
*
bdp
)
e100_config_init
(
struct
e100_private
*
bdp
)
{
{
e100_config_init_82557
(
bdp
);
e100_config_init_82557
(
bdp
);
...
...
drivers/net/e100/e100_main.c
View file @
e40cca9e
...
@@ -124,7 +124,7 @@ static void e100_free_nontx_list(struct e100_private *);
...
@@ -124,7 +124,7 @@ static void e100_free_nontx_list(struct e100_private *);
static
void
e100_non_tx_background
(
unsigned
long
);
static
void
e100_non_tx_background
(
unsigned
long
);
static
inline
void
e100_tx_skb_free
(
struct
e100_private
*
bdp
,
tcb_t
*
tcb
);
static
inline
void
e100_tx_skb_free
(
struct
e100_private
*
bdp
,
tcb_t
*
tcb
);
/* Global Data structures and variables */
/* Global Data structures and variables */
char
e100_copyright
[]
__devinitdata
=
"Copyright (c) 2003 Intel Corporation"
;
char
e100_copyright
[]
=
"Copyright (c) 2003 Intel Corporation"
;
char
e100_driver_version
[]
=
"2.3.30-k1"
;
char
e100_driver_version
[]
=
"2.3.30-k1"
;
const
char
*
e100_full_driver_name
=
"Intel(R) PRO/100 Network Driver"
;
const
char
*
e100_full_driver_name
=
"Intel(R) PRO/100 Network Driver"
;
char
e100_short_driver_name
[]
=
"e100"
;
char
e100_short_driver_name
[]
=
"e100"
;
...
@@ -539,7 +539,7 @@ e100_trigger_SWI(struct e100_private *bdp)
...
@@ -539,7 +539,7 @@ e100_trigger_SWI(struct e100_private *bdp)
readw
(
&
(
bdp
->
scb
->
scb_status
));
/* flushes last write, read-safe */
readw
(
&
(
bdp
->
scb
->
scb_status
));
/* flushes last write, read-safe */
}
}
static
int
__devinit
static
int
e100_found1
(
struct
pci_dev
*
pcid
,
const
struct
pci_device_id
*
ent
)
e100_found1
(
struct
pci_dev
*
pcid
,
const
struct
pci_device_id
*
ent
)
{
{
static
int
first_time
=
true
;
static
int
first_time
=
true
;
...
@@ -823,7 +823,7 @@ module_exit(e100_cleanup_module);
...
@@ -823,7 +823,7 @@ module_exit(e100_cleanup_module);
*
*
* This routine does range checking on command-line options
* This routine does range checking on command-line options
*/
*/
void
__devinit
void
e100_check_options
(
int
board
,
struct
e100_private
*
bdp
)
e100_check_options
(
int
board
,
struct
e100_private
*
bdp
)
{
{
if
(
board
>=
E100_MAX_NIC
)
{
if
(
board
>=
E100_MAX_NIC
)
{
...
@@ -894,7 +894,7 @@ e100_check_options(int board, struct e100_private *bdp)
...
@@ -894,7 +894,7 @@ e100_check_options(int board, struct e100_private *bdp)
* If the option's value is '-1' use the specified default.
* If the option's value is '-1' use the specified default.
* Otherwise, if the value is invalid, change it to the default.
* Otherwise, if the value is invalid, change it to the default.
*/
*/
void
__devinit
void
e100_set_int_option
(
int
*
option
,
int
val
,
int
min
,
int
max
,
int
default_val
,
e100_set_int_option
(
int
*
option
,
int
val
,
int
min
,
int
max
,
int
default_val
,
char
*
name
)
char
*
name
)
{
{
...
@@ -928,7 +928,7 @@ e100_set_int_option(int *option, int val, int min, int max, int default_val,
...
@@ -928,7 +928,7 @@ e100_set_int_option(int *option, int val, int min, int max, int default_val,
* Otherwise, if the value is invalid (not 0 or 1),
* Otherwise, if the value is invalid (not 0 or 1),
* change it to the default.
* change it to the default.
*/
*/
void
__devinit
void
e100_set_bool_option
(
struct
e100_private
*
bdp
,
int
val
,
u32
mask
,
e100_set_bool_option
(
struct
e100_private
*
bdp
,
int
val
,
u32
mask
,
int
default_val
,
char
*
name
)
int
default_val
,
char
*
name
)
{
{
...
@@ -1241,7 +1241,7 @@ e100_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
...
@@ -1241,7 +1241,7 @@ e100_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
* true: if successful
* true: if successful
* false: otherwise
* false: otherwise
*/
*/
static
unsigned
char
__devinit
static
unsigned
char
e100_init
(
struct
e100_private
*
bdp
)
e100_init
(
struct
e100_private
*
bdp
)
{
{
u32
st_timeout
=
0
;
u32
st_timeout
=
0
;
...
@@ -1290,7 +1290,7 @@ e100_init(struct e100_private *bdp)
...
@@ -1290,7 +1290,7 @@ e100_init(struct e100_private *bdp)
* true: if S/W was successfully initialized
* true: if S/W was successfully initialized
* false: otherwise
* false: otherwise
*/
*/
static
unsigned
char
__devinit
static
unsigned
char
e100_sw_init
(
struct
e100_private
*
bdp
)
e100_sw_init
(
struct
e100_private
*
bdp
)
{
{
bdp
->
next_cu_cmd
=
START_WAIT
;
// init the next cu state
bdp
->
next_cu_cmd
=
START_WAIT
;
// init the next cu state
...
@@ -1318,7 +1318,7 @@ e100_sw_init(struct e100_private *bdp)
...
@@ -1318,7 +1318,7 @@ e100_sw_init(struct e100_private *bdp)
return
1
;
return
1
;
}
}
static
void
__devinit
static
void
e100_tco_workaround
(
struct
e100_private
*
bdp
)
e100_tco_workaround
(
struct
e100_private
*
bdp
)
{
{
int
i
;
int
i
;
...
@@ -1519,7 +1519,7 @@ e100_setup_tcb_pool(tcb_t *head, unsigned int qlen, struct e100_private *bdp)
...
@@ -1519,7 +1519,7 @@ e100_setup_tcb_pool(tcb_t *head, unsigned int qlen, struct e100_private *bdp)
* 0: if the operation was successful
* 0: if the operation was successful
* %-ENOMEM: if memory allocation failed
* %-ENOMEM: if memory allocation failed
*/
*/
unsigned
char
__devinit
unsigned
char
e100_alloc_space
(
struct
e100_private
*
bdp
)
e100_alloc_space
(
struct
e100_private
*
bdp
)
{
{
unsigned
long
off
;
unsigned
long
off
;
...
@@ -2508,7 +2508,7 @@ e100_cmd_complete_location(struct e100_private *bdp)
...
@@ -2508,7 +2508,7 @@ e100_cmd_complete_location(struct e100_private *bdp)
* true: if successfully cleared stat counters
* true: if successfully cleared stat counters
* false: otherwise
* false: otherwise
*/
*/
static
unsigned
char
__devinit
static
unsigned
char
e100_clr_cntrs
(
struct
e100_private
*
bdp
)
e100_clr_cntrs
(
struct
e100_private
*
bdp
)
{
{
volatile
u32
*
pcmd_complete
;
volatile
u32
*
pcmd_complete
;
...
@@ -2873,7 +2873,7 @@ e100_load_microcode(struct e100_private *bdp)
...
@@ -2873,7 +2873,7 @@ e100_load_microcode(struct e100_private *bdp)
/***************************************************************************/
/***************************************************************************/
/* Read PWA (printed wired assembly) number */
/* Read PWA (printed wired assembly) number */
void
__devinit
void
e100_rd_pwa_no
(
struct
e100_private
*
bdp
)
e100_rd_pwa_no
(
struct
e100_private
*
bdp
)
{
{
bdp
->
pwa_no
=
e100_eeprom_read
(
bdp
,
EEPROM_PWA_NO
);
bdp
->
pwa_no
=
e100_eeprom_read
(
bdp
,
EEPROM_PWA_NO
);
...
@@ -2882,7 +2882,7 @@ e100_rd_pwa_no(struct e100_private *bdp)
...
@@ -2882,7 +2882,7 @@ e100_rd_pwa_no(struct e100_private *bdp)
}
}
/* Read the permanent ethernet address from the eprom. */
/* Read the permanent ethernet address from the eprom. */
void
__devinit
void
e100_rd_eaddr
(
struct
e100_private
*
bdp
)
e100_rd_eaddr
(
struct
e100_private
*
bdp
)
{
{
int
i
;
int
i
;
...
@@ -2947,7 +2947,7 @@ e100_D101M_checksum(struct e100_private *bdp, struct sk_buff *skb)
...
@@ -2947,7 +2947,7 @@ e100_D101M_checksum(struct e100_private *bdp, struct sk_buff *skb)
/***************************************************************************/
/***************************************************************************/
/* Print the board's configuration */
/* Print the board's configuration */
void
__devinit
void
e100_print_brd_conf
(
struct
e100_private
*
bdp
)
e100_print_brd_conf
(
struct
e100_private
*
bdp
)
{
{
/* Print the string if checksum Offloading was enabled */
/* Print the string if checksum Offloading was enabled */
...
@@ -2975,7 +2975,7 @@ e100_print_brd_conf(struct e100_private *bdp)
...
@@ -2975,7 +2975,7 @@ e100_print_brd_conf(struct e100_private *bdp)
* true: if successfull
* true: if successfull
* false: otherwise
* false: otherwise
*/
*/
static
unsigned
char
__devinit
static
unsigned
char
e100_pci_setup
(
struct
pci_dev
*
pcid
,
struct
e100_private
*
bdp
)
e100_pci_setup
(
struct
pci_dev
*
pcid
,
struct
e100_private
*
bdp
)
{
{
struct
net_device
*
dev
=
bdp
->
device
;
struct
net_device
*
dev
=
bdp
->
device
;
...
@@ -3754,7 +3754,7 @@ e100_ethtool_led_blink(struct net_device *dev, struct ifreq *ifr)
...
@@ -3754,7 +3754,7 @@ e100_ethtool_led_blink(struct net_device *dev, struct ifreq *ifr)
return
0
;
return
0
;
}
}
static
inline
int
__devinit
static
inline
int
e100_10BaseT_adapter
(
struct
e100_private
*
bdp
)
e100_10BaseT_adapter
(
struct
e100_private
*
bdp
)
{
{
return
((
bdp
->
pdev
->
device
==
0x1229
)
&&
return
((
bdp
->
pdev
->
device
==
0x1229
)
&&
...
@@ -3762,7 +3762,7 @@ e100_10BaseT_adapter(struct e100_private *bdp)
...
@@ -3762,7 +3762,7 @@ e100_10BaseT_adapter(struct e100_private *bdp)
(
bdp
->
pdev
->
subsystem_device
==
0x0003
));
(
bdp
->
pdev
->
subsystem_device
==
0x0003
));
}
}
static
void
__devinit
static
void
e100_get_speed_duplex_caps
(
struct
e100_private
*
bdp
)
e100_get_speed_duplex_caps
(
struct
e100_private
*
bdp
)
{
{
u16
status
;
u16
status
;
...
...
drivers/net/e100/e100_phy.c
View file @
e40cca9e
...
@@ -132,7 +132,7 @@ e100_mdi_read(struct e100_private *bdp, u32 reg_addr, u32 phy_addr, u16 *data)
...
@@ -132,7 +132,7 @@ e100_mdi_read(struct e100_private *bdp, u32 reg_addr, u32 phy_addr, u16 *data)
}
}
}
}
static
unsigned
char
__devinit
static
unsigned
char
e100_phy_valid
(
struct
e100_private
*
bdp
,
unsigned
int
phy_address
)
e100_phy_valid
(
struct
e100_private
*
bdp
,
unsigned
int
phy_address
)
{
{
u16
ctrl_reg
,
stat_reg
;
u16
ctrl_reg
,
stat_reg
;
...
@@ -150,7 +150,7 @@ e100_phy_valid(struct e100_private *bdp, unsigned int phy_address)
...
@@ -150,7 +150,7 @@ e100_phy_valid(struct e100_private *bdp, unsigned int phy_address)
return
true
;
return
true
;
}
}
static
void
__devinit
static
void
e100_phy_address_detect
(
struct
e100_private
*
bdp
)
e100_phy_address_detect
(
struct
e100_private
*
bdp
)
{
{
unsigned
int
addr
;
unsigned
int
addr
;
...
@@ -180,7 +180,7 @@ e100_phy_address_detect(struct e100_private *bdp)
...
@@ -180,7 +180,7 @@ e100_phy_address_detect(struct e100_private *bdp)
}
}
}
}
static
void
__devinit
static
void
e100_phy_id_detect
(
struct
e100_private
*
bdp
)
e100_phy_id_detect
(
struct
e100_private
*
bdp
)
{
{
u16
low_id_reg
,
high_id_reg
;
u16
low_id_reg
,
high_id_reg
;
...
@@ -204,7 +204,7 @@ e100_phy_id_detect(struct e100_private *bdp)
...
@@ -204,7 +204,7 @@ e100_phy_id_detect(struct e100_private *bdp)
((
unsigned
int
)
high_id_reg
<<
16
));
((
unsigned
int
)
high_id_reg
<<
16
));
}
}
static
void
__devinit
static
void
e100_phy_isolate
(
struct
e100_private
*
bdp
)
e100_phy_isolate
(
struct
e100_private
*
bdp
)
{
{
unsigned
int
phy_address
;
unsigned
int
phy_address
;
...
@@ -227,7 +227,7 @@ e100_phy_isolate(struct e100_private *bdp)
...
@@ -227,7 +227,7 @@ e100_phy_isolate(struct e100_private *bdp)
}
}
}
}
static
unsigned
char
__devinit
static
unsigned
char
e100_phy_specific_setup
(
struct
e100_private
*
bdp
)
e100_phy_specific_setup
(
struct
e100_private
*
bdp
)
{
{
u16
misc_reg
;
u16
misc_reg
;
...
@@ -380,7 +380,7 @@ e100_phy_fix_squelch(struct e100_private *bdp)
...
@@ -380,7 +380,7 @@ e100_phy_fix_squelch(struct e100_private *bdp)
* Returns:
* Returns:
* NOTHING
* NOTHING
*/
*/
static
void
__devinit
static
void
e100_fix_polarity
(
struct
e100_private
*
bdp
)
e100_fix_polarity
(
struct
e100_private
*
bdp
)
{
{
u16
status
;
u16
status
;
...
@@ -916,7 +916,7 @@ e100_phy_reset(struct e100_private *bdp)
...
@@ -916,7 +916,7 @@ e100_phy_reset(struct e100_private *bdp)
schedule_timeout
(
HZ
/
2
);
schedule_timeout
(
HZ
/
2
);
}
}
unsigned
char
__devinit
unsigned
char
e100_phy_init
(
struct
e100_private
*
bdp
)
e100_phy_init
(
struct
e100_private
*
bdp
)
{
{
e100_phy_reset
(
bdp
);
e100_phy_reset
(
bdp
);
...
...
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