yge_port_t
yge_port_t *port = dev->d_port[i];
yge_port_t *port = dev->d_port[i];
yge_register_port(yge_port_t *port)
yge_uninit_port(yge_port_t *port)
yge_alloc_ring(yge_port_t *port, yge_dev_t *dev, yge_ring_t *ring, uint32_t num)
yge_alloc_buf(yge_port_t *port, yge_buf_t *b, size_t bufsz, int flag)
yge_txrx_dma_alloc(yge_port_t *port)
yge_txrx_dma_free(yge_port_t *port)
yge_send(yge_port_t *port, mblk_t *mp)
yge_port_t *port = dev->d_port[i];
yge_port_t *port = dev->d_port[i];
static int yge_init_port(yge_port_t *);
static void yge_uninit_port(yge_port_t *);
yge_port_t *port = dev->d_port[i];
static int yge_register_port(yge_port_t *);
yge_port_t *port = dev->d_port[i];
yge_rxeof(yge_port_t *port, uint32_t status, int len)
static int yge_intr_gmac(yge_port_t *);
static void yge_handle_hwerr(yge_port_t *, uint32_t);
yge_txeof_locked(yge_port_t *port, int idx)
static mblk_t *yge_rxeof(yge_port_t *, uint32_t, int);
static void yge_txeof(yge_port_t *, int);
yge_txeof(yge_port_t *port, int idx)
static boolean_t yge_send(yge_port_t *, mblk_t *);
yge_port_t *port;
static void yge_set_rambuffer(yge_port_t *);
static void yge_start_port(yge_port_t *);
static void yge_stop_port(yge_port_t *);
yge_port_t *port;
static int yge_alloc_ring(yge_port_t *, yge_dev_t *, yge_ring_t *, uint32_t);
static int yge_txrx_dma_alloc(yge_port_t *);
static void yge_txrx_dma_free(yge_port_t *);
yge_intr_gmac(yge_port_t *port)
static void yge_init_rx_ring(yge_port_t *);
static void yge_init_tx_ring(yge_port_t *);
yge_handle_hwerr(yge_port_t *port, uint32_t status)
static uint16_t yge_mii_readreg(yge_port_t *, uint8_t, uint8_t);
static void yge_mii_writereg(yge_port_t *, uint8_t, uint8_t, uint16_t);
static void yge_setrxfilt(yge_port_t *);
yge_port_t *port;
static void yge_stats_clear(yge_port_t *);
static void yge_stats_update(yge_port_t *);
yge_port_t *port1;
yge_port_t *port2;
void yge_error(yge_dev_t *, yge_port_t *, char *, ...);
extern void yge_phys_update(yge_port_t *);
yge_set_tx_stfwd(yge_port_t *port)
extern int yge_phys_restart(yge_port_t *, boolean_t);
extern int yge_phys_init(yge_port_t *, phy_readreg_t, phy_writereg_t);
yge_start_port(yge_port_t *port)
yge_set_rambuffer(yge_port_t *port)
yge_stop_port(yge_port_t *port)
yge_mii_readreg(yge_port_t *port, uint8_t phy, uint8_t reg)
yge_stats_clear(yge_port_t *port)
yge_stats_update(yge_port_t *port)
yge_port_t *port = arg;
yge_mii_writereg(yge_port_t *port, uint8_t phy, uint8_t reg, uint16_t val)
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_port_t *port = arg;
yge_error(yge_dev_t *dev, yge_port_t *port, char *fmt, ...)
dev->d_port[0] = kmem_zalloc(sizeof (yge_port_t), KM_SLEEP);
dev->d_port[1] = kmem_zalloc(sizeof (yge_port_t), KM_SLEEP);
kmem_free(dev->d_port[1], sizeof (yge_port_t));
kmem_free(dev->d_port[0], sizeof (yge_port_t));
kmem_free(dev->d_port[1], sizeof (yge_port_t));
kmem_free(dev->d_port[0], sizeof (yge_port_t));
yge_port_t *port = arg;
yge_port_t *port = dev->d_port[i];
yge_setrxfilt(yge_port_t *port)
yge_init_rx_ring(yge_port_t *port)
yge_init_tx_ring(yge_port_t *port)
yge_init_port(yge_port_t *port)
yge_port_t *d_port[2];
typedef int (*phy_writereg_t)(yge_port_t *, int, int, int);
typedef int (*phy_readreg_t)(yge_port_t *, int, int);