Lines Matching defs:hifn_softc

127 struct hifn_softc {  struct
128 device_t sc_dev; /* device backpointer */
129 struct mtx sc_mtx; /* per-instance lock */
130 bus_dma_tag_t sc_dmat; /* parent DMA tag descriptor */
131 struct resource *sc_bar0res;
132 bus_space_handle_t sc_sh0; /* bar0 bus space handle */
133 bus_space_tag_t sc_st0; /* bar0 bus space tag */
134 bus_size_t sc_bar0_lastreg;/* bar0 last reg written */
135 struct resource *sc_bar1res;
136 bus_space_handle_t sc_sh1; /* bar1 bus space handle */
137 bus_space_tag_t sc_st1; /* bar1 bus space tag */
138 bus_size_t sc_bar1_lastreg;/* bar1 last reg written */
139 struct resource *sc_irq;
140 void *sc_intrhand; /* interrupt handle */
142 u_int32_t sc_dmaier;
143 u_int32_t sc_drammodel; /* 1=dram, 0=sram */
144 u_int32_t sc_pllconfig; /* 7954/7955/7956 PLL config */
146 struct hifn_dma *sc_dma;
147 bus_dmamap_t sc_dmamap;
148 bus_dma_segment_t sc_dmasegs[1];
149 bus_addr_t sc_dma_physaddr;/* physical address of sc_dma */
150 int sc_dmansegs;
151 struct hifn_command *sc_hifn_commands[HIFN_D_RES_RSIZE];
156 int sc_cmdi, sc_srci, sc_dsti, sc_resi;
157 volatile int sc_cmdu, sc_srcu, sc_dstu, sc_resu;
158 int sc_cmdk, sc_srck, sc_dstk, sc_resk;
160 int32_t sc_cid;
161 uint16_t sc_ena;
162 int sc_maxses;
163 int sc_ramsize;
164 int sc_flags;
170 struct callout sc_rngto; /* for polling RNG */
171 struct callout sc_tickto; /* for managing DMA */
172 int sc_rngfirst;
173 int sc_rnghz; /* RNG polling frequency */
174 struct rndtest_state *sc_rndtest; /* RNG test state */
175 void (*sc_harvest)(struct rndtest_state *,
177 int sc_c_busy; /* command ring busy */
178 int sc_s_busy; /* source data ring busy */
179 int sc_d_busy; /* destination data ring busy */
180 int sc_r_busy; /* result ring busy */
181 int sc_active; /* for initial countdown */
182 int sc_needwakeup; /* ops q'd wating on resources */
183 int sc_curbatch; /* # ops submitted w/o int */
184 int sc_suspended;
186 struct cdev *sc_pkdev;