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

Re: [buildd] Speedup



On ma, 2006-11-06 at 13:19 +0100, Michael Schmitz wrote:
> What's the correct definition of ISA_SEX, given that the adapter is 8 bit
> only?

If you say adapter, do you mean the bus, or the network adapter itself?

It also depends on whether the driver uses anything other than
in[s]b()/out[s]b(). If it doesn't, ISA_SEX is irrelevant.

If it does, you will need to make the in[s]{w,l}() and out[s]{w,l}()
functions behave correctly for your bus. What happens if you do a 16 bit
read/write? What happens if you do a 32 bit read/write?

If your bus doesn't solve it for you, you may need to do 2 or 4
inb()/outb() calls (in the correct order to get a little-endian result
short/long) to emulate the "expected" behaviour.

The same goes for the string functions. You basically need to make sure
normal drivers don't have to be modified to run on your bus.


Kind regards,

Kars.




Reply to: