On Fri, Aug 21, 2015 at 3:30 PM, Miod Vallat <[email protected]> wrote:
>> 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--
>> ?
>
> I don't think so.
>
> It looks like you are attempting to port a PCI driver, and attempting to
> access the device's register.
>
> PCI device regions in memory and I/O space are made available to the
> kernel with pci_mapreg_map(), which gives you a bus_space_handle_t
> suitable for use with thi bus_space(9) API. This would be a sugar-coated
> equivalent of ioremap().
>
> From then on, bus_space_read_(N/8) will match ioreadN() calls.


Thank you :-)  I figure it was not dma by grep the call of those everywhere,
still need to understand the mapping.

(
working on the AMD Bobcat WDT actually, i have the base adress trough
bus space map :
in acpi 0xFED0 0000 and the then doc say go to 00b0 but i do not
understand where this address makes sense,
and how to write in it
)

-- 
---------------------------------------------------------------------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\

Reply via email to