On Fri, Aug 21, 2015 at 01:29:20PM -0400, sven falempin wrote:
> Dear Readers,
> 
> is 'bus_dma'
> http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/bus_dma.9
> the <<equivalent>> of  'ioremap/ioread32'
> http://www.makelinux.net/ldd3/chp-9-sect-4--
> ?
> 
> trying to port a driver : watchdog/sp5100_tco.c, wondering the openbsd
> equivalent of readl :
> if (sp5100_tco_pci->revision >= 0x40) {
> /* Read SBResource_MMIO from AcpiMmioEn(PM_Reg: 24h) */
> outb(SB800_PM_ACPI_MMIO_EN+3, SB800_IO_PM_INDEX_REG);
> [..bus space map equivalent..]
> } else {
> [...]
> /* Check MMIO address conflict */
> if (request_mem_region_exclusive(val, SP5100_WDT_MEM_MAP_SIZE,
>   dev_name)) {
> [...]
> tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE);
> [...]
> /* Check that the watchdog action is set to reset the system */
> [..ioread32 old school form..]
> val = readl(SP5100_WDT_CONTROL(tcobase));
> 
> 
> Best regards,
> 

no context here, but you're probably looking for something like
bus_space_read_4

-ml

Reply via email to