/illumos-gate/usr/src/uts/common/io/igc/ |
H A D | igc.c | 513 igc_read32(igc_t *igc, uint32_t reg) in igc_read32() argument 516 ASSERT3U(reg, <, igc->igc_regs_size); in igc_read32() 517 addr = (uint32_t *)(igc->igc_regs_base + reg); in igc_read32() 518 return (ddi_get32(igc->igc_regs_hdl, addr)); in igc_read32() 522 igc_write32(igc_t *igc, uint32_t reg, uint32_t val) in igc_write32() argument 525 ASSERT3U(reg, <, igc->igc_regs_size); in igc_write32() 526 addr = (uint32_t *)(igc->igc_regs_base + reg); in igc_write32() 527 ddi_put32(igc->igc_regs_hdl, addr, val); in igc_write32() 536 igc_link_up(igc_t *igc) in igc_link_up() argument 538 ASSERT(MUTEX_HELD(&igc->igc_lock)); in igc_link_up() [all …]
|
H A D | igc_gld.c | 40 igc_link_to_media(igc_t *igc) in igc_link_to_media() argument 42 switch (igc->igc_link_state) { in igc_link_to_media() 53 if (igc->igc_hw.phy.media_type == map->imm_phy && in igc_link_to_media() 54 igc->igc_link_speed == map->imm_speed) { in igc_link_to_media() 75 igc_t *igc = drv; in igc_m_getstat() local 76 igc_stats_t *stats = &igc->igc_stats; in igc_m_getstat() 80 mutex_enter(&igc->igc_lock); in igc_m_getstat() 81 an_adv = igc->igc_hw.phy.autoneg_advertised; in igc_m_getstat() 86 *valp = (uint64_t)igc->igc_link_speed * 1000000; in igc_m_getstat() 89 stats->is_mprc.value.ui64 += igc_read32(igc, IGC_MPRC); in igc_m_getstat() [all …]
|
H A D | igc_stat.c | 23 igc_stats_fini(igc_t *igc) in igc_stats_fini() argument 25 if (igc->igc_ksp != NULL) { in igc_stats_fini() 26 kstat_delete(igc->igc_ksp); in igc_stats_fini() 27 igc->igc_ksp = NULL; in igc_stats_fini() 36 igc_stats_update_u64(igc_t *igc, kstat_named_t *ks, uint32_t reg) in igc_stats_update_u64() argument 38 uint64_t val = igc_read32(igc, reg); in igc_stats_update_u64() 39 val += (uint64_t)igc_read32(igc, reg + 4) << 32UL; in igc_stats_update_u64() 46 igc_t *igc; in igc_stats_update() local 52 igc = ksp->ks_private; in igc_stats_update() 53 stats = &igc->igc_stats; in igc_stats_update() [all …]
|
H A D | igc_ring.c | 184 igc_dma_acc_attr(igc_t *igc, ddi_device_acc_attr_t *accp) in igc_dma_acc_attr() argument 195 igc_dma_desc_attr(igc_t *igc, ddi_dma_attr_t *attrp) in igc_dma_desc_attr() argument 201 igc_dma_data_attr(igc_t *igc, ddi_dma_attr_t *attrp) in igc_dma_data_attr() argument 207 igc_dma_tx_attr(igc_t *igc, ddi_dma_attr_t *attrp) in igc_dma_tx_attr() argument 241 igc_dma_alloc(igc_t *igc, igc_dma_buffer_t *idb, ddi_dma_attr_t *attrp, in igc_dma_alloc() argument 249 ret = ddi_dma_alloc_handle(igc->igc_dip, attrp, DDI_DMA_DONTWAIT, NULL, in igc_dma_alloc() 252 dev_err(igc->igc_dip, CE_WARN, "!failed to allocate DMA " in igc_dma_alloc() 257 igc_dma_acc_attr(igc, &acc); in igc_dma_alloc() 262 dev_err(igc->igc_dip, CE_WARN, "!failed to allocate %lu bytes " in igc_dma_alloc() 273 dev_err(igc->igc_dip, CE_WARN, "!failed to bind %lu bytes of " in igc_dma_alloc() [all …]
|
H A D | igc_osdep.c | 32 igc_t *igc = hw->back; in igc_core_log() local 38 vdev_err(igc->igc_dip, CE_WARN, fmt, ap); in igc_core_log() 46 igc_t *igc = hw->back; in IGC_READ_REG() local 48 return (igc_read32(igc, reg)); in IGC_READ_REG() 54 igc_t *igc = hw->back; in IGC_WRITE_REG() local 56 igc_write32(igc, reg, val); in IGC_WRITE_REG() 63 igc_t *igc = hw->back; in IGC_WRITE_REG_ARRAY() local 65 ASSERT3U(reg, <, igc->igc_regs_size); in IGC_WRITE_REG_ARRAY() 66 ASSERT3U(offset + reg, <=, igc->igc_regs_size); in IGC_WRITE_REG_ARRAY() 67 igc_write32(igc, reg + offset, val); in IGC_WRITE_REG_ARRAY()
|
H A D | igc.h | 219 struct igc *irr_igc; 317 struct igc *itr_igc; 414 typedef struct igc { struct 518 extern uint32_t igc_read32(igc_t *igc, uint32_t); 519 extern void igc_write32(igc_t *igc, uint32_t, uint32_t); 527 extern void igc_hw_intr_enable(igc_t *igc); 528 extern void igc_hw_intr_disable(igc_t *igc);
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | driver-network-igc.p5m | 22 set name=pkg.fmri value=pkg:/driver/network/igc@$(PKGVERS) 30 file path=kernel/drv/$(ARCH64)/igc group=sys 33 file path=usr/share/man/man4d/igc.4d 34 driver name=igc \ 52 license usr/src/uts/common/io/igc/core/THIRDPARTYLICENSE \ 53 license=usr/src/uts/common/io/igc/core/THIRDPARTYLICENSE
|
/illumos-gate/usr/src/uts/common/io/igc/core/ |
H A D | README.illumos | 1 This directory contains the 'core' or 'common' code for the igc driver 4 in sys/dev/igc. Most files that begin with 'igc_' are part of this with 15 section of the uts/common/io/igc/igc.c theory statement.
|
/illumos-gate/usr/src/uts/intel/igc/ |
H A D | Makefile | 18 MODULE = igc 26 CPPFLAGS += -I$(UTSBASE)/common/io/igc
|
/illumos-gate/usr/src/man/man4d/ |
H A D | Makefile | 78 igc.4d \
|
/illumos-gate/exception_lists/ |
H A D | wscheck | 38 usr/src/uts/common/io/igc/core/*
|
H A D | hdrchk | 366 usr/src/uts/common/io/igc/core/*
|
H A D | copyright | 451 usr/src/uts/common/io/igc/core/*
|
H A D | cstyle | 912 usr/src/uts/common/io/igc/core/*
|
/illumos-gate/usr/src/uts/intel/ |
H A D | Makefile.intel | 397 DRV_KMODS += igc
|
/illumos-gate/usr/src/uts/common/ |
H A D | Makefile.rules | 1419 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/igc/%.c 1423 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/igc/core/%.c
|
H A D | Makefile.files | 2346 IGC_OBJS += $(IGC_CORE_OBJS) igc.o igc_osdep.o igc_gld.o igc_ring.o igc_stat.o
|