/netbsd-src/sys/dev/pcmcia/ |
H A D | mhzc.c | 94 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 181 sc->sc_pf = pa->pf; in mhzc_attach() 228 if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_IO8, &sc->sc_modem_pcioh, in mhzc_attach() 235 if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_AUTO, &sc->sc_ethernet_pcioh, in mhzc_attach() 271 if (pcmcia_io_alloc(sc->sc_pf, in mhzc_check_cfe() 300 if (pcmcia_io_alloc(sc->sc_pf, addr, 0x10, 0x10, in mhzc_alloc_ethernet() 345 pcmcia_io_unmap(sc->sc_pf, sc->sc_modem_io_window); in mhzc_detach() 347 pcmcia_io_unmap(sc->sc_pf, sc->sc_ethernet_io_window); in mhzc_detach() 351 pcmcia_io_free(sc->sc_pf, &sc->sc_modem_pcioh); in mhzc_detach() 353 pcmcia_io_free(sc->sc_pf, &sc->sc_ethernet_pcioh); in mhzc_detach() [all …]
|
H A D | xirc.c | 88 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 175 sc->sc_pf = pa->pf; in xirc_attach() 237 if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_IO8, in xirc_attach() 246 if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_AUTO, in xirc_attach() 300 SIMPLEQ_FOREACH(cfe, &sc->sc_pf->cfe_head, cfe_list) { in xirc_mako_alloc() 304 if (pcmcia_io_alloc(sc->sc_pf, cfe->iospace[0].start, in xirc_mako_alloc() 311 if (pcmcia_io_alloc(sc->sc_pf, cfe->iospace[1].start, in xirc_mako_alloc() 315 if (pcmcia_io_alloc(sc->sc_pf, cfe->iospace[1].start, in xirc_mako_alloc() 335 SIMPLEQ_FOREACH(cfe, &sc->sc_pf->cfe_head, cfe_list) { in xirc_dingo_alloc_modem() 339 if (pcmcia_io_alloc(sc->sc_pf, cfe->iospace[0].start, in xirc_dingo_alloc_modem() [all …]
|
H A D | if_ep_pcmcia.c | 109 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 170 struct pcmcia_function *pf = psc->sc_pf; in ep_pcmcia_enable() 185 if ((psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3C562) || in ep_pcmcia_enable() 186 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556) || in ep_pcmcia_enable() 187 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556INT)) { in ep_pcmcia_enable() 208 pcmcia_function_disable(psc->sc_pf); in ep_pcmcia_disable() 209 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in ep_pcmcia_disable() 227 psc->sc_pf = pa->pf; in ep_pcmcia_attach() 330 pcmcia_io_unmap(psc->sc_pf, psc->sc_io_window); in ep_pcmcia_attach() 332 pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh); in ep_pcmcia_attach() [all …]
|
H A D | if_mbe_pcmcia.c | 62 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 171 psc->sc_pf = pa->pf; in mbe_pcmcia_attach() 248 pcmcia_function_unconfigure(psc->sc_pf); in mbe_pcmcia_detach() 260 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, mb86960_intr, in mbe_pcmcia_enable() 265 error = pcmcia_function_enable(psc->sc_pf); in mbe_pcmcia_enable() 267 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in mbe_pcmcia_enable() 279 pcmcia_function_disable(psc->sc_pf); in mbe_pcmcia_disable() 280 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in mbe_pcmcia_disable() 309 if (pcmcia_mem_alloc(psc->sc_pf, ETHER_ADDR_LEN * 2, &pcmh)) { in mbe_pcmcia_get_enaddr_from_mem() 314 if (pcmcia_mem_map(psc->sc_pf, PCMCIA_MEM_ATTR, ea->maddr, in mbe_pcmcia_get_enaddr_from_mem() [all …]
|
H A D | spc_pcmcia.c | 57 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 113 sc->sc_pf = pf; in spc_pcmcia_attach() 158 pcmcia_function_unconfigure(sc->sc_pf); in spc_pcmcia_detach() 171 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_BIO, in spc_pcmcia_enable() 176 error = pcmcia_function_enable(sc->sc_pf); in spc_pcmcia_enable() 178 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in spc_pcmcia_enable() 186 pcmcia_function_disable(sc->sc_pf); in spc_pcmcia_enable() 187 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in spc_pcmcia_enable()
|
H A D | com_pcmcia.c | 103 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 182 psc->sc_pf = pa->pf; in com_pcmcia_attach() 237 pcmcia_function_unconfigure(psc->sc_pf); in com_pcmcia_detach() 245 struct pcmcia_function *pf = psc->sc_pf; in com_pcmcia_enable() 261 if ((psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3C562) || in com_pcmcia_enable() 262 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556) || in com_pcmcia_enable() 263 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556INT)) { in com_pcmcia_enable() 282 pcmcia_function_disable(psc->sc_pf); in com_pcmcia_disable() 283 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in com_pcmcia_disable()
|
H A D | if_cs_pcmcia.c | 64 struct pcmcia_function *sc_pf; member 107 pf = psc->sc_pf = pa->pf; in cs_pcmcia_attach() 163 pcmcia_function_unconfigure(psc->sc_pf); in cs_pcmcia_detach() 174 sc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, cs_intr, sc); in cs_pcmcia_enable() 178 error = pcmcia_function_enable(psc->sc_pf); in cs_pcmcia_enable() 180 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in cs_pcmcia_enable() 192 pcmcia_function_disable(psc->sc_pf); in cs_pcmcia_disable() 193 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in cs_pcmcia_disable()
|
H A D | aic_pcmcia.c | 58 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 120 psc->sc_pf = pf; in aic_pcmcia_attach() 169 pcmcia_function_unconfigure(psc->sc_pf); in aic_pcmcia_detach() 183 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_BIO, in aic_pcmcia_enable() 188 error = pcmcia_function_enable(psc->sc_pf); in aic_pcmcia_enable() 190 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in aic_pcmcia_enable() 198 pcmcia_function_disable(psc->sc_pf); in aic_pcmcia_enable() 199 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in aic_pcmcia_enable()
|
H A D | if_an_pcmcia.c | 78 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 129 psc->sc_pf = pa->pf; in an_pcmcia_attach() 189 pcmcia_function_unconfigure(psc->sc_pf); in an_pcmcia_detach() 201 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, an_intr, sc); in an_pcmcia_enable() 205 error = pcmcia_function_enable(psc->sc_pf); in an_pcmcia_enable() 207 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in an_pcmcia_enable() 219 pcmcia_function_disable(psc->sc_pf); in an_pcmcia_disable() 220 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in an_pcmcia_disable()
|
H A D | if_sm_pcmcia.c | 72 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 145 psc->sc_pf = pa->pf; in sm_pcmcia_attach() 201 pcmcia_function_unconfigure(psc->sc_pf); in sm_pcmcia_detach() 248 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, smc91cxx_intr, in sm_pcmcia_enable() 253 error = pcmcia_function_enable(psc->sc_pf); in sm_pcmcia_enable() 255 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in sm_pcmcia_enable() 267 pcmcia_function_disable(psc->sc_pf); in sm_pcmcia_disable() 268 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in sm_pcmcia_disable()
|
H A D | nca_pcmcia.c | 59 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 122 esc->sc_pf = pf; in nca_pcmcia_attach() 205 pcmcia_function_unconfigure(sc->sc_pf); in nca_pcmcia_detach() 218 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_BIO, in nca_pcmcia_enable() 223 error = pcmcia_function_enable(sc->sc_pf); in nca_pcmcia_enable() 225 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in nca_pcmcia_enable() 233 pcmcia_function_disable(sc->sc_pf); in nca_pcmcia_enable() 234 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in nca_pcmcia_enable()
|
H A D | if_cnw.c | 190 struct pcmcia_function *sc_pf; /* PCMCIA function */ member 418 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_NET, cnw_intr, sc); in cnw_enable() 423 if (pcmcia_function_enable(sc->sc_pf) != 0) { in cnw_enable() 446 pcmcia_function_disable(sc->sc_pf); in cnw_disable() 448 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in cnw_disable() 489 sc->sc_pf = pa->pf; in cnw_attach() 490 pcmcia_function_init(sc->sc_pf, SIMPLEQ_FIRST(&sc->sc_pf->cfe_head)); in cnw_attach() 491 if (pcmcia_function_enable(sc->sc_pf)) { in cnw_attach() 499 if (pcmcia_io_alloc(sc->sc_pf, 0, CNW_IO_SIZE, CNW_IO_SIZE, in cnw_attach() 504 if (pcmcia_io_map(sc->sc_pf, PCMCIA_WIDTH_IO16, &sc->sc_pcioh, in cnw_attach() [all …]
|
H A D | pcmcom.c | 72 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 148 sc->sc_pf = pa->pf; in pcmcom_attach() 213 pcmcia_function_unconfigure(sc->sc_pf); in pcmcom_detach() 261 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_SERIAL, in pcmcom_enable() 266 error = pcmcia_function_enable(sc->sc_pf); in pcmcom_enable() 268 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in pcmcom_enable() 282 pcmcia_function_disable(sc->sc_pf); in pcmcom_disable() 283 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in pcmcom_disable()
|
H A D | if_ne_pcmcia.c | 80 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 591 psc->sc_pf = pa->pf; in ne_pcmcia_attach() 757 struct pcmcia_function *pf = psc->sc_pf; in ne_pcmcia_detach() 780 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, dp8390_intr, in ne_pcmcia_enable() 785 error = pcmcia_function_enable(psc->sc_pf); in ne_pcmcia_enable() 787 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in ne_pcmcia_enable() 799 pcmcia_function_disable(psc->sc_pf); in ne_pcmcia_disable() 800 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in ne_pcmcia_disable() 818 if (pcmcia_mem_alloc(psc->sc_pf, ETHER_ADDR_LEN * 2, &pcmh)) { in ne_pcmcia_get_enaddr() 823 if (pcmcia_mem_map(psc->sc_pf, PCMCIA_MEM_ATTR, maddr, in ne_pcmcia_get_enaddr() [all …]
|
H A D | esp_pcmcia.c | 66 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 161 esc->sc_pf = pf; in esp_pcmcia_attach() 227 pcmcia_function_unconfigure(sc->sc_pf); in esp_pcmcia_detach() 243 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_BIO, in esp_pcmcia_enable() 249 error = pcmcia_function_enable(sc->sc_pf); in esp_pcmcia_enable() 251 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in esp_pcmcia_enable() 259 pcmcia_function_disable(sc->sc_pf); in esp_pcmcia_enable() 263 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in esp_pcmcia_enable()
|
H A D | wdc_pcmcia.c | 69 struct pcmcia_function *sc_pf; member 219 sc->sc_pf = pa->pf; in wdc_pcmcia_attach() 347 pcmcia_function_unconfigure(sc->sc_pf); in wdc_pcmcia_detach() 375 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_BIO, in wdc_pcmcia_enable() 381 error = pcmcia_function_enable(sc->sc_pf); in wdc_pcmcia_enable() 384 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in wdc_pcmcia_enable() 390 pcmcia_function_disable(sc->sc_pf); in wdc_pcmcia_enable() 392 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in wdc_pcmcia_enable()
|
H A D | if_awi_pcmcia.c | 85 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 124 struct pcmcia_function *pf = psc->sc_pf; in awi_pcmcia_enable() 145 struct pcmcia_function *pf = psc->sc_pf; in awi_pcmcia_disable() 189 psc->sc_pf = pa->pf; in awi_pcmcia_attach() 252 pcmcia_function_unconfigure(psc->sc_pf); in awi_pcmcia_detach()
|
H A D | slhci_pcmcia.c | 37 struct pcmcia_function *sc_pf; member 94 psc->sc_pf = pf; in slhci_pcmcia_attach() 120 pf = psc->sc_pf; in slhci_pcmcia_enable() 171 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in slhci_pcmcia_enable()
|
H A D | if_wi_pcmcia.c | 97 struct pcmcia_function *sc_pf; /* PCMCIA function */ member 273 struct pcmcia_function *pf = psc->sc_pf; in wi_pcmcia_enable() 307 pcmcia_function_disable(psc->sc_pf); in wi_pcmcia_enable() 309 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in wi_pcmcia_enable() 341 psc->sc_pf = pa->pf; in wi_pcmcia_attach() 411 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in wi_pcmcia_detach() 413 pcmcia_function_unconfigure(psc->sc_pf); in wi_pcmcia_detach()
|
H A D | bt3c.c | 101 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 831 sc->sc_intr = pcmcia_intr_establish(sc->sc_pf, IPL_TTY, bt3c_intr, sc); in bt3c_enable() 837 err = pcmcia_function_enable(sc->sc_pf); in bt3c_enable() 853 pcmcia_function_disable(sc->sc_pf); in bt3c_enable() 855 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_intr); in bt3c_enable() 879 pcmcia_function_disable(sc->sc_pf); in bt3c_disable() 882 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_intr); in bt3c_disable() 940 sc->sc_pf = pa->pf; in bt3c_attach() 1007 pcmcia_io_unmap(sc->sc_pf, sc->sc_iow); in bt3c_detach() 1008 pcmcia_io_free(sc->sc_pf, &sc->sc_pcioh); in bt3c_detach()
|
H A D | btbc.c | 77 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 174 sc->sc_pf = pa->pf; in btbc_attach() 221 pcmcia_function_unconfigure(sc->sc_pf); in btbc_detach() 798 sc->sc_intr = pcmcia_intr_establish(sc->sc_pf, IPL_TTY, btbc_intr, sc); in btbc_enable() 804 err = pcmcia_function_enable(sc->sc_pf); in btbc_enable() 888 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_intr); in btbc_enable() 906 pcmcia_function_disable(sc->sc_pf); in btbc_disable() 909 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_intr); in btbc_disable()
|
H A D | fdc_pcmcia.c | 57 struct pcmcia_function *sc_pf; /* our PCMCIA function */ member 151 psc->sc_pf = pf; in fdc_pcmcia_attach()
|
H A D | if_xi.c | 169 if (pcmcia_mem_alloc(psc->sc_pf, PCMCIA_CCR_SIZE_DINGO, in xi_attach() 174 if (pcmcia_mem_map(psc->sc_pf, PCMCIA_MEM_ATTR, in xi_attach() 175 psc->sc_pf->ccr_base, PCMCIA_CCR_SIZE_DINGO, in xi_attach() 178 pcmcia_mem_free(psc->sc_pf, &pcmh); in xi_attach() 196 pcmcia_mem_unmap(psc->sc_pf, ccr_window); in xi_attach() 197 pcmcia_mem_free(psc->sc_pf, &pcmh); in xi_attach()
|
H A D | if_ray.c | 154 struct pcmcia_function *sc_pf; member 216 #define sc_ccrt sc_pf->pf_ccrt 217 #define sc_ccrh sc_pf->pf_ccrh 218 #define sc_ccroff sc_pf->pf_ccr_offset 502 sc->sc_pf = pa->pf; in ray_attach() 649 pcmcia_function_unconfigure(sc->sc_pf); in ray_detach() 664 sc->sc_ih = pcmcia_intr_establish(sc->sc_pf, IPL_NET, ray_intr, sc); in ray_enable() 670 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in ray_enable() 694 pcmcia_intr_disestablish(sc->sc_pf, sc->sc_ih); in ray_disable() 714 if (pcmcia_function_enable(sc->sc_pf)) in ray_init() [all …]
|
H A D | if_malo_pcmcia.c | 141 struct pcmcia_function *sc_pf; member 174 psc->sc_pf = pa->pf; in malo_pcmcia_attach() 226 pcmcia_function_unconfigure(psc->sc_pf); in malo_pcmcia_detach() 272 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, cmalo_intr, sc); in malo_pcmcia_enable() 278 if (pcmcia_function_enable(psc->sc_pf)) { in malo_pcmcia_enable() 280 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in malo_pcmcia_enable() 293 pcmcia_function_disable(psc->sc_pf); in malo_pcmcia_disable() 295 pcmcia_intr_disestablish(psc->sc_pf, psc->sc_ih); in malo_pcmcia_disable()
|