Re: [PATCH] [resend] 3c509: convert to isa_driver and pnp_driver v4

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Hemminger <shemminger@...>
Cc: <linux-kernel@...>, <netdev@...>
Date: Saturday, February 9, 2008 - 8:10 pm

On Saturday 09 February 2008 22:48:05 Stephen Hemminger wrote:

Is there any standard way to solve this without a typedef? I added 
el3_dev_fill() function which fills that card type value according to a 
parameter passed to it. "int" could be used instead and "#define EL3_ISA 
0", "#define EL3_PNP 1" - but I think that's ugly.


OK, looks like the driver will need some more patches.


I don't know anything about this, maybe in next patch.


EL3_MAX_CARDS is also used as a parameter to isa_register_driver(). The irq[] 
array (see below) is limited to 8 devices too. And finally, the card itself 
can use one of 8 different IRQs (3,5,7,2/9,10,11,12,15). So I think that it's 
not worth adding more code to support more cards.
The original driver will do bad things with more than 8 cards too - read 
beyond the end of irq[] array.


-- 
Ondrej Zary
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] [resend] 3c509: convert to isa_driver and pnp_dr..., Ondrej Zary, (Sat Feb 9, 8:10 pm)
Re: [PATCH] [resend] 3c509: convert to isa_driver and pnp_dr..., Christoph Hellwig, (Sun Feb 10, 1:18 am)
[PATCH] 3c509: convert to isa_driver and pnp_driver v5, Ondrej Zary, (Sun Feb 10, 5:03 pm)