Searched refs:dmfep (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/uts/common/io/dmfe/ |
H A D | dmfe_main.c | 275 dmfe_chip_get32(dmfe_t *dmfep, off_t offset) in dmfe_chip_get32() argument 279 addr = (void *)(dmfep->io_reg + offset); in dmfe_chip_get32() 280 return (ddi_get32(dmfep->io_handle, addr)); in dmfe_chip_get32() 284 dmfe_chip_put32(dmfe_t *dmfep, off_t offset, uint32_t value) in dmfe_chip_put32() argument 288 addr = (void *)(dmfep->io_reg + offset); in dmfe_chip_put32() 289 ddi_put32(dmfep->io_handle, addr, value); in dmfe_chip_put32() 343 dmfe_set_opmode(dmfe_t *dmfep) in dmfe_set_opmode() argument 345 ASSERT(mutex_owned(dmfep->oplock)); in dmfe_set_opmode() 347 dmfe_chip_put32(dmfep, OPN_MODE_REG, dmfep->opmode); in dmfe_set_opmode() 355 dmfe_stop_chip(dmfe_t *dmfep, enum chip_state newstate) in dmfe_stop_chip() argument [all …]
|
H A D | dmfe_mii.c | 48 dmfe_read_eeprom(dmfe_t *dmfep, uint16_t raddr, uint8_t *ptr, int cnt) in dmfe_read_eeprom() argument 65 dmfe_chip_put32(dmfep, ETHER_ROM_REG, READ_EEPROM); in dmfe_read_eeprom() 67 dmfe_chip_put32(dmfep, ETHER_ROM_REG, READ_EEPROM_CS); in dmfe_read_eeprom() 69 dmfe_chip_put32(dmfep, ETHER_ROM_REG, READ_EEPROM_CS | SEL_CLK); in dmfe_read_eeprom() 71 dmfe_chip_put32(dmfep, ETHER_ROM_REG, READ_EEPROM_CS); in dmfe_read_eeprom() 80 dmfe_chip_put32(dmfep, ETHER_ROM_REG, in dmfe_read_eeprom() 83 dmfe_chip_put32(dmfep, ETHER_ROM_REG, in dmfe_read_eeprom() 86 dmfe_chip_put32(dmfep, ETHER_ROM_REG, in dmfe_read_eeprom() 96 dmfe_chip_put32(dmfep, ETHER_ROM_REG, in dmfe_read_eeprom() 99 dmfe_chip_put32(dmfep, ETHER_ROM_REG, in dmfe_read_eeprom() [all …]
|
H A D | dmfe_impl.h | 329 #define DRV_KS_GET(dmfep, id) \ argument 330 (((dmfep)->knp_drv) ? ((dmfep)->knp_drv)[id].value.ui64 : 0) 332 #define DRV_KS_SET(dmfep, id, val) \ argument 334 if ((dmfep)->knp_drv) \ 335 ((dmfep)->knp_drv)[id].value.ui64 = (val); \ 339 #define DRV_KS_INC(dmfep, id) \ argument 341 if ((dmfep)->knp_drv) \ 342 ((dmfep)->knp_drv)[id].value.ui64 += 1; \ 354 void dmfe_warning(dmfe_t *dmfep, const char *fmt, ...); 355 void dmfe_error(dmfe_t *dmfep, const char *fmt, ...); [all …]
|
H A D | dmfe_log.c | 70 dmfe_warning(dmfe_t *dmfep, const char *fmt, ...) in dmfe_warning() argument 77 prtdata.ifname = dmfep->ifname; in dmfe_warning() 89 reg = dmfe_chip_get32(dmfep, 8*i); in dmfe_warning() 90 cmn_err(CE_NOTE, "!%s: CR%d\t%08x", dmfep->ifname, i, reg); in dmfe_warning() 100 dmfe_error(dmfe_t *dmfep, const char *fmt, ...) in dmfe_error() argument 105 prtdata.ifname = dmfep->ifname; in dmfe_error() 120 dmfe_notice(dmfe_t *dmfep, const char *fmt, ...) in dmfe_notice() argument 125 prtdata.ifname = dmfep->ifname; in dmfe_notice() 140 dmfe_log(dmfe_t *dmfep, const char *fmt, ...) in dmfe_log() argument 145 prtdata.ifname = dmfep->ifname; in dmfe_log()
|