Home
last modified time | relevance | path

Searched refs:iores (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iores.c57 BHND_NVRAM_IOPS_DEFN(iores);
79 struct bhnd_nvram_iores *iores; in bhnd_nvram_iores_new() local
130 iores = malloc(sizeof(*iores), M_BHND_NVRAM, M_WAITOK); in bhnd_nvram_iores_new()
131 iores->io.iops = &bhnd_nvram_iores_ops; in bhnd_nvram_iores_new()
132 iores->res = r; in bhnd_nvram_iores_new()
133 iores->offset = offset; in bhnd_nvram_iores_new()
134 iores->size = size; in bhnd_nvram_iores_new()
135 iores->bus_width = bus_width; in bhnd_nvram_iores_new()
137 return (&iores->io); in bhnd_nvram_iores_new()
149 struct bhnd_nvram_iores *iores = (struct bhnd_nvram_iores *)io; in bhnd_nvram_iores_getsize() local
[all …]
/freebsd/sys/dev/bhnd/
H A Dbhnd_erom.c382 struct bhnd_erom_iores *iores; in bhnd_erom_iores_new() local
384 iores = malloc(sizeof(*iores), M_BHND, M_WAITOK | M_ZERO); in bhnd_erom_iores_new()
385 iores->eio.map = bhnd_erom_iores_map; in bhnd_erom_iores_new()
386 iores->eio.tell = bhnd_erom_iores_tell; in bhnd_erom_iores_new()
387 iores->eio.read = bhnd_erom_iores_read; in bhnd_erom_iores_new()
388 iores->eio.fini = bhnd_erom_iores_fini; in bhnd_erom_iores_new()
390 iores->owner = dev; in bhnd_erom_iores_new()
391 iores->owner_rid = rid; in bhnd_erom_iores_new()
392 iores->mapped = NULL; in bhnd_erom_iores_new()
393 iores->mapped_rid = -1; in bhnd_erom_iores_new()
[all …]
/freebsd/sys/dev/ncthwm/
H A Dncthwm.c56 struct resource *iores; member
121 bus_write_1(sc->iores, 0, reg); in ncthwm_write()
122 bus_write_1(sc->iores, 1, val); in ncthwm_write()
128 bus_write_1(sc->iores, 0, reg); in ncthwm_read()
129 return (bus_read_1(sc->iores, 1)); in ncthwm_read()
149 KASSERT(sc->iores != NULL, ("Unreachable")); in ncthwm_query_fan_speed()
209 sc->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in ncthwm_attach()
211 if (sc->iores == NULL) { in ncthwm_attach()
215 NCTHWM_VERBOSE_PRINTF(dev, "iobase 0x%x iores %p\n", iobase, sc->iores); in ncthwm_attach()
234 if (sc->iores) in ncthwm_detach()
[all …]
/freebsd/sys/dev/ips/
H A Dips.h59 #define ips_read_1(sc,offset) bus_read_1(sc->iores, offset)
60 #define ips_read_2(sc,offset) bus_read_2(sc->iores, offset)
61 #define ips_read_4(sc,offset) bus_read_4(sc->iores, offset)
63 #define ips_write_1(sc,offset,value) bus_write_1(sc->iores, offset, value)
64 #define ips_write_2(sc,offset,value) bus_write_2(sc->iores, offset, value)
65 #define ips_write_4(sc,offset,value) bus_write_4(sc->iores, offset, value)
116 struct resource * iores; member
H A Dips_pci.c91 sc->iores = NULL; in ips_pci_attach()
98 sc->iores = bus_alloc_resource_any(dev, sc->iotype, &sc->rid, in ips_pci_attach()
100 if(!sc->iores){ in ips_pci_attach()
104 sc->iores = bus_alloc_resource_any(dev, sc->iotype, in ips_pci_attach()
107 if(sc->iores == NULL){ in ips_pci_attach()
173 if(sc->iores) in ips_pci_free()
174 bus_release_resource(sc->dev, sc->iotype, sc->rid, sc->iores); in ips_pci_free()
/freebsd/sys/dev/viapm/
H A Dviapm.c75 ((u_char)bus_read_1(viapm->iores, port))
77 (bus_write_1(viapm->iores, port, (u_char)(val)))
95 struct resource *iores; member
343 if (!(viapm->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in viapm_pro_attach()
400 if (viapm->iores) in viapm_pro_attach()
401 bus_release_resource(dev, SYS_RES_IOPORT, viapm->iorid, viapm->iores); in viapm_pro_attach()
417 if (!(viapm->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in viapm_586b_attach()
434 if (viapm->iores) in viapm_586b_attach()
436 viapm->iorid, viapm->iores); in viapm_586b_attach()
448 if (viapm->iores) in viapm_586b_detach()
[all …]
/freebsd/sys/dev/nctgpio/
H A Dnctgpio.c108 struct resource *iores; member
775 bus_write_1(sc->iores, NCT_IO_GSR, grpnum); in nct_io_set_group()
786 val = bus_read_1(sc->iores, reg); in nct_io_read()
799 bus_write_1(sc->iores, reg, val); in nct_io_write()
807 if (sc->iores != NULL) in nct_get_ioreg()
834 if (sc->iores != NULL) in nct_read_reg()
868 if (sc->iores != NULL) { in nct_write_reg()
1169 sc->iores = bus_alloc_resource_any(dev, SYS_RES_IOPORT, in nct_attach()
1171 if (sc->iores == NULL) { in nct_attach()
1182 sc->iores, (sc->iores ? "direct" : "indirect")); in nct_attach()
[all …]