Re: Kernel Driver Question

2015-08-21 Thread sven falempin
On Fri, Aug 21, 2015 at 3:30 PM, Miod Vallat wrote: >> is 'bus_dma' >> http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/bus_dma.9 >> the <> 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 PC

Re: Kernel Driver Question

2015-08-21 Thread Miod Vallat
> is 'bus_dma' > http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/bus_dma.9 > the <> 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 d

Re: Kernel Driver Question

2015-08-21 Thread Mike Larkin
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 <> of 'ioremap/ioread32' > http://www.makelinux.net/ldd3/chp-9-sect-4-- > ? > > trying to port a driver : watchdog/sp5100_

Kernel Driver Question

2015-08-21 Thread sven falempin
Dear Readers, is 'bus_dma' http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man9/bus_dma.9 the <> 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 >