Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55108
b: refs/heads/master
c: 1c08bf1
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Jeff Garzik committed May 8, 2007
1 parent d22efeb commit bff908b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0e93c10faf08e8840a0b7a44abccb520ead12df
refs/heads/master: 1c08bf10658921dafae8d66be0effc915a209ab0
11 changes: 8 additions & 3 deletions trunk/drivers/net/ne.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,13 @@ static const char version2[] =
/* Do we have a non std. amount of memory? (in units of 256 byte pages) */
/* #define PACKETBUF_MEMSIZE 0x40 */

#if !defined(MODULE) && (defined(CONFIG_ISA) || defined(CONFIG_M32R))
/* Do we need a portlist for the ISA auto-probe ? */
#define NEEDS_PORTLIST
#endif

/* A zero-terminated list of I/O addresses to be probed at boot. */
#ifndef MODULE
#ifdef NEEDS_PORTLIST
static unsigned int netcard_portlist[] __initdata = {
0x300, 0x280, 0x320, 0x340, 0x360, 0x380, 0
};
Expand Down Expand Up @@ -186,7 +191,7 @@ static void ne_block_output(struct net_device *dev, const int count,
static int __init do_ne_probe(struct net_device *dev)
{
unsigned long base_addr = dev->base_addr;
#ifndef MODULE
#ifdef NEEDS_PORTLIST
int orig_irq = dev->irq;
#endif

Expand All @@ -202,7 +207,7 @@ static int __init do_ne_probe(struct net_device *dev)
if (isapnp_present() && (ne_probe_isapnp(dev) == 0))
return 0;

#ifndef MODULE
#ifdef NEEDS_PORTLIST
/* Last resort. The semi-risky ISA auto-probe. */
for (base_addr = 0; netcard_portlist[base_addr] != 0; base_addr++) {
int ioaddr = netcard_portlist[base_addr];
Expand Down

0 comments on commit bff908b

Please sign in to comment.