diff options
Diffstat (limited to 'drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h index b1a897cd9a8d..a41106ba9719 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h | |||
@@ -955,6 +955,31 @@ enum { | |||
955 | #define NX_CRB_DEV_REF_COUNT (NETXEN_CAM_RAM(0x138)) | 955 | #define NX_CRB_DEV_REF_COUNT (NETXEN_CAM_RAM(0x138)) |
956 | #define NX_CRB_DEV_STATE (NETXEN_CAM_RAM(0x140)) | 956 | #define NX_CRB_DEV_STATE (NETXEN_CAM_RAM(0x140)) |
957 | 957 | ||
958 | /* MiniDIMM related macros */ | ||
959 | #define NETXEN_DIMM_CAPABILITY (NETXEN_CAM_RAM(0x258)) | ||
960 | #define NETXEN_DIMM_PRESENT 0x1 | ||
961 | #define NETXEN_DIMM_MEMTYPE_DDR2_SDRAM 0x2 | ||
962 | #define NETXEN_DIMM_SIZE 0x4 | ||
963 | #define NETXEN_DIMM_MEMTYPE(VAL) ((VAL >> 3) & 0xf) | ||
964 | #define NETXEN_DIMM_NUMROWS(VAL) ((VAL >> 7) & 0xf) | ||
965 | #define NETXEN_DIMM_NUMCOLS(VAL) ((VAL >> 11) & 0xf) | ||
966 | #define NETXEN_DIMM_NUMRANKS(VAL) ((VAL >> 15) & 0x3) | ||
967 | #define NETXEN_DIMM_DATAWIDTH(VAL) ((VAL >> 18) & 0x3) | ||
968 | #define NETXEN_DIMM_NUMBANKS(VAL) ((VAL >> 21) & 0xf) | ||
969 | #define NETXEN_DIMM_TYPE(VAL) ((VAL >> 25) & 0x3f) | ||
970 | #define NETXEN_DIMM_VALID_FLAG 0x80000000 | ||
971 | |||
972 | #define NETXEN_DIMM_MEM_DDR2_SDRAM 0x8 | ||
973 | |||
974 | #define NETXEN_DIMM_STD_MEM_SIZE 512 | ||
975 | |||
976 | #define NETXEN_DIMM_TYPE_RDIMM 0x1 | ||
977 | #define NETXEN_DIMM_TYPE_UDIMM 0x2 | ||
978 | #define NETXEN_DIMM_TYPE_SO_DIMM 0x4 | ||
979 | #define NETXEN_DIMM_TYPE_Micro_DIMM 0x8 | ||
980 | #define NETXEN_DIMM_TYPE_Mini_RDIMM 0x10 | ||
981 | #define NETXEN_DIMM_TYPE_Mini_UDIMM 0x20 | ||
982 | |||
958 | /* Device State */ | 983 | /* Device State */ |
959 | #define NX_DEV_COLD 1 | 984 | #define NX_DEV_COLD 1 |
960 | #define NX_DEV_INITALIZING 2 | 985 | #define NX_DEV_INITALIZING 2 |