31 #define FXP_VENDORID_INTEL  0x8086    33 #define FXP_PCI_MMBA    0x10    34 #define FXP_PCI_IOBA    0x14    39 #define FXP_CSR_SCB_RUSCUS  0       40 #define FXP_CSR_SCB_STATACK 1       41 #define FXP_CSR_SCB_COMMAND 2       42 #define FXP_CSR_SCB_INTRCNTL    3       43 #define FXP_CSR_SCB_GENERAL 4       44 #define FXP_CSR_PORT        8       45 #define FXP_CSR_FLASHCONTROL    12      46 #define FXP_CSR_EEPROMCONTROL   14      47 #define FXP_CSR_MDICONTROL  16      48 #define FXP_CSR_FLOWCONTROL 0x19        49 #define FXP_CSR_GENCONTROL  0x1C        59 #define FXP_PORT_SOFTWARE_RESET     0    60 #define FXP_PORT_SELFTEST       1    61 #define FXP_PORT_SELECTIVE_RESET    2    62 #define FXP_PORT_DUMP           3    64 #define FXP_SCB_RUS_IDLE        0    65 #define FXP_SCB_RUS_SUSPENDED       1    66 #define FXP_SCB_RUS_NORESOURCES     2    67 #define FXP_SCB_RUS_READY       4    68 #define FXP_SCB_RUS_SUSP_NORBDS     9    69 #define FXP_SCB_RUS_NORES_NORBDS    10    70 #define FXP_SCB_RUS_READY_NORBDS    12    72 #define FXP_SCB_CUS_IDLE        0    73 #define FXP_SCB_CUS_SUSPENDED       1    74 #define FXP_SCB_CUS_ACTIVE      2    76 #define FXP_SCB_INTR_DISABLE        0x01        77 #define FXP_SCB_INTR_SWI        0x02        78 #define FXP_SCB_INTMASK_FCP     0x04    79 #define FXP_SCB_INTMASK_ER      0x08    80 #define FXP_SCB_INTMASK_RNR     0x10    81 #define FXP_SCB_INTMASK_CNA     0x20    82 #define FXP_SCB_INTMASK_FR      0x40    83 #define FXP_SCB_INTMASK_CXTNO       0x80    85 #define FXP_SCB_STATACK_FCP     0x01        86 #define FXP_SCB_STATACK_ER      0x02        87 #define FXP_SCB_STATACK_SWI     0x04    88 #define FXP_SCB_STATACK_MDI     0x08    89 #define FXP_SCB_STATACK_RNR     0x10    90 #define FXP_SCB_STATACK_CNA     0x20    91 #define FXP_SCB_STATACK_FR      0x40    92 #define FXP_SCB_STATACK_CXTNO       0x80    94 #define FXP_SCB_COMMAND_CU_NOP      0x00    95 #define FXP_SCB_COMMAND_CU_START    0x10    96 #define FXP_SCB_COMMAND_CU_RESUME   0x20    97 #define FXP_SCB_COMMAND_CU_DUMP_ADR 0x40    98 #define FXP_SCB_COMMAND_CU_DUMP     0x50    99 #define FXP_SCB_COMMAND_CU_BASE     0x60   100 #define FXP_SCB_COMMAND_CU_DUMPRESET    0x70   102 #define FXP_SCB_COMMAND_RU_NOP      0   103 #define FXP_SCB_COMMAND_RU_START    1   104 #define FXP_SCB_COMMAND_RU_RESUME   2   105 #define FXP_SCB_COMMAND_RU_ABORT    4   106 #define FXP_SCB_COMMAND_RU_LOADHDS  5   107 #define FXP_SCB_COMMAND_RU_BASE     6   108 #define FXP_SCB_COMMAND_RU_RBDRESUME    7   115     volatile u_int16_t cb_status;
   116     volatile u_int16_t cb_command;
   117     volatile u_int32_t link_addr;
   121     volatile u_int16_t cb_status;
   122     volatile u_int16_t cb_command;
   123     volatile u_int32_t link_addr;
   124     volatile u_int8_t macaddr[6];
   129     volatile u_int16_t  cb_status;
   130     volatile u_int16_t  cb_command;
   131     volatile u_int32_t  link_addr;
   132     volatile u_int      byte_count:6,
   134     volatile u_int      rx_fifo_limit:4,
   137     volatile u_int8_t   adaptive_ifs;
   138     volatile u_int      mwi_enable:1,           
   143     volatile u_int      rx_dma_bytecount:7,
   145     volatile u_int      tx_dma_bytecount:7,
   147     volatile u_int      late_scb:1,         
   155     volatile u_int      disc_short_rx:1,
   160     volatile u_int      mediatype:1,            
   163     volatile u_int      tcp_udp_cksum:1,        
   173     volatile u_int      linear_priority:3,      
   175     volatile u_int      linear_pri_mode:1,      
   180     volatile u_int      promiscuous:1,
   188     volatile u_int      fc_delay_lsb:8;         
   189     volatile u_int      fc_delay_msb:8;         
   190     volatile u_int      stripping:1,
   196     volatile u_int      ia_wake_en:1,           
   216     struct mbuf *mb_head;
   217     volatile u_int16_t cb_status;
   218     volatile u_int16_t cb_command;
   219     volatile u_int32_t link_addr;
   220     volatile u_int16_t mc_cnt;
   221     volatile u_int8_t mc_addr[MAXMCADDR][6];
   232 #define FXP_NTXSEG      28   234 #define FXP_NTXSEG      29   238     volatile u_int32_t tb_addr;
   239     volatile u_int32_t tb_size;
   243     struct mbuf *mb_head;
   244     volatile u_int16_t cb_status;
   245     volatile u_int16_t cb_command;
   246     volatile u_int32_t link_addr;
   247     volatile u_int32_t tbd_array_addr;
   248     volatile u_int16_t byte_count;
   249     volatile u_int8_t tx_threshold;
   250     volatile u_int8_t tbd_number;
   257     volatile struct fxp_tbd tbd[FXP_NTXSEG];
   265 #define FXP_CB_STATUS_OK    0x2000   266 #define FXP_CB_STATUS_C     0x8000   268 #define FXP_CB_COMMAND_NOP  0x0   269 #define FXP_CB_COMMAND_IAS  0x1   270 #define FXP_CB_COMMAND_CONFIG   0x2   271 #define FXP_CB_COMMAND_MCAS 0x3   272 #define FXP_CB_COMMAND_XMIT 0x4   273 #define FXP_CB_COMMAND_RESRV    0x5   274 #define FXP_CB_COMMAND_DUMP 0x6   275 #define FXP_CB_COMMAND_DIAG 0x7   277 #define FXP_CB_COMMAND_SF   0x0008     278 #define FXP_CB_COMMAND_I    0x2000     279 #define FXP_CB_COMMAND_S    0x4000     280 #define FXP_CB_COMMAND_EL   0x8000     287     volatile u_int16_t rfa_status;
   288     volatile u_int16_t rfa_control;
   289         volatile u_int8_t link_addr[4];
   290         volatile u_int8_t rbd_addr[4];
   291     volatile u_int16_t actual_size;
   292     volatile u_int16_t size;
   294 #define FXP_RFA_STATUS_RCOL 0x0001     295 #define FXP_RFA_STATUS_IAMATCH  0x0002     296 #define FXP_RFA_STATUS_S4   0x0010     297 #define FXP_RFA_STATUS_TL   0x0020     298 #define FXP_RFA_STATUS_FTS  0x0080     299 #define FXP_RFA_STATUS_OVERRUN  0x0100     300 #define FXP_RFA_STATUS_RNR  0x0200     301 #define FXP_RFA_STATUS_ALIGN    0x0400     302 #define FXP_RFA_STATUS_CRC  0x0800     303 #define FXP_RFA_STATUS_OK   0x2000     304 #define FXP_RFA_STATUS_C    0x8000     305 #define FXP_RFA_CONTROL_SF  0x08       306 #define FXP_RFA_CONTROL_H   0x10       307 #define FXP_RFA_CONTROL_S   0x4000     308 #define FXP_RFA_CONTROL_EL  0x8000     314     volatile u_int32_t tx_good;
   315     volatile u_int32_t tx_maxcols;
   316     volatile u_int32_t tx_latecols;
   317     volatile u_int32_t tx_underruns;
   318     volatile u_int32_t tx_lostcrs;
   319     volatile u_int32_t tx_deffered;
   320     volatile u_int32_t tx_single_collisions;
   321     volatile u_int32_t tx_multiple_collisions;
   322     volatile u_int32_t tx_total_collisions;
   323     volatile u_int32_t rx_good;
   324     volatile u_int32_t rx_crc_errors;
   325     volatile u_int32_t rx_alignment_errors;
   326     volatile u_int32_t rx_rnr_errors;
   327     volatile u_int32_t rx_overrun_errors;
   328     volatile u_int32_t rx_cdt_errors;
   329     volatile u_int32_t rx_shortframes;
   330     volatile u_int32_t completion_status;
   332 #define FXP_STATS_DUMP_COMPLETE 0xa005   333 #define FXP_STATS_DR_COMPLETE   0xa007   338 #define FXP_EEPROM_EESK     0x01           339 #define FXP_EEPROM_EECS     0x02           340 #define FXP_EEPROM_EEDI     0x04           341 #define FXP_EEPROM_EEDO     0x08           346 #define FXP_EEPROM_OPC_ERASE    0x4   347 #define FXP_EEPROM_OPC_WRITE    0x5   348 #define FXP_EEPROM_OPC_READ 0x6   353 #define FXP_MDI_WRITE       0x1   354 #define FXP_MDI_READ        0x2   359 #define FXP_PHY_DEVICE_MASK 0x3f00   360 #define FXP_PHY_SERIAL_ONLY 0x8000   361 #define FXP_PHY_NONE        0   362 #define FXP_PHY_82553A      1   363 #define FXP_PHY_82553C      2   364 #define FXP_PHY_82503       3   365 #define FXP_PHY_DP83840     4   366 #define FXP_PHY_80C240      5   367 #define FXP_PHY_80C24       6   368 #define FXP_PHY_82555       7   369 #define FXP_PHY_DP83840A    10   370 #define FXP_PHY_82555B      11 Definition: if_fxpreg.h:119
 
Definition: if_fxpreg.h:214
 
Definition: if_fxpreg.h:127
 
Definition: if_fxpreg.h:313
 
Definition: if_fxpreg.h:237
 
Definition: if_fxpreg.h:113
 
Definition: if_fxpreg.h:286
 
Definition: if_fxpreg.h:241