summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/cs89x0.c
diff options
context:
space:
mode:
authorMichael Brown2005-04-16 11:30:48 +0200
committerMichael Brown2005-04-16 11:30:48 +0200
commit9f0237640951470ded761abd092b18062f787954 (patch)
tree39808235d1e9b6869db86ef27882eb864b471725 /src/drivers/net/cs89x0.c
parentImprove debug message legibility. (diff)
downloadipxe-9f0237640951470ded761abd092b18062f787954.tar.gz
ipxe-9f0237640951470ded761abd092b18062f787954.tar.xz
ipxe-9f0237640951470ded761abd092b18062f787954.zip
Make isa_probe_addr a simple integer rather than a struct, to facilitate
specification of ISA_PROBE_ADDRS.
Diffstat (limited to 'src/drivers/net/cs89x0.c')
-rw-r--r--src/drivers/net/cs89x0.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/drivers/net/cs89x0.c b/src/drivers/net/cs89x0.c
index c2d09fa0..3c7dc004 100644
--- a/src/drivers/net/cs89x0.c
+++ b/src/drivers/net/cs89x0.c
@@ -463,7 +463,7 @@ static struct nic_operations cs89x0_operations = {
ETH_PROBE - Look for an adapter
***************************************************************************/
-static int cs89x0_probe_addr ( uint16_t ioaddr ) {
+static int cs89x0_probe_addr ( isa_probe_addr_t ioaddr ) {
/* if they give us an odd I/O address, then do ONE write to
the address port, to get it back to address zero, where we
expect to find the EISA signature word. */
@@ -685,14 +685,14 @@ static int cs89x0_probe ( struct dev *dev, struct isa_device *isa ) {
return 1;
}
-static struct isa_probe_addr cs89x0_probe_addrs[] = {
+static isa_probe_addr_t cs89x0_probe_addrs[] = {
#ifndef EMBEDDED
/* use "conservative" default values for autoprobing */
- { 0x300 }, { 0x320 }, { 0x340 }, { 0x200 }, { 0x220 }, { 0x240 },
- { 0x260 }, { 0x280 }, { 0x2a0 }, { 0x2c0 }, { 0x2e0 },
+ 0x300, 0x320, 0x340, 0x200, 0x220, 0x240,
+ 0x260, 0x280, 0x2a0, 0x2c0, 0x2e0,
/* if that did not work, then be more aggressive */
- { 0x301 }, { 0x321 }, { 0x341 }, { 0x201 }, { 0x221 }, { 0x241 },
- { 0x261 }, { 0x281 }, { 0x2a1 }, { 0x2c1 }, { 0x2e1 },
+ 0x301, 0x321, 0x341, 0x201, 0x221, 0x241,
+ 0x261, 0x281, 0x2a1, 0x2c1, 0x2e1,
#else
0x01000300,
#endif