Lines Matching defs:enet_softc

51 struct enet_softc {  struct
52 device_t sc_dev;
54 bus_space_tag_t sc_iot;
55 bus_space_handle_t sc_ioh;
56 bus_dma_tag_t sc_dmat;
58 int sc_unit;
59 int sc_imxtype;
60 int sc_rgmii;
61 int sc_phyid;
62 unsigned int sc_clock;
64 struct clk *sc_clk_ipg;
65 struct clk *sc_clk_enet;
66 struct clk *sc_clk_enet_ref;
69 void *sc_ih;
70 void *sc_ih2; /* for i.MX7 */
71 void *sc_ih3; /* for i.MX7 */
72 callout_t sc_tick_ch;
73 bool sc_stopping;
76 struct enet_txdesc *sc_txdesc_ring; /* [ENET_TX_RING_CNT] */
77 bus_dmamap_t sc_txdesc_dmamap;
78 struct enet_rxdesc *sc_rxdesc_ring; /* [ENET_RX_RING_CNT] */
79 bus_dmamap_t sc_rxdesc_dmamap;
80 struct enet_txsoft sc_txsoft[ENET_TX_RING_CNT];
81 int sc_tx_considx;
82 int sc_tx_prodidx;
83 int sc_tx_free;
84 bool sc_txbusy;
87 struct enet_rxsoft sc_rxsoft[ENET_RX_RING_CNT];
88 int sc_rx_readidx;
91 u_short sc_if_flags; /* local copy of if_flags */
92 int sc_flowflags; /* 802.3x flow control flags */
93 struct ethercom sc_ethercom; /* interface info */
94 struct mii_data sc_mii;
95 uint8_t sc_enaddr[ETHER_ADDR_LEN];
96 krndsource_t sc_rnd_source;
99 struct evcnt sc_ev_t_drop;
100 struct evcnt sc_ev_t_packets;
101 struct evcnt sc_ev_t_bc_pkt;
102 struct evcnt sc_ev_t_mc_pkt;
103 struct evcnt sc_ev_t_crc_align;
104 struct evcnt sc_ev_t_undersize;
105 struct evcnt sc_ev_t_oversize;
106 struct evcnt sc_ev_t_frag;
107 struct evcnt sc_ev_t_jab;
108 struct evcnt sc_ev_t_col;
109 struct evcnt sc_ev_t_p64;
110 struct evcnt sc_ev_t_p65to127n;
111 struct evcnt sc_ev_t_p128to255n;
112 struct evcnt sc_ev_t_p256to511;
113 struct evcnt sc_ev_t_p512to1023;
114 struct evcnt sc_ev_t_p1024to2047;
115 struct evcnt sc_ev_t_p_gte2048;
116 struct evcnt sc_ev_t_octets;
117 struct evcnt sc_ev_r_packets;
118 struct evcnt sc_ev_r_bc_pkt;
119 struct evcnt sc_ev_r_mc_pkt;
120 struct evcnt sc_ev_r_crc_align;
121 struct evcnt sc_ev_r_undersize;
122 struct evcnt sc_ev_r_oversize;
123 struct evcnt sc_ev_r_frag;
124 struct evcnt sc_ev_r_jab;
125 struct evcnt sc_ev_r_p64;
126 struct evcnt sc_ev_r_p65to127;
127 struct evcnt sc_ev_r_p128to255;
128 struct evcnt sc_ev_r_p256to511;
129 struct evcnt sc_ev_r_p512to1023;
130 struct evcnt sc_ev_r_p1024to2047;
131 struct evcnt sc_ev_r_p_gte2048;
132 struct evcnt sc_ev_r_octets;