[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

eepro.c




eepro.c seems to be convinced that he must probe for internet 
etherexpress at 0x240.  


I also found

static unsigned int eepro_portlist[] =
   { 0x200, 0x240, 0x280, 0x2C0, 0x300, 0x320, 0x340, 0x360, 0};

So, eepro.c is also convinced that a card on 0x230 can't exist.
This isn't true.  My card is on 0x230.  I (finally) solved the problem saying

>int
>eepro_probe(struct device *dev)
>{
>        int i;
>        int base_addr = dev ? dev->base_addr : 0;
>
>// /////////// begin of jan's code
>        dev->base_addr = base_addr = 0x230;
>// /////////// end of jan's code
>
>        if (base_addr > 0x1ff)          /* Check a single specified 
>location. */
>                return eepro_probe1(dev, base_addr);
>

but this doesn't seem a clean way to solve the problem.  Is there info 
(doc/howto/....) available about clean kernel programming?


Jan Ramon
(ramon@cs.kuleuven.ac.be)



Reply to: