Home
last modified time | relevance | path

Searched refs:psc (Results 1 – 25 of 61) sorted by relevance

123

/openbsd-src/sys/dev/pci/
H A Dxhci_pci.c89 xhci_pci_port_route(struct xhci_pci_softc *psc) in xhci_pci_port_route() argument
97 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3PRM); in xhci_pci_port_route()
99 psc->sc.sc_bus.bdev.dv_xname, val)); in xhci_pci_port_route()
101 pci_conf_write(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3_PSSEN, val); in xhci_pci_port_route()
102 val = pci_conf_read(psc->sc_pc, psc->sc_tag, PCI_XHCI_INTEL_USB3_PSSEN); in xhci_pci_port_route()
104 psc->sc.sc_bus.bdev.dv_xname, val)); in xhci_pci_port_route()
110 val = pci_conf_read(psc in xhci_pci_port_route()
126 struct xhci_pci_softc *psc = (struct xhci_pci_softc *)self; xhci_pci_attach() local
212 struct xhci_pci_softc *psc = (struct xhci_pci_softc *)self; xhci_pci_detach() local
232 struct xhci_pci_softc *psc = (struct xhci_pci_softc *)self; xhci_pci_activate() local
248 xhci_pci_takecontroller(struct xhci_pci_softc * psc,int silent) xhci_pci_takecontroller() argument
[all...]
H A Dif_athn_pci.c108 struct athn_pci_softc *psc = (struct athn_pci_softc *)self; in athn_pci_attach() local
109 struct athn_softc *sc = &psc->sc_sc; in athn_pci_attach()
118 psc->sc_pc = pa->pa_pc; in athn_pci_attach()
119 psc->sc_tag = pa->pa_tag; in athn_pci_attach()
130 &psc->sc_cap_off, NULL); in athn_pci_attach()
167 error = pci_mapreg_map(pa, PCI_MAPREG_START, memtype, 0, &psc->sc_st, in athn_pci_attach()
168 &psc->sc_sh, NULL, &psc->sc_mapsize, 0); in athn_pci_attach()
178 intrstr = pci_intr_string(psc->sc_pc, ih); in athn_pci_attach()
179 psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, in athn_pci_attach()
181 if (psc->sc_ih == NULL) { in athn_pci_attach()
[all …]
H A Dif_qwx_pci.c432 int qwx_mhi_send_cmd(struct qwx_pci_softc *psc, uint32_t, uint32_t);
637 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; in qwx_pci_alloc_msi()
641 if (psc->sc_msi_cap & PCI_MSI_MC_C64) { in qwx_pci_alloc_msi()
645 addr_lo = pci_conf_read(psc->sc_pc, psc->sc_tag, in qwx_pci_alloc_msi()
646 psc->sc_msi_off + PCI_MSI_MA); in qwx_pci_alloc_msi()
647 addr_hi = pci_conf_read(psc->sc_pc, psc->sc_tag, in qwx_pci_alloc_msi()
648 psc->sc_msi_off + PCI_MSI_MAU32); in qwx_pci_alloc_msi()
650 data = pci_conf_read(psc in qwx_pci_alloc_msi()
639 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_alloc_msi() local
743 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)self; qwx_pci_attach() local
1138 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)self; qwx_pci_detach() local
1189 qwx_pci_free_xfer_rings(struct qwx_pci_softc * psc) qwx_pci_free_xfer_rings() argument
1294 qwx_pci_alloc_xfer_rings_qca6390(struct qwx_pci_softc * psc) qwx_pci_alloc_xfer_rings_qca6390() argument
1330 qwx_pci_alloc_xfer_rings_qcn9074(struct qwx_pci_softc * psc) qwx_pci_alloc_xfer_rings_qcn9074() argument
1366 qwx_pci_free_event_rings(struct qwx_pci_softc * psc) qwx_pci_free_event_rings() argument
1404 qwx_pci_alloc_event_rings(struct qwx_pci_softc * psc) qwx_pci_alloc_event_rings() argument
1426 qwx_pci_free_cmd_ring(struct qwx_pci_softc * psc) qwx_pci_free_cmd_ring() argument
1456 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_read() local
1464 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_write() local
1485 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pcic_read32() local
1512 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pcic_write32() local
1602 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pcic_ext_irq_config() local
1671 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pcic_config_irq() local
1825 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_select_window() local
2112 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_msi_config() local
2142 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_aspm_disable() local
2161 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_aspm_restore() local
2173 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_pci_power_up() local
2416 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_mhi_device_wake() local
2428 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_mhi_device_zzz() local
2436 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_mhi_wake_db_clear_valid() local
2442 qwx_mhi_init_xfer_rings(struct qwx_pci_softc * psc) qwx_mhi_init_xfer_rings() argument
2479 qwx_mhi_init_event_rings(struct qwx_pci_softc * psc) qwx_mhi_init_event_rings() argument
2520 qwx_mhi_init_cmd_ring(struct qwx_pci_softc * psc) qwx_mhi_init_cmd_ring() argument
2543 qwx_mhi_init_dev_ctxt(struct qwx_pci_softc * psc) qwx_mhi_init_dev_ctxt() argument
2566 qwx_mhi_cmd_ring_submit(struct qwx_pci_softc * psc,struct qwx_pci_cmd_ring * ring) qwx_mhi_cmd_ring_submit() argument
2596 qwx_mhi_send_cmd(struct qwx_pci_softc * psc,uint32_t cmd,uint32_t chan) qwx_mhi_send_cmd() argument
2654 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_mhi_submit_xfer() local
2733 qwx_mhi_start_channel(struct qwx_pci_softc * psc,struct qwx_pci_xfer_ring * ring) qwx_mhi_start_channel() argument
2817 qwx_mhi_start_channels(struct qwx_pci_softc * psc) qwx_mhi_start_channels() argument
2839 qwx_mhi_start(struct qwx_pci_softc * psc) qwx_mhi_start() argument
2938 struct qwx_pci_softc *psc = (struct qwx_pci_softc *)sc; qwx_mhi_reset_device() local
3003 qwx_mhi_fw_load_handler(struct qwx_pci_softc * psc) qwx_mhi_fw_load_handler() argument
3123 qwx_mhi_ready_state_transition(struct qwx_pci_softc * psc) qwx_mhi_ready_state_transition() argument
3153 qwx_mhi_mission_mode_state_transition(struct qwx_pci_softc * psc) qwx_mhi_mission_mode_state_transition() argument
3172 qwx_mhi_low_power_mode_state_transition(struct qwx_pci_softc * psc) qwx_mhi_low_power_mode_state_transition() argument
3196 qwx_mhi_init_mmio(struct qwx_pci_softc * psc) qwx_mhi_init_mmio() argument
3250 qwx_mhi_fw_load_bhi(struct qwx_pci_softc * psc,uint8_t * data,size_t len) qwx_mhi_fw_load_bhi() argument
3306 qwx_mhi_fw_load_bhie(struct qwx_pci_softc * psc,uint8_t * data,size_t len) qwx_mhi_fw_load_bhie() argument
3405 qwx_rddm_prepare(struct qwx_pci_softc * psc) qwx_rddm_prepare() argument
3480 struct qwx_pci_softc *psc = arg; qwx_rddm_task() local
3590 qwx_mhi_state_change(struct qwx_pci_softc * psc,int ee,int mhi_state) qwx_mhi_state_change() argument
3674 qwx_pci_intr_ctrl_event_mhi(struct qwx_pci_softc * psc,uint32_t mhi_state) qwx_pci_intr_ctrl_event_mhi() argument
3684 qwx_pci_intr_ctrl_event_ee(struct qwx_pci_softc * psc,uint32_t ee) qwx_pci_intr_ctrl_event_ee() argument
3694 qwx_pci_intr_ctrl_event_cmd_complete(struct qwx_pci_softc * psc,uint64_t ptr,uint32_t cmd_status) qwx_pci_intr_ctrl_event_cmd_complete() argument
3733 qwx_pci_intr_ctrl_event(struct qwx_pci_softc * psc,struct qwx_pci_event_ring * ring) qwx_pci_intr_ctrl_event() argument
3823 qwx_pci_intr_data_event_tx(struct qwx_pci_softc * psc,struct qwx_mhi_ring_element * e) qwx_pci_intr_data_event_tx() argument
3956 qwx_pci_intr_data_event(struct qwx_pci_softc * psc,struct qwx_pci_event_ring * ring) qwx_pci_intr_data_event() argument
4039 struct qwx_pci_softc *psc = arg; qwx_pci_intr_mhi_ctrl() local
4050 struct qwx_pci_softc *psc = arg; qwx_pci_intr_mhi_data() local
4061 struct qwx_pci_softc *psc = arg; qwx_pci_intr() local
[all...]
H A Dif_ral_pci.c153 struct ral_pci_softc *psc = (struct ral_pci_softc *)self; in ral_pci_attach() local
154 struct rt2560_softc *sc = &psc->sc_sc; in ral_pci_attach()
164 psc->sc_opns = &ral_rt2560_opns; in ral_pci_attach()
169 psc->sc_opns = &ral_rt2661_opns; in ral_pci_attach()
172 psc->sc_opns = &ral_rt2860_opns; in ral_pci_attach()
177 psc->sc_opns = &ral_rt2860_opns; in ral_pci_attach()
180 psc->sc_pc = pa->pa_pc; in ral_pci_attach()
185 &sc->sc_sh, NULL, &psc->sc_mapsize, 0); in ral_pci_attach()
196 intrstr = pci_intr_string(psc->sc_pc, ih); in ral_pci_attach()
197 psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, in ral_pci_attach()
[all …]
H A Dif_rtw_pci.c114 struct rtw_pci_softc *psc = (void *)sc; in rtw_pci_enable() local
117 psc->psc_intrcookie = pci_intr_establish(psc->psc_pc, psc->psc_ih, in rtw_pci_enable()
119 if (psc->psc_intrcookie == NULL) { in rtw_pci_enable()
131 struct rtw_pci_softc *psc = (void *)sc; in rtw_pci_disable() local
134 pci_intr_disestablish(psc->psc_pc, psc->psc_intrcookie); in rtw_pci_disable()
135 psc->psc_intrcookie = NULL; in rtw_pci_disable()
141 struct rtw_pci_softc *psc = (void *) self; in rtw_pci_attach() local
142 struct rtw_softc *sc = &psc->psc_rtw; in rtw_pci_attach()
152 psc->psc_pc = pa->pa_pc; in rtw_pci_attach()
153 psc->psc_pcitag = pa->pa_tag; in rtw_pci_attach()
[all …]
H A Dif_atw_pci.c102 struct atw_pci_softc *psc = (void *)sc; in atw_pci_enable() local
105 psc->psc_intrcookie = pci_intr_establish(psc->psc_pc, psc->psc_ih, in atw_pci_enable()
107 if (psc->psc_intrcookie == NULL) { in atw_pci_enable()
119 struct atw_pci_softc *psc = (void *)sc; in atw_pci_disable() local
122 pci_intr_disestablish(psc->psc_pc, psc->psc_intrcookie); in atw_pci_disable()
123 psc->psc_intrcookie = NULL; in atw_pci_disable()
129 struct atw_pci_softc *psc = (void *) self; in atw_pci_attach() local
130 struct atw_softc *sc = &psc->psc_atw; in atw_pci_attach()
139 psc->psc_pc = pa->pa_pc; in atw_pci_attach()
140 psc->psc_pcitag = pa->pa_tag; in atw_pci_attach()
[all …]
H A Dmpi_pci.c97 struct mpi_pci_softc *psc = (void *)self; in mpi_pci_attach() local
98 struct mpi_softc *sc = &psc->psc_mpi; in mpi_pci_attach()
108 psc->psc_pc = pa->pa_pc; in mpi_pci_attach()
109 psc->psc_tag = pa->pa_tag; in mpi_pci_attach()
110 psc->psc_ih = NULL; in mpi_pci_attach()
117 memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, r); in mpi_pci_attach()
133 PWRITE(psc, PCI_ROM_REG, PREAD(psc, PCI_ROM_REG) & ~PCI_ROM_ENABLE); in mpi_pci_attach()
140 intrstr = pci_intr_string(psc->psc_pc, ih); in mpi_pci_attach()
141 psc->psc_ih = pci_intr_establish(psc->psc_pc, ih, IPL_BIO | IPL_MPSAFE, in mpi_pci_attach()
143 if (psc->psc_ih == NULL) { in mpi_pci_attach()
[all …]
H A Dif_bwi_pci.c133 struct bwi_pci_softc *psc = (struct bwi_pci_softc *)self; in bwi_pci_attach() local
135 struct bwi_softc *sc = &psc->psc_bwi; in bwi_pci_attach()
141 psc->psc_pc = pa->pa_pc; in bwi_pci_attach()
142 psc->psc_pcitag = pa->pa_tag; in bwi_pci_attach()
147 &sc->sc_mem_bh, NULL, &psc->psc_mapsize, 0)) { in bwi_pci_attach()
166 bus_space_unmap(sc->sc_mem_bt, sc->sc_mem_bh, psc->psc_mapsize); in bwi_pci_attach()
177 intrstr = pci_intr_string(psc->psc_pc, ih); in bwi_pci_attach()
178 psc->psc_ih = pci_intr_establish(psc->psc_pc, ih, IPL_NET, bwi_intr, sc, in bwi_pci_attach()
180 if (psc->psc_ih == NULL) { in bwi_pci_attach()
195 struct bwi_pci_softc *psc = (struct bwi_pci_softc *)self; in bwi_pci_detach() local
[all …]
H A Dsili_pci.c100 struct sili_pci_softc *psc = (void *)self; in sili_pci_attach() local
101 struct sili_softc *sc = &psc->psc_sili; in sili_pci_attach()
110 psc->psc_pc = pa->pa_pc; in sili_pci_attach()
111 psc->psc_tag = pa->pa_tag; in sili_pci_attach()
112 psc->psc_ih = NULL; in sili_pci_attach()
118 memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, in sili_pci_attach()
127 memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, in sili_pci_attach()
141 intrstr = pci_intr_string(psc->psc_pc, ih); in sili_pci_attach()
142 psc->psc_ih = pci_intr_establish(psc->psc_pc, ih, IPL_BIO, in sili_pci_attach()
144 if (psc->psc_ih == NULL) { in sili_pci_attach()
[all …]
H A Dif_pgt_pci.c84 struct pgt_pci_softc *psc = (struct pgt_pci_softc *)self; in pgt_pci_attach() local
85 struct pgt_softc *sc = &psc->sc_pgt; in pgt_pci_attach()
92 psc->sc_pc = pa->pa_pc; in pgt_pci_attach()
101 &sc->sc_iotag, &sc->sc_iohandle, NULL, &psc->sc_mapsize, 0); in pgt_pci_attach()
119 intrstr = pci_intr_string(psc->sc_pc, ih); in pgt_pci_attach()
120 psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, pgt_intr, sc, in pgt_pci_attach()
122 if (psc->sc_ih == NULL) { in pgt_pci_attach()
137 struct pgt_pci_softc *psc = (struct pgt_pci_softc *)self; in pgt_pci_detach() local
138 struct pgt_softc *sc = &psc->sc_pgt; in pgt_pci_detach()
140 if (psc->sc_ih != NULL) { in pgt_pci_detach()
[all …]
H A Dif_acx_pci.c98 struct acx_pci_softc *psc = (struct acx_pci_softc *)self; in acx_pci_attach() local
99 struct acx_softc *sc = &psc->sc_acx; in acx_pci_attach()
106 psc->sc_pc = pa->pa_pc; in acx_pci_attach()
111 PCI_MAPREG_TYPE_IO, 0, &psc->sc_io_bt, in acx_pci_attach()
112 &psc->sc_io_bh, NULL, &psc->sc_iomapsize, 0); in acx_pci_attach()
123 &sc->sc_mem1_bh, NULL, &psc->sc_mapsize1, 0); in acx_pci_attach()
131 &sc->sc_mem2_bh, NULL, &psc->sc_mapsize2, 0); in acx_pci_attach()
142 intrstr = pci_intr_string(psc->sc_pc, ih); in acx_pci_attach()
143 psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, in acx_pci_attach()
145 if (psc->sc_ih == NULL) { in acx_pci_attach()
[all …]
H A Dqla_pci.c84 struct qla_pci_softc *psc = (void *)self; in qla_pci_attach() local
85 struct qla_softc *sc = &psc->psc_qla; in qla_pci_attach()
99 psc->psc_pc = pa->pa_pc; in qla_pci_attach()
100 psc->psc_tag = pa->pa_tag; in qla_pci_attach()
101 psc->psc_ih = NULL; in qla_pci_attach()
106 memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, bars[r]); in qla_pci_attach()
122 intrstr = pci_intr_string(psc->psc_pc, ih); in qla_pci_attach()
123 psc->psc_ih = pci_intr_establish(psc in qla_pci_attach()
215 struct qla_pci_softc *psc = (struct qla_pci_softc *)self; qla_pci_detach() local
[all...]
H A Dif_malo_pci.c88 struct malo_pci_softc *psc = (struct malo_pci_softc *)self; in malo_pci_attach() local
90 struct malo_softc *sc = &psc->sc_malo; in malo_pci_attach()
96 psc->sc_pc = pa->pa_pc; in malo_pci_attach()
101 &sc->sc_mem1_bt, &sc->sc_mem1_bh, NULL, &psc->sc_mapsize1, 0); in malo_pci_attach()
110 &sc->sc_mem2_bt, &sc->sc_mem2_bh, NULL, &psc->sc_mapsize2, 0); in malo_pci_attach()
123 intrstr = pci_intr_string(psc->sc_pc, ih); in malo_pci_attach()
124 psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, malo_intr, sc, in malo_pci_attach()
126 if (psc->sc_ih == NULL) { in malo_pci_attach()
141 struct malo_pci_softc *psc = (struct malo_pci_softc *)self; in malo_pci_detach() local
142 struct malo_softc *sc = &psc->sc_malo; in malo_pci_detach()
[all …]
H A Dif_ath_pci.c111 struct ath_pci_softc *psc = (struct ath_pci_softc *)self; in ath_pci_attach() local
112 struct ath_softc *sc = &psc->sc_sc; in ath_pci_attach()
120 psc->sc_pc = pc; in ath_pci_attach()
121 psc->sc_pcitag = pt; in ath_pci_attach()
156 psc->sc_ih = pci_intr_establish(pc, ih, IPL_NET, ath_intr, sc, in ath_pci_attach()
158 if (psc->sc_ih == NULL) { in ath_pci_attach()
170 pci_intr_disestablish(pc, psc->sc_ih); in ath_pci_attach()
180 struct ath_pci_softc *psc = (struct ath_pci_softc *)self; in ath_pci_detach() local
181 struct ath_softc *sc = &psc->sc_sc; in ath_pci_detach()
183 ath_detach(&psc->sc_sc, flags); in ath_pci_detach()
[all …]
H A Dqlw_pci.c98 struct qlw_pci_softc *psc = (void *)self; in qlw_pci_attach() local
99 struct qlw_softc *sc = &psc->psc_qlw; in qlw_pci_attach()
112 psc->psc_pc = pa->pa_pc; in qlw_pci_attach()
113 psc->psc_tag = pa->pa_tag; in qlw_pci_attach()
114 psc->psc_ih = NULL; in qlw_pci_attach()
119 memtype = pci_mapreg_type(psc->psc_pc, psc->psc_tag, bars[r]); in qlw_pci_attach()
135 intrstr = pci_intr_string(psc->psc_pc, ih); in qlw_pci_attach()
136 psc->psc_ih = pci_intr_establish(psc in qlw_pci_attach()
300 struct qlw_pci_softc *psc = (struct qlw_pci_softc *)self; qlw_pci_detach() local
[all...]
H A Dpuc.c131 struct puc_softc *psc = &sc->sc_psc; in puc_pci_intr_establish() local
133 if (psc->sc_xr17v35x) { in puc_pci_intr_establish()
134 psc->sc_ports[paa->port].real_intrhand = func; in puc_pci_intr_establish()
135 psc->sc_ports[paa->port].real_intrhand_arg = arg; in puc_pci_intr_establish()
137 psc->sc_ports[paa->port].intrhand = in puc_pci_intr_establish()
140 return (psc->sc_ports[paa->port].real_intrhand); in puc_pci_intr_establish()
143 psc->sc_ports[paa->port].intrhand = in puc_pci_intr_establish()
146 return (psc->sc_ports[paa->port].intrhand); in puc_pci_intr_establish()
152 struct puc_pci_softc *psc = (struct puc_pci_softc *)self; in puc_pci_attach() local
153 struct puc_softc *sc = &psc in puc_pci_attach()
285 struct puc_softc *psc = &sc->sc_psc; puc_pci_detach() local
380 struct puc_softc *psc = &sc->sc_psc; puc_pci_xr17v35x_intr() local
[all...]
H A Dif_xl_pci.c132 struct xl_pci_softc *psc = (void *)self; in xl_pci_attach() local
133 struct xl_softc *sc = &psc->psc_softc; in xl_pci_attach()
143 psc->psc_pc = pc; in xl_pci_attach()
144 psc->psc_tag = pa->pa_tag; in xl_pci_attach()
220 sc->wol_power_arg = psc; in xl_pci_attach()
240 psc->psc_iosize = iosize; in xl_pci_attach()
249 psc->psc_funsize = funsize; in xl_pci_attach()
284 struct xl_pci_softc *psc = (void *)self; in xl_pci_detach() local
285 struct xl_softc *sc = &psc->psc_softc; in xl_pci_detach()
288 pci_intr_disestablish(psc->psc_pc, sc->xl_intrhand); in xl_pci_detach()
[all …]
H A Dahci_pci.c332 struct ahci_pci_softc *psc = (struct ahci_pci_softc *)self; in ahci_pci_attach() local
333 struct ahci_softc *sc = &psc->psc_ahci; in ahci_pci_attach()
338 psc->psc_pc = pa->pa_pc; in ahci_pci_attach()
339 psc->psc_tag = pa->pa_tag; in ahci_pci_attach()
359 if (ahci_map_regs(psc, pa) != 0) { in ahci_pci_attach()
364 if (ahci_map_intr(psc, pa, ih) != 0) { in ahci_pci_attach()
377 ahci_unmap_regs(psc); in ahci_pci_attach()
384 struct ahci_pci_softc *psc = (struct ahci_pci_softc *)self; in ahci_pci_detach() local
385 struct ahci_softc *sc = &psc->psc_ahci; in ahci_pci_detach()
389 ahci_unmap_intr(psc); in ahci_pci_detach()
[all …]
/openbsd-src/sys/dev/pcmcia/
H A Dcom_pcmcia.c222 struct com_pcmcia_softc *psc = (void *) self; in com_pcmcia_attach() local
223 struct com_softc *sc = &psc->sc_com; in com_pcmcia_attach()
229 psc->sc_pf = pa->pf; in com_pcmcia_attach()
250 cfe->iospace[0].length, COM_NPORTS, &psc->sc_pcioh)) { in com_pcmcia_attach()
263 sc->sc_iot = psc->sc_pcioh.iot; in com_pcmcia_attach()
264 sc->sc_ioh = psc->sc_pcioh.ioh; in com_pcmcia_attach()
276 PCMCIA_WIDTH_IO16 : PCMCIA_WIDTH_IO8), 0, psc->sc_pcioh.size, in com_pcmcia_attach()
277 &psc->sc_pcioh, &psc->sc_io_window)) { in com_pcmcia_attach()
282 printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, in com_pcmcia_attach()
283 (u_long)psc->sc_pcioh.size); in com_pcmcia_attach()
[all …]
H A Dif_an_pcmcia.c94 struct an_pcmcia_softc *psc = (struct an_pcmcia_softc *)self; in an_pcmcia_attach() local
101 psc->sc_pf = pa->pf; in an_pcmcia_attach()
110 if (pcmcia_io_alloc(pa->pf, 0, AN_IOSIZ, AN_IOSIZ, &psc->sc_pcioh)) { in an_pcmcia_attach()
117 &psc->sc_pcioh, &psc->sc_io_window)) { in an_pcmcia_attach()
119 pcmcia_io_free(pa->pf, &psc->sc_pcioh); in an_pcmcia_attach()
124 sc->sc_iot = psc->sc_pcioh.iot; in an_pcmcia_attach()
125 sc->sc_ioh = psc->sc_pcioh.ioh; in an_pcmcia_attach()
128 sc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, an_intr, sc, in an_pcmcia_attach()
130 intrstr = pcmcia_intr_string(psc->sc_pf, sc->sc_ih); in an_pcmcia_attach()
143 psc->sc_state = AN_PCMCIA_ATTACHED; in an_pcmcia_attach()
[all …]
H A Dif_ne_pcmcia.c605 struct ne_pcmcia_softc *psc = (void *) self; in ne_pcmcia_attach() local
606 struct ne2000_softc *nsc = &psc->sc_ne2000; in ne_pcmcia_attach()
615 psc->sc_pf = pa->pf; in ne_pcmcia_attach()
662 NE2000_NPORTS, NE2000_NPORTS, &psc->sc_pcioh)) { in ne_pcmcia_attach()
677 dsc->sc_regt = psc->sc_pcioh.iot; in ne_pcmcia_attach()
678 dsc->sc_regh = psc->sc_pcioh.ioh; in ne_pcmcia_attach()
680 nsc->sc_asict = psc->sc_pcioh.iot; in ne_pcmcia_attach()
704 NE2000_NIC_NPORTS, &psc->sc_pcioh, &psc->sc_nic_io_window)) { in ne_pcmcia_attach()
710 NE2000_ASIC_NPORTS, &psc->sc_pcioh, &psc->sc_asic_io_window)) { in ne_pcmcia_attach()
715 printf(" port 0x%lx/%d", psc->sc_pcioh.addr, NE2000_NPORTS); in ne_pcmcia_attach()
[all …]
H A Dif_sm_pcmcia.c118 struct sm_pcmcia_softc *psc = (struct sm_pcmcia_softc *)self; in sm_pcmcia_attach() local
119 struct smc91cxx_softc *sc = &psc->sc_smc; in sm_pcmcia_attach()
125 psc->sc_pf = pa->pf; in sm_pcmcia_attach()
139 cfe->iospace[0].length, &psc->sc_pcioh)) { in sm_pcmcia_attach()
144 sc->sc_bst = psc->sc_pcioh.iot; in sm_pcmcia_attach()
145 sc->sc_bsh = psc->sc_pcioh.ioh; in sm_pcmcia_attach()
155 &psc->sc_pcioh, &psc->sc_io_window)) { in sm_pcmcia_attach()
160 printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, in sm_pcmcia_attach()
161 (u_long)psc->sc_pcioh.size); in sm_pcmcia_attach()
190 psc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, in sm_pcmcia_attach()
[all …]
H A Dif_ep_pcmcia.c173 struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc; in ep_pcmcia_enable() local
174 struct pcmcia_function *pf = psc->sc_pf; in ep_pcmcia_enable()
192 struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc; in ep_pcmcia_enable1() local
193 struct pcmcia_function *pf = psc->sc_pf; in ep_pcmcia_enable1()
199 if ((psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3C562) || in ep_pcmcia_enable1()
200 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556) || in ep_pcmcia_enable1()
201 (psc->sc_pf->sc->card.product == PCMCIA_PRODUCT_3COM_3CXEM556B)) { in ep_pcmcia_enable1()
221 struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc; in ep_pcmcia_disable() local
223 pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih); in ep_pcmcia_disable()
230 struct ep_pcmcia_softc *psc = (struct ep_pcmcia_softc *) sc; in ep_pcmcia_disable1() local
[all …]
H A Dif_wi_pcmcia.c371 struct wi_pcmcia_softc *psc = (struct wi_pcmcia_softc *)self; in wi_pcmcia_attach() local
372 struct wi_softc *sc = &psc->sc_wi; in wi_pcmcia_attach()
379 psc->sc_pf = pf; in wi_pcmcia_attach()
389 if (pcmcia_io_alloc(pf, 0, WI_IOSIZ, WI_IOSIZ, &psc->sc_pcioh)) { in wi_pcmcia_attach()
396 &psc->sc_pcioh, &psc->sc_io_window)) { in wi_pcmcia_attach()
402 printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, in wi_pcmcia_attach()
403 (u_long)psc->sc_pcioh.size); in wi_pcmcia_attach()
405 sc->wi_ltag = sc->wi_btag = psc->sc_pcioh.iot; in wi_pcmcia_attach()
406 sc->wi_lhandle = sc->wi_bhandle = psc->sc_pcioh.ioh; in wi_pcmcia_attach()
415 sc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_NET, wi_intr, psc, in wi_pcmcia_attach()
[all …]
H A Daic_pcmcia.c99 struct aic_pcmcia_softc *psc = (void *)self; in aic_pcmcia_attach() local
100 struct aic_softc *sc = &psc->sc_aic; in aic_pcmcia_attach()
106 psc->sc_pf = pf; in aic_pcmcia_attach()
123 cfe->iospace[0].length, AIC_NPORTS, &psc->sc_pcioh) == 0) in aic_pcmcia_attach()
132 sc->sc_iot = psc->sc_pcioh.iot; in aic_pcmcia_attach()
133 sc->sc_ioh = psc->sc_pcioh.ioh; in aic_pcmcia_attach()
143 if (pcmcia_io_map(pa->pf, PCMCIA_WIDTH_AUTO, 0, psc->sc_pcioh.size, in aic_pcmcia_attach()
144 &psc->sc_pcioh, &psc->sc_io_window)) { in aic_pcmcia_attach()
149 printf(" port 0x%lx/%lu", psc->sc_pcioh.addr, in aic_pcmcia_attach()
150 (u_long)psc->sc_pcioh.size); in aic_pcmcia_attach()
[all …]

123