Lines Matching refs:gcp
2011 struct gem_conf *gcp; in sfeattach() local
2087 gcp = kmem_zalloc(sizeof (*gcp), KM_SLEEP); in sfeattach()
2090 (void) sprintf(gcp->gc_name, "%s%d", drv_name, unit); in sfeattach()
2093 gcp->gc_tx_buf_align = sizeof (uint8_t) - 1; in sfeattach()
2094 gcp->gc_tx_max_frags = MAXTXFRAGS; in sfeattach()
2095 gcp->gc_tx_max_descs_per_pkt = gcp->gc_tx_max_frags; in sfeattach()
2096 gcp->gc_tx_desc_unit_shift = 4; /* 16 byte */ in sfeattach()
2097 gcp->gc_tx_buf_size = TX_BUF_SIZE; in sfeattach()
2098 gcp->gc_tx_buf_limit = gcp->gc_tx_buf_size; in sfeattach()
2099 gcp->gc_tx_ring_size = TX_RING_SIZE; in sfeattach()
2100 gcp->gc_tx_ring_limit = gcp->gc_tx_ring_size; in sfeattach()
2101 gcp->gc_tx_auto_pad = B_TRUE; in sfeattach()
2102 gcp->gc_tx_copy_thresh = sfe_tx_copy_thresh; in sfeattach()
2103 gcp->gc_tx_desc_write_oo = B_TRUE; in sfeattach()
2105 gcp->gc_rx_buf_align = sizeof (uint8_t) - 1; in sfeattach()
2106 gcp->gc_rx_max_frags = MAXRXFRAGS; in sfeattach()
2107 gcp->gc_rx_desc_unit_shift = 4; in sfeattach()
2108 gcp->gc_rx_ring_size = RX_RING_SIZE; in sfeattach()
2109 gcp->gc_rx_buf_max = RX_BUF_SIZE; in sfeattach()
2110 gcp->gc_rx_copy_thresh = sfe_rx_copy_thresh; in sfeattach()
2113 gcp->gc_dev_attr = sfe_dev_attr; in sfeattach()
2114 gcp->gc_buf_attr = sfe_buf_attr; in sfeattach()
2115 gcp->gc_desc_attr = sfe_buf_attr; in sfeattach()
2118 gcp->gc_dma_attr_desc = sfe_dma_attr_desc; in sfeattach()
2120 gcp->gc_dma_attr_txbuf = sfe_dma_attr_buf; in sfeattach()
2121 gcp->gc_dma_attr_txbuf.dma_attr_align = gcp->gc_tx_buf_align+1; in sfeattach()
2122 gcp->gc_dma_attr_txbuf.dma_attr_sgllen = gcp->gc_tx_max_frags; in sfeattach()
2124 gcp->gc_dma_attr_rxbuf = sfe_dma_attr_buf; in sfeattach()
2125 gcp->gc_dma_attr_rxbuf.dma_attr_align = gcp->gc_rx_buf_align+1; in sfeattach()
2126 gcp->gc_dma_attr_rxbuf.dma_attr_sgllen = gcp->gc_rx_max_frags; in sfeattach()
2129 gcp->gc_tx_timeout = 3*ONESEC; in sfeattach()
2130 gcp->gc_tx_timeout_interval = ONESEC; in sfeattach()
2133 gcp->gc_tx_timeout_interval = ONESEC/20; /* 50mS */ in sfeattach()
2137 gcp->gc_mii_link_watch_interval = ONESEC; in sfeattach()
2138 gcp->gc_mii_an_watch_interval = ONESEC/5; in sfeattach()
2139 gcp->gc_mii_reset_timeout = MII_RESET_TIMEOUT; /* 1 sec */ in sfeattach()
2140 gcp->gc_mii_an_timeout = MII_AN_TIMEOUT; /* 5 sec */ in sfeattach()
2141 gcp->gc_mii_an_wait = 0; in sfeattach()
2142 gcp->gc_mii_linkdown_timeout = MII_LINKDOWN_TIMEOUT; in sfeattach()
2145 gcp->gc_mii_an_delay = 0; in sfeattach()
2146 gcp->gc_mii_linkdown_action = MII_ACTION_RSA; in sfeattach()
2147 gcp->gc_mii_linkdown_timeout_action = MII_ACTION_RESET; in sfeattach()
2148 gcp->gc_mii_dont_reset = B_FALSE; in sfeattach()
2154 gcp->gc_attach_chip = &sfe_attach_chip; in sfeattach()
2156 gcp->gc_reset_chip = &sfe_reset_chip_dp83815; in sfeattach()
2158 gcp->gc_reset_chip = &sfe_reset_chip_sis900; in sfeattach()
2160 gcp->gc_init_chip = &sfe_init_chip; in sfeattach()
2161 gcp->gc_start_chip = &sfe_start_chip; in sfeattach()
2162 gcp->gc_stop_chip = &sfe_stop_chip; in sfeattach()
2164 gcp->gc_multicast_hash = &sfe_mcast_hash; in sfeattach()
2167 gcp->gc_set_rx_filter = &sfe_set_rx_filter_dp83815; in sfeattach()
2169 gcp->gc_set_rx_filter = &sfe_set_rx_filter_sis900; in sfeattach()
2171 gcp->gc_set_media = &sfe_set_media; in sfeattach()
2172 gcp->gc_get_stats = &sfe_get_stats; in sfeattach()
2173 gcp->gc_interrupt = &sfe_interrupt; in sfeattach()
2176 gcp->gc_tx_desc_write = &sfe_tx_desc_write; in sfeattach()
2177 gcp->gc_tx_start = &sfe_tx_start; in sfeattach()
2178 gcp->gc_rx_desc_write = &sfe_rx_desc_write; in sfeattach()
2179 gcp->gc_rx_start = NULL; in sfeattach()
2181 gcp->gc_tx_desc_stat = &sfe_tx_desc_stat; in sfeattach()
2182 gcp->gc_rx_desc_stat = &sfe_rx_desc_stat; in sfeattach()
2183 gcp->gc_tx_desc_init = &sfe_tx_desc_init; in sfeattach()
2184 gcp->gc_rx_desc_init = &sfe_rx_desc_init; in sfeattach()
2185 gcp->gc_tx_desc_clean = &sfe_tx_desc_clean; in sfeattach()
2186 gcp->gc_rx_desc_clean = &sfe_rx_desc_clean; in sfeattach()
2190 gcp->gc_mii_probe = &sfe_mii_probe_dp83815; in sfeattach()
2191 gcp->gc_mii_init = &sfe_mii_init_dp83815; in sfeattach()
2192 gcp->gc_mii_config = &sfe_mii_config_dp83815; in sfeattach()
2193 gcp->gc_mii_sync = &sfe_mii_sync_dp83815; in sfeattach()
2194 gcp->gc_mii_read = &sfe_mii_read_dp83815; in sfeattach()
2195 gcp->gc_mii_write = &sfe_mii_write_dp83815; in sfeattach()
2196 gcp->gc_mii_tune_phy = NULL; in sfeattach()
2197 gcp->gc_flow_control = FLOW_CONTROL_NONE; in sfeattach()
2199 gcp->gc_mii_probe = &gem_mii_probe_default; in sfeattach()
2200 gcp->gc_mii_init = NULL; in sfeattach()
2201 gcp->gc_mii_config = &sfe_mii_config_sis900; in sfeattach()
2202 gcp->gc_mii_sync = &sfe_mii_sync_sis900; in sfeattach()
2203 gcp->gc_mii_read = &sfe_mii_read_sis900; in sfeattach()
2204 gcp->gc_mii_write = &sfe_mii_write_sis900; in sfeattach()
2205 gcp->gc_mii_tune_phy = &sfe_set_eq_sis630; in sfeattach()
2206 gcp->gc_flow_control = FLOW_CONTROL_RX_PAUSE; in sfeattach()
2218 dp = gem_do_attach(dip, 0, gcp, base, ®s_ha, in sfeattach()
2220 kmem_free(gcp, sizeof (*gcp)); in sfeattach()