Lines Matching defs:tsec_softc
54 struct tsec_softc { struct
56 if_t tsec_ifp;
58 struct mtx transmit_lock; /* transmitter lock */
59 struct mtx receive_lock; /* receiver lock */
61 phandle_t node;
62 device_t dev;
63 device_t tsec_miibus;
64 struct mii_data *tsec_mii; /* MII media control */
65 int tsec_link;
67 bus_dma_tag_t tsec_tx_dtag; /* TX descriptors tag */
68 bus_dmamap_t tsec_tx_dmap; /* TX descriptors map */
69 bus_dma_tag_t tsec_tx_mtag; /* TX mbufs tag */
70 uint32_t tx_idx_head; /* TX head descriptor/bufmap index */
71 uint32_t tx_idx_tail; /* TX tail descriptor/bufmap index */
72 struct tsec_desc *tsec_tx_vaddr;/* virtual address of TX descriptors */
73 struct tsec_bufmap tx_bufmap[TSEC_TX_NUM_DESC];
75 bus_dma_tag_t tsec_rx_mtag; /* TX mbufs tag */
76 bus_dma_tag_t tsec_rx_dtag; /* RX descriptors tag */
77 bus_dmamap_t tsec_rx_dmap; /* RX descriptors map */
78 struct tsec_desc *tsec_rx_vaddr; /* vadress of RX descriptors */
80 struct rx_data_type {
84 } rx_data[TSEC_RX_NUM_DESC];
86 uint32_t rx_cur_desc_cnt;
88 struct resource *sc_rres; /* register resource */
89 int sc_rrid; /* register rid */
90 struct {
93 } sc_bas;
95 struct resource *sc_transmit_ires;
96 void *sc_transmit_ihand;
97 int sc_transmit_irid;
98 struct resource *sc_receive_ires;
99 void *sc_receive_ihand;
100 int sc_receive_irid;
101 struct resource *sc_error_ires;
102 void *sc_error_ihand;
103 int sc_error_irid;
105 int tsec_if_flags;
106 int is_etsec;
109 struct callout tsec_callout;
110 int tsec_watchdog;
113 struct mtx ic_lock;
114 uint32_t rx_ic_time; /* RW, valid values 0..65535 */
115 uint32_t rx_ic_count; /* RW, valid values 0..255 */
116 uint32_t tx_ic_time;
117 uint32_t tx_ic_count;
120 struct mbuf *frame;
122 int phyaddr;
123 bus_space_tag_t phy_bst;
124 bus_space_handle_t phy_bsh;
125 int phy_regoff;
127 uint32_t tsec_rx_raddr; /* real address of RX descriptors */
128 uint32_t tsec_tx_raddr; /* real address of TX descriptors */