Changeset 506a805 in mainline for uspace/srv/hw/netif/dp8390/ne2000.h
- Timestamp:
- 2011-01-06T14:57:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a6e4ac2
- Parents:
- d3c9b60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/ne2000.h
rd3c9b60 r506a805 16 16 /** DP8390 register offset. 17 17 */ 18 #define NE_DP8390 18 #define NE_DP8390 0x00 19 19 20 20 /** Data register. 21 21 */ 22 #define NE_DATA 22 #define NE_DATA 0x10 23 23 24 24 /** Reset register. 25 25 */ 26 #define NE_RESET 0x1F26 #define NE_RESET 0x1f 27 27 28 28 /** NE1000 data start. 29 29 */ 30 #define NE1000_START 30 #define NE1000_START 0x2000 31 31 32 32 /** NE1000 data size. 33 33 */ 34 #define NE1000_SIZE 34 #define NE1000_SIZE 0x2000 35 35 36 36 /** NE2000 data start. 37 37 */ 38 #define NE2000_START 38 #define NE2000_START 0x4000 39 39 40 40 /** NE2000 data size. 41 41 */ 42 #define NE2000_SIZE 42 #define NE2000_SIZE 0x4000 43 43 44 44 /** Reads 1 byte register. … … 47 47 * @returns The read value. 48 48 */ 49 #define inb_ne(dep, reg) (inb(dep->de_base_port+reg))49 #define inb_ne(dep, reg) (inb(dep->de_base_port + reg)) 50 50 51 51 /** Writes 1 byte register. … … 54 54 * @param[in] data The value to be written. 55 55 */ 56 #define outb_ne(dep, reg, data) (outb(dep->de_base_port+reg, data))56 #define outb_ne(dep, reg, data) (outb(dep->de_base_port + reg, data)) 57 57 58 58 /** Reads 1 word (2 bytes) register. … … 61 61 * @returns The read value. 62 62 */ 63 #define inw_ne(dep, reg) 63 #define inw_ne(dep, reg) (inw(dep->de_base_port+reg)) 64 64 65 65 /** Writes 1 word (2 bytes) register. … … 68 68 * @param[in] data The value to be written. 69 69 */ 70 #define outw_ne(dep, reg, data) 70 #define outw_ne(dep, reg, data) (outw(dep->de_base_port+reg, data)) 71 71 72 #endif /* __NET_NETIF_NE2000_H__ */72 #endif 73 73 74 74 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.