Re: Regarding PCIe peek/poke in NetBSD
Gnanasekar Loganathan <[email protected]> Wed, 22 Dec 2010 13:37:46 +0530
| Newsgroups | gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Greg, Thanks for the link, there i can found some useful information. As we know that the 'pcictl' command will list all the pci devices present in the system with corresponding device/vendor id. The same way, is that possible to get/map the IO/Mem/prefetchable region of any PCI device by using bus_space_map for Peek/Poke? If so, please give guidance. Thanks, Gnana On Mon, Dec 20, 2010 at 6:27 PM, Greg Troxel <[email protected]> wrote: > > I'm new to NetBSD kernel. > > In NetBSD how we can access the I/O region, Memory region and > Prefetchable region for any PCIe devices? > How to map this region and do peek/poke on those addresses? > > Read the docs on www.netbsd.org, and skim the Guide. Then read/skim the > section 9 man pages, and look at example code in src/sys/dev. > >