Lines Matching defs:hsc

133 	struct hme_sbus_softc *hsc;
139 hsc = device_get_softc(dev);
140 sc = &hsc->hsc_hme;
154 hsc->hsc_seb_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
156 if (hsc->hsc_seb_res == NULL) {
161 sc->sc_sebt = rman_get_bustag(hsc->hsc_seb_res);
162 sc->sc_sebh = rman_get_bushandle(hsc->hsc_seb_res);
165 hsc->hsc_etx_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
167 if (hsc->hsc_etx_res == NULL) {
172 sc->sc_etxt = rman_get_bustag(hsc->hsc_etx_res);
173 sc->sc_etxh = rman_get_bushandle(hsc->hsc_etx_res);
176 hsc->hsc_erx_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
178 if (hsc->hsc_erx_res == NULL) {
183 sc->sc_erxt = rman_get_bustag(hsc->hsc_erx_res);
184 sc->sc_erxh = rman_get_bushandle(hsc->hsc_erx_res);
187 hsc->hsc_mac_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
189 if (hsc->hsc_mac_res == NULL) {
194 sc->sc_mact = rman_get_bustag(hsc->hsc_mac_res);
195 sc->sc_mach = rman_get_bushandle(hsc->hsc_mac_res);
202 hsc->hsc_mif_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
204 if (hsc->hsc_mif_res == NULL) {
211 if (start < rman_get_start(hsc->hsc_mac_res) ||
212 start + count - 1 > rman_get_end(hsc->hsc_mac_res)) {
220 start - rman_get_start(hsc->hsc_mac_res), count,
223 sc->sc_mift = rman_get_bustag(hsc->hsc_mif_res);
224 sc->sc_mifh = rman_get_bushandle(hsc->hsc_mif_res);
228 hsc->hsc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ,
230 if (hsc->hsc_ires == NULL) {
257 if ((error = bus_setup_intr(dev, hsc->hsc_ires, INTR_TYPE_NET |
258 INTR_MPSAFE, NULL, hme_intr, sc, &hsc->hsc_ih)) != 0) {
267 rman_get_rid(hsc->hsc_ires), hsc->hsc_ires);
269 if (hsc->hsc_mif_res != NULL) {
271 rman_get_rid(hsc->hsc_mif_res), hsc->hsc_mif_res);
275 rman_get_rid(hsc->hsc_mac_res), hsc->hsc_mac_res);
278 rman_get_rid(hsc->hsc_erx_res), hsc->hsc_erx_res);
281 rman_get_rid(hsc->hsc_etx_res), hsc->hsc_etx_res);
284 rman_get_rid(hsc->hsc_seb_res), hsc->hsc_seb_res);
293 struct hme_sbus_softc *hsc;
296 hsc = device_get_softc(dev);
297 sc = &hsc->hsc_hme;
298 bus_teardown_intr(dev, hsc->hsc_ires, hsc->hsc_ih);
301 rman_get_rid(hsc->hsc_ires), hsc->hsc_ires);
302 if (hsc->hsc_mif_res != NULL) {
304 rman_get_rid(hsc->hsc_mif_res), hsc->hsc_mif_res);
307 rman_get_rid(hsc->hsc_mac_res), hsc->hsc_mac_res);
309 rman_get_rid(hsc->hsc_erx_res), hsc->hsc_erx_res);
311 rman_get_rid(hsc->hsc_etx_res), hsc->hsc_etx_res);
313 rman_get_rid(hsc->hsc_seb_res), hsc->hsc_seb_res);
321 struct hme_sbus_softc *hsc;
323 hsc = device_get_softc(dev);
324 hme_suspend(&hsc->hsc_hme);
331 struct hme_sbus_softc *hsc;
333 hsc = device_get_softc(dev);
334 hme_resume(&hsc->hsc_hme);