Re: [PATCH] isa_{read,write}{w,l} fixed

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat Feb 12 2000 - 11:49:54 EST


Philipp Rumpf writes:
> So you want to do that for IP too (and all other network protocols) ? Ext2
> (all other file systems) ?

I wasn't saying that. However, I believe that the use of structures to
represent hardware devices is abserd. All datasheets I have ever seen
describe devices as a set of offsets from the start address.

The raw information is numeric. Why go to the pain of converting this to
a compiler-based structure, and then get the compiler to convert it back
to offsets again? It's not like you're using typechecking or any other
features of a structure.
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:23 EST