Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bnxt/bnxt.h
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | |||||
#define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max) | #define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max) | ||||
#define BNXT_IFMEDIA_ADD(supported, fw_speed, ifm_speed) do { \ | #define BNXT_IFMEDIA_ADD(supported, fw_speed, ifm_speed) do { \ | ||||
if ((supported) & HWRM_PORT_PHY_QCFG_OUTPUT_SUPPORT_ ## fw_speed) \ | if ((supported) & HWRM_PORT_PHY_QCFG_OUTPUT_SUPPORT_ ## fw_speed) \ | ||||
ifmedia_add(softc->media, IFM_ETHER | (ifm_speed), 0, NULL); \ | ifmedia_add(softc->media, IFM_ETHER | (ifm_speed), 0, NULL); \ | ||||
} while(0) | } while(0) | ||||
#define BNXT_MIN_FRAME_SIZE 52 /* Frames must be padded to this size for some A0 chips */ | |||||
/* NVRAM access */ | /* NVRAM access */ | ||||
enum bnxt_nvm_directory_type { | enum bnxt_nvm_directory_type { | ||||
BNX_DIR_TYPE_UNUSED = 0, | BNX_DIR_TYPE_UNUSED = 0, | ||||
BNX_DIR_TYPE_PKG_LOG = 1, | BNX_DIR_TYPE_PKG_LOG = 1, | ||||
BNX_DIR_TYPE_UPDATE = 2, | BNX_DIR_TYPE_UPDATE = 2, | ||||
BNX_DIR_TYPE_CHIMP_PATCH = 3, | BNX_DIR_TYPE_CHIMP_PATCH = 3, | ||||
BNX_DIR_TYPE_BOOTCODE = 4, | BNX_DIR_TYPE_BOOTCODE = 4, | ||||
BNX_DIR_TYPE_VPD = 5, | BNX_DIR_TYPE_VPD = 5, | ||||
▲ Show 20 Lines • Show All 421 Lines • Show Last 20 Lines |