kabaev at gmail.com
Thu Mar 11 19:48:51 UTC 2010
On Thu, 11 Mar 2010 08:14:30 -0500
John Baldwin <jhb at freebsd.org> wrote:
> On Thursday 11 March 2010 4:04:52 am Cole wrote:
> > Hi.
> > Im currently needing to write to a few registers for a PCI device.
> > The driver is provided, but it does not contain support for writing
> > specific registers itself. I also do not with to modify the driver.
> > I would like to know what the best method would be for writing to
> > these registers, the best way to go about getting bus_space_tag, and
> > handle for the connected pci device.
> > Im currently using FreeBSD 7.x.
> You will most likely need to modify the driver. The PCI bus code
> only hands out valid resources for a given BAR to the device_t for a
> given device.
> John Baldwin
I used /dev/mem and dd in the past for this purpose. Not pretty and
custom tool beats it any day, but it does work.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100311/5dbbf46e/signature.pgp
More information about the freebsd-hackers