Searched refs:iobase (Results 1 - 25 of 53) sorted by relevance

123

/freebsd-11-stable/sys/dev/cy/
H A Dcyreg.h58 #define cd_inb(iobase, reg, cy_align) \
59 (++cd_inbs, *((iobase) + (2 * (reg) << (cy_align))))
60 #define cy_inb(iobase, reg, cy_align) \
61 (++cy_inbs, *((iobase) + ((reg) << (cy_align))))
62 #define cd_outb(iobase, reg, cy_align, val) \
63 (++cd_outbs, (void)(*((iobase) + (2 * (reg) << (cy_align))) = (val)))
64 #define cy_outb(iobase, reg, cy_align, val) \
65 (++cy_outbs, (void)(*((iobase) + ((reg) << (cy_align))) = (val)))
67 #define cd_inb(iobase, reg, cy_align) \
68 (*((iobase)
[all...]
H A Dcy_isa.c76 cy_addr iobase; local
89 iobase = rman_get_virtual(mem_res);
92 cy_inb(iobase, CY16_RESET, 0); /* XXX? */
96 cy_outb(iobase, CY_CLEAR_INTR, 0, 0);
99 error = (cy_units(iobase, 0) == 0 ? ENXIO : 0);
H A Dcy.c202 cy_addr iobase; /* base address of this port's cd1400 */ member in struct:com_s
298 cy_addr iobase; local
301 iobase = cy_iobase + (cy_chip_offset[cyu] << cy_align);
306 if (!cd_inb(iobase, CD1400_CCR, cy_align))
311 cd_outb(iobase, CD1400_GFRCR, cy_align, 0);
314 cd_outb(iobase, CD1400_CCR, cy_align,
325 firmware_version = cd_inb(iobase, CD1400_GFRCR,
348 cy_addr iobase; local
376 iobase = (cy_addr) (cy_iobase
378 firmware_version = cd_inb(iobase, CD1400_GFRC
490 cy_addr iobase; local
655 cy_addr iobase; local
2122 cy_addr iobase; local
2157 cy_addr iobase; local
2190 cy_addr iobase; local
[all...]
/freebsd-11-stable/sys/dev/aic7xxx/
H A Dahc_isa.c91 uint32_t iobase; local
95 iobase = (slot * AHC_EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET;
97 iobase, iobase, AHC_EISA_IOSIZE,
102 "alloc failed\n", slot, iobase);
118 0, iobase, AHC_EISA_IOSIZE);
133 uint32_t iobase; local
155 iobase = rman_get_start(regs);
182 iobase, irq_num);
200 iobase, irq_nu
[all...]
H A Dahc_eisa.c44 uint32_t iobase; local
59 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + AHC_EISA_SLOT_OFFSET;
61 eisa_add_iospace(dev, iobase, AHC_EISA_IOSIZE, RESVADDR_NONE);
/freebsd-11-stable/sys/dev/pdq/
H A Dif_fea.c77 pdq_eisa_subprobe(bc, iobase, maddr, msize, irq)
79 u_int32_t iobase;
85 *irq = DEFEA_DECODE_IRQ(PDQ_OS_IORD_8(bc, iobase, PDQ_EISA_IO_CONFIG_STAT_0) & 3);
86 *maddr = (PDQ_OS_IORD_8(bc, iobase, PDQ_EISA_MEM_ADD_CMP_0) << 8)
87 | (PDQ_OS_IORD_8(bc, iobase, PDQ_EISA_MEM_ADD_CMP_1) << 16);
88 *msize = (PDQ_OS_IORD_8(bc, iobase, PDQ_EISA_MEM_ADD_MASK_0) + 4) << 8;
140 u_int32_t iobase; local
154 iobase = eisa_get_slot(dev) * EISA_SLOT_SIZE;
155 pdq_eisa_subprobe((pdq_bus_t)SYS_RES_IOPORT, iobase, &maddr, &msize, &irq);
157 eisa_add_iospace(dev, iobase,
[all...]
/freebsd-11-stable/sys/dev/si/
H A Dsi_eisa.c42 u_long iobase; local
51 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + SIEISABASE;
52 eisa_add_iospace(dev, iobase, SIEISAIOSIZE, RESVADDR_NONE);
54 maddr = (inb(iobase+1) << 24) | (inb(iobase) << 16);
57 irq = ((inb(iobase+2) >> 4) & 0xf);
/freebsd-11-stable/sys/dev/uart/
H A Duart_cpu_pc98.c44 u_long iobase; member in struct:__anon11768
56 for (i = 0; uart_pc98_devs[i].iobase; i++) {
57 if (port == uart_pc98_devs[i].iobase)
/freebsd-11-stable/sys/dev/buslogic/
H A Dbt_eisa.c189 u_long iobase; local
202 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE);
206 iobase += AMI_EISA_SLOT_OFFSET;
208 ioconf1 = inb(iobase + AMI_EISA_IOCONF1);
237 shared = (inb(iobase + AMI_EISA_IOCONF1) & AMI_IRQ_LEVEL) ?
240 iobase += BT_EISA_SLOT_OFFSET;
243 ioconf = inb(iobase + EISA_IOCONF);
272 shared = (inb(iobase + EISA_IRQ_TYPE) & LEVEL) ?
278 eisa_add_iospace(dev, iobase, iosize, RESVADDR_NONE);
H A Dbt_mca.c162 u_int32_t iobase = 0; local
176 iobase = BT_MCA_IOPORT(pos);
185 bt_mark_probed_iop(iobase);
187 mca_add_iospace(dev, iobase, iosize);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dacpi.h49 void dsdt_fixed_ioport(uint16_t iobase, uint16_t length);
H A Dpci_lpc.c74 int iobase; member in struct:lpc_uart_softc
150 offset = port - sc->iobase;
194 if (uart_legacy_alloc(unit, &sc->iobase, &sc->irq) != 0) {
212 iop.port = sc->iobase;
337 dsdt_fixed_ioport(sc->iobase, UART_IO_BAR_SIZE);
/freebsd-11-stable/sys/dev/eisa/
H A Deisaconf.h85 eisa_add_iospace(device_t dev, u_long iobase, u_long iosize, int flags) argument
87 return (EISA_ADD_IOSPACE(device_get_parent(dev), dev, iobase, iosize,
/freebsd-11-stable/sys/dev/ep/
H A Dif_ep_eisa.c99 u_long iobase; local
111 iobase = port + EP_EISA_SLOT_OFFSET;
114 if ((inw(iobase + EP_W0_ADDRESS_CFG) & 0x1f) != 0x1f)
117 eisa_add_iospace(dev, iobase, EP_EISA_IOSIZE, RESVADDR_NONE);
120 conf = inw(iobase + EISA_IOCONF);
H A Dif_ep_mca.c95 uint32_t iobase = 0; local
105 iobase = EP_MCA_IOPORT(pos);
110 mca_add_iospace(dev, iobase, EP_MCA_IOPORT_SIZE);
/freebsd-11-stable/sys/dev/sio/
H A Dsio.c436 Port_t iobase; local
551 iobase = rman_get_start(port);
595 if (iobase == siocniobase)
641 if (iobase == siocniobase)
701 if (iobase == siocniobase)
786 if (iobase == siocniobase)
877 Port_t iobase; local
892 iobase = rman_get_start(port);
924 com->data_port = iobase + com_data;
925 com->int_ctl_port = iobase
2460 Port_t iobase; local
2536 Port_t iobase; local
2569 Port_t iobase; local
[all...]
/freebsd-11-stable/sys/dev/vx/
H A Dif_vx_eisa.c91 u_long iobase; local
100 iobase = port + VX_EISA_SLOT_OFFSET;
102 eisa_add_iospace(dev, iobase, VX_EISA_IOSIZE, RESVADDR_NONE);
106 eisa_add_intr(dev, inw(iobase + VX_RESOURCE_CONFIG) >> 12,
/freebsd-11-stable/sys/pc98/cbus/
H A Dsio.c769 Port_t iobase; local
1000 iobase = rman_get_start(port);
1006 outb(iobase + rsa_msr, 0x04);
1007 outb(iobase + rsa_frr, 0x00);
1008 if ((inb(iobase + rsa_srr) & 0x36) != 0x36) {
1014 outb(iobase + rsa_ier, 0x00);
1015 outb(iobase + rsa_frr, 0x00);
1016 outb(iobase + rsa_tivsr, 0x00);
1017 outb(iobase + rsa_tcr, 0x00);
1037 outb((iobase
1365 Port_t iobase; local
3622 Port_t iobase; local
3698 Port_t iobase; local
3731 Port_t iobase; local
[all...]
/freebsd-11-stable/sys/dev/fe/
H A Dif_fe_cbus.c301 rman_res_t iobase, irq; local
312 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
314 if ((iobase & ~0x10E) != 0xD0)
401 rman_res_t iobase, irq; local
422 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
425 if (baseaddr[i] == iobase)
450 if (baseaddr[n] != iobase)
527 rman_res_t iobase, irq; local
536 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
538 if (iobase !
601 rman_res_t iobase, irq; local
679 rman_res_t iobase, irq; local
807 rman_res_t iobase, irq; local
952 rman_res_t iobase, irq; local
[all...]
H A Dif_fe_isa.c206 rman_res_t iobase, irq; local
247 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
249 if ((iobase & ~0x1E0) != 0x200)
701 rman_res_t iobase, irq; local
722 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
725 if (baseaddr[i] == iobase)
751 if (baseaddr[n] != iobase)
819 rman_res_t iobase, irq; local
829 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, NULL) != 0)
831 if ((iobase
881 rman_res_t iobase, irq; local
949 rman_res_t iobase, irq; local
1002 rman_res_t iobase, irq; local
[all...]
/freebsd-11-stable/sys/dev/advansys/
H A Dadv_isa.c112 rman_res_t iobase, iocount, irq; local
130 if (bus_get_resource(dev, SYS_RES_IOPORT, 0, &iobase, &iocount) == 0) {
133 if (iobase <= adv_isa_ioports[port_index])
136 || (iobase != adv_isa_ioports[port_index])) {
141 "probe.\n", iobase,
357 bus_set_resource(dev, SYS_RES_IOPORT, 0, iobase, iocount);
H A Dadv_eisa.c103 u_int32_t iobase; local
111 iobase = (eisa_get_slot(dev) * EISA_SLOT_SIZE) + ADV_EISA_SLOT_OFFSET;
113 eisa_add_iospace(dev, iobase, ADV_EISA_IOSIZE, RESVADDR_NONE);
114 irq = inb(iobase + ADV_EISA_IRQ_BURST_LEN_REG);
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/bt3c/
H A Dng_bt3c_var.h64 int iobase_rid; /* iobase RID */
65 struct resource *iobase; /* iobase */ member in struct:bt3c_softc
/freebsd-11-stable/sys/dev/ex/
H A Dif_ex_isa.c198 bus_addr_t iobase; local
221 iobase = bus_get_resource_start(dev, SYS_RES_IOPORT, 0);
224 printf("ex: no card found at 0x%03lx.\n", (unsigned long)iobase);
229 printf("ex: ex_isa_probe() found card at 0x%03lx\n", (unsigned long)iobase);
/freebsd-11-stable/sys/dev/ie/
H A Dif_ie_isa.c209 u_int32_t iobase; local
222 if ((iobase = bus_get_resource_start(dev, SYS_RES_IOPORT, 0)) == 0) {
227 if (ie_3C507_port_check(iobase)) {
347 /* reset any ee16 at the current iobase */
406 u_int32_t iobase; local
417 if ((iobase = bus_get_resource_start(dev, SYS_RES_IOPORT, 0)) == 0)
421 if (ie_ee16_port_check(iobase))
454 /* reset any ee16 at the current iobase */
697 u_int32_t iobase; local
708 if ((iobase
[all...]

Completed in 229 milliseconds

123