Changeset 481 for soft/giet_vm/giet_drivers/nic_driver.h
- Timestamp:
- Jan 1, 2015, 8:23:48 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/nic_driver.h
r456 r481 76 76 }; 77 77 78 ///////////////////////////////////////////////////////////////////////////////////// 78 ////////////////////////////////////////////////////////////////////////////////////////////// 79 79 // Channel Addressable Registers 80 // A container descriptor has the following form: 81 // LOW WORD : 32 LSB bits of the container physical base address 82 // HIGH WORD : 16 MSB bits of the container physical base address + status (bit 31) 83 ///////////////////////////////////////////////////////////////////////////////////// 80 // A buffer descriptor occupies 64 bytes, but only 8 bytes (two 32 bits words) are useful: 81 // LOW WORD contains the 32 LSB bits of the buffer paddr 82 // HIGH WORD contains the 16 MSB bits of the buffer paddr, plus status (bit 31) 83 ////////////////////////////////////////////////////////////////////////////////////////////// 84 84 85 enum SoclibMultiNicChannelRegisters 85 86 { 86 87 NIC_RX_DESC_LO_0 = 0, // RX_0 descriptor low word (Read/Write) 87 88 NIC_RX_DESC_HI_0 = 1, // RX_0 descriptor high word (Read/Write) 88 NIC_RX_DESC_LO_1 = 2,// RX_1 descriptor low word (Read/Write)89 NIC_RX_DESC_HI_1 = 3,// RX_1 descriptor high word (Read/Write)90 NIC_TX_DESC_LO_0 = 4,// TX_0 descriptor low word (Read/Write)91 NIC_TX_DESC_HI_0 = 5,// TX_0 descriptor high word (Read/Write)92 NIC_TX_DESC_LO_1 = 6,// TX_1 descriptor low word (Read/Write)93 NIC_TX_DESC_HI_1 = 7,// TX_1 descriptor high word (Read/Write)94 NIC_MAC_4 = 8,// channel mac address 32 LSB bits (Read Only)95 NIC_MAC_2 = 9,// channel mac address 16 LSB bits (Read Only)96 NIC_RX_RUN = 10, // RX packets can be received (write_only)97 NIC_TX_RUN = 11, // TX packets can be transmitted (write_only)89 NIC_RX_DESC_LO_1 = 16, // RX_1 descriptor low word (Read/Write) 90 NIC_RX_DESC_HI_1 = 17, // RX_1 descriptor high word (Read/Write) 91 NIC_TX_DESC_LO_0 = 32, // TX_0 descriptor low word (Read/Write) 92 NIC_TX_DESC_HI_0 = 33, // TX_0 descriptor high word (Read/Write) 93 NIC_TX_DESC_LO_1 = 48, // TX_1 descriptor low word (Read/Write) 94 NIC_TX_DESC_HI_1 = 49, // TX_1 descriptor high word (Read/Write) 95 NIC_MAC_4 = 64, // channel mac address 32 LSB bits (Read Only) 96 NIC_MAC_2 = 65, // channel mac address 16 LSB bits (Read Only) 97 NIC_RX_RUN = 66, // RX packets can be received (write_only) 98 NIC_TX_RUN = 67, // TX packets can be transmitted (write_only) 98 99 }; 99 100
Note: See TracChangeset
for help on using the changeset viewer.