Hi.

Im busy implementing a kernel module to enable me to read/write
certain control registers for a PCI card. I do not wish to modify the
existing driver, merely create an add-on module that can be loaded to
accomplish what I need.

I can easily get the device_t structure of the device, and I know I
can use device_get_softc, to get the softc of the structure. I also
see there used to be a bus_get_resource function that no longer seems
to be documented or has a man page on FreeBSD. So I was wondering if
there is a way to get the resource for the device using the device_t
structure, which would allow me to easily use the rman_get_bustag, and
rman_get_bushandle functions to get the bus_tag and bus_handle values
for the device and its resouce.

Regards
/Cole
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to