Actually, I think it is a bad idea to call the routines readl_*, because
the name is pure intelism. It would be much better to have some more
descriptive names, like:
read_le16(), write_le16()
...
read_le32(), write_le32()
read_be32(), write_be32()
read_ne32(), write_ne32()
...
#define readw read_le16
#define writew write_le16
...
#define readl read_le32
#define writel write_le32
32bit chunks are called differently on different platforms.
On sparc, it is a word, 64bit type is an extended word.
On intel, a word is 16bit, long is 32bit.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.3.13 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________
-
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/