Changes in uspace/drv/nic/rtl8139/driver.h [5cd3d67:1bc35b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/rtl8139/driver.h
r5cd3d67 r1bc35b5 30 30 #define RTL8139_DRIVER_H_ 31 31 32 #include "defs.h" 33 #include "general.h" 32 34 #include <sys/types.h> 33 35 #include <stdint.h> 34 #include "defs.h"35 #include "general.h"36 36 37 37 /** The driver name */ 38 #define NAME "rtl8139" 39 38 #define NAME "rtl8139" 40 39 /** Transmittion buffers count */ 41 #define TX_BUFF_COUNT 42 43 /** Size of buffer for one frame (2kB) */ 44 #define TX_BUFF_SIZE (2 * 1024) 45 46 /** Numberof pages to allocate for TxBuffers */47 #define TX_PAGES 40 #define TX_BUFF_COUNT 4 41 /** Size of buffer for one frame 42 * - 2kB 43 */ 44 #define TX_BUFF_SIZE (2 * 1024) 45 /** Count of pages to allocate for TxBuffers */ 46 #define TX_PAGES 2 48 47 49 48 /** Size of the CRC after the received frame in the receiver buffer */ 50 #define RTL8139_CRC_SIZE 49 #define RTL8139_CRC_SIZE 4 51 50 52 51 /** The default mode of accepting unicast frames */ 53 #define RTL8139_RCR_UCAST_DEFAULT RCR_ACCEPT_PHYS_MATCH 54 52 #define RTL8139_RCR_UCAST_DEFAULT RCR_ACCEPT_PHYS_MATCH 55 53 /** The default mode of accepting multicast frames */ 56 #define RTL8139_RCR_MCAST_DEFAULT 0 57 54 #define RTL8139_RCR_MCAST_DEFAULT 0 58 55 /** The default mode of accepting broadcast frames */ 59 #define RTL8139_RCR_BCAST_DEFAULT RCR_ACCEPT_BROADCAST 60 56 #define RTL8139_RCR_BCAST_DEFAULT RCR_ACCEPT_BROADCAST 61 57 /** The default mode of accepting defect frames */ 62 #define RTL8139_RCR_DEFECT_DEFAULT 58 #define RTL8139_RCR_DEFECT_DEFAULT 0 63 59 64 60 /** Mask for accepting all multicast */ 65 #define RTL8139_MCAST_MASK_PROMISC 66 67 /** Data */61 #define RTL8139_MCAST_MASK_PROMISC UINT64_MAX 62 63 /** Data */ 68 64 struct rtl8139_rcr_data { 69 65 /** Configuration part of RCR */ … … 138 134 139 135 /** Version of RT8139 controller */ 140 rtl8139_version_id_thw_version;136 enum rtl8139_version_id hw_version; 141 137 } rtl8139_t; 138 142 139 143 140 /* ***** Pointers casting - for both amd64 and ia32 ***** */ … … 163 160 */ 164 161 #define IOADDR_TO_PTR(ioaddr) ((void*)((size_t)(ioaddr))) 162 163 165 164 166 165 /* ***** Bit operation macros ***** */ … … 178 177 * @return New value 179 178 */ 180 #define bit_set_part_g( src, value, mask, type) \179 #define bit_set_part_g( src, value, mask, type ) \ 181 180 ((type)(((src) & ~((type)(mask))) | ((value) & (type)(mask)))) 182 181 … … 238 237 bit_set_part_32(tsd_value, (size) << TSD_SIZE_SHIFT, TSD_SIZE_MASK << TSD_SIZE_SHIFT) 239 238 239 240 240 #endif
Note:
See TracChangeset
for help on using the changeset viewer.