bge_regno_t
bge_nic_putrcb(bge_t *bgep, bge_regno_t addr, bge_rcb_t *rcbp)
bge_nic_zero(bge_t *bgep, bge_regno_t addr, uint32_t nbytes)
bge_mii_access(bge_t *bgep, bge_regno_t regno, uint16_t data, uint32_t cmd)
bge_mii_get16(bge_t *bgep, bge_regno_t regno)
bge_mii_put16(bge_t *bgep, bge_regno_t regno, uint16_t data)
bge_phydsp_read(bge_t *bgep, bge_regno_t regno)
bge_phydsp_write(bge_t *bgep, bge_regno_t regno, uint16_t data)
bge_seeprom_access(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp)
bge_flash_access(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp)
bge_nvmem_rw32(bge_t *bgep, uint32_t cmd, bge_regno_t addr, uint32_t *dp)
bge_cfg_clr16(bge_t *bgep, bge_regno_t regno, uint16_t bits)
bge_nvmem_read32(bge_t *bgep, bge_regno_t addr, uint32_t *dp)
bge_nvmem_write32(bge_t *bgep, bge_regno_t addr, uint32_t *dp)
bge_cfg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits)
bge_ape_get32(bge_t *bgep, bge_regno_t regno)
bge_ape_put32(bge_t *bgep, bge_regno_t regno, uint32_t data)
bge_ind_get32(bge_t *bgep, bge_regno_t regno)
bge_ind_put32(bge_t *bgep, bge_regno_t regno, uint32_t val)
bge_chip_poll_engine(bge_t *bgep, bge_regno_t regno,
bge_chip_reset_engine(bge_t *bgep, bge_regno_t regno)
bge_chip_disable_engine(bge_t *bgep, bge_regno_t regno, uint32_t morebits)
bge_chip_enable_engine(bge_t *bgep, bge_regno_t regno, uint32_t morebits)
void (*opfn)(bge_t *bgep, bge_regno_t reg, uint32_t bits);
static bge_regno_t quiesce_regs[] = {
bge_regno_t *rbp;
bge_regno_t regno;
bge_regno_t *rbp;
bge_reg_get32(bge_t *bgep, bge_regno_t regno)
bge_reg_put32(bge_t *bgep, bge_regno_t regno, uint32_t data)
bge_reg_set32(bge_t *bgep, bge_regno_t regno, uint32_t bits)
bge_reg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits)
bge_nic_read32(bge_t *bgep, bge_regno_t addr)
bge_reg_get64(bge_t *bgep, bge_regno_t regno)
bge_reg_put64(bge_t *bgep, bge_regno_t regno, uint64_t data)
bge_reg_putrcb(bge_t *bgep, bge_regno_t addr, bge_rcb_t *rcbp)
bge_mbx_put(bge_t *bgep, bge_regno_t regno, uint64_t data)
bge_mbx_get(bge_t *bgep, bge_regno_t regno)
bge_nic_setwin(bge_t *bgep, bge_regno_t base)
if (bgep->lastWriteZeroData && (base == (bge_regno_t)0))
bgep->lastWriteZeroData = ((base == (bge_regno_t)0) ?
bge_nic_get32(bge_t *bgep, bge_regno_t addr)
bge_nic_put32(bge_t *bgep, bge_regno_t addr, uint32_t data)
bge_nic_get64(bge_t *bgep, bge_regno_t addr)
bge_nic_put64(bge_t *bgep, bge_regno_t addr, uint64_t data)
uint16_t bge_mii_get16(bge_t *bgep, bge_regno_t regno);
void bge_mii_put16(bge_t *bgep, bge_regno_t regno, uint16_t value);
uint16_t bge_phydsp_read(bge_t *bgep, bge_regno_t regno);
void bge_phydsp_write(bge_t *bgep, bge_regno_t regno, uint16_t value);
uint32_t bge_reg_get32(bge_t *bgep, bge_regno_t regno);
void bge_reg_put32(bge_t *bgep, bge_regno_t regno, uint32_t value);
void bge_reg_set32(bge_t *bgep, bge_regno_t regno, uint32_t bits);
void bge_reg_clr32(bge_t *bgep, bge_regno_t regno, uint32_t bits);
uint32_t bge_ape_get32(bge_t *bgep, bge_regno_t regno);
void bge_ape_put32(bge_t *bgep, bge_regno_t regno, uint32_t value);
void bge_mbx_put(bge_t *bgep, bge_regno_t regno, uint64_t value);
int bge_nvmem_read32(bge_t *bgep, bge_regno_t addr, uint32_t *dp);
int bge_nvmem_write32(bge_t *bgep, bge_regno_t addr, uint32_t *dp);
void bge_nic_put32(bge_t *bgep, bge_regno_t addr, uint32_t data);
uint32_t bge_nic_read32(bge_t *bgep, bge_regno_t addr);
void bge_ind_put32(bge_t *bgep, bge_regno_t regno, uint32_t val);
uint32_t bge_ind_get32(bge_t *bgep, bge_regno_t regno);
bge_regno_t chip_mbx_reg; /* (const) h/w producer */
bge_regno_t chip_mbx_reg; /* (const) h/w consumer */
bge_regno_t chip_mbx_reg; /* (const) h/w producer */
bge_regno_t phy_mii_addr; /* should be (const) 1! */
static bge_regno_t nic_ring_addrs[BGE_BUFF_RINGS_MAX] = {
static bge_regno_t mailbox_regs[BGE_BUFF_RINGS_MAX] = {
static bge_regno_t buff_cons_xref[BGE_BUFF_RINGS_MAX] = {