aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/files.i386
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2005-02-24 21:49:14 +0000
committerBill Paul <wpaul@FreeBSD.org>2005-02-24 21:49:14 +0000
commit63ba67b69c4e3044fddaca8523fabfe0d880eaba (patch)
tree9826f7881f0921875e728a09660d1bfe45dd7749 /sys/conf/files.i386
parentd701c91325ad017b3b048c8156637f75a76f5043 (diff)
downloadsrc-63ba67b69c4e3044fddaca8523fabfe0d880eaba.tar.gz
src-63ba67b69c4e3044fddaca8523fabfe0d880eaba.zip
- Correct one aspect of the driver_object/device_object/IRP framework:
when we create a PDO, the driver_object associated with it is that of the parent driver, not the driver we're trying to attach. For example, if we attach a PCI device, the PDO we pass to the NdisAddDevice() function should contain a pointer to fake_pci_driver, not to the NDIS driver itself. For PCI or PCMCIA devices this doesn't matter because the child never needs to talk to the parent bus driver, but for USB, the child needs to be able to send IRPs to the parent USB bus driver, and for that to work the parent USB bus driver has to be hung off the PDO. This involves modifying windrv_lookup() so that we can search for bus drivers by name, if necessary. Our fake bus drivers attach themselves as "PCI Bus," "PCCARD Bus" and "USB Bus," so we can search for them using those names. The individual attachment stubs now create and attach PDOs to the parent bus drivers instead of hanging them off the NDIS driver's object, and in if_ndis.c, we now search for the correct driver object depending on the bus type, and use that to find the correct PDO. With this fix, I can get my sample USB ethernet driver to deliver an IRP to my fake parent USB bus driver's dispatch routines. - Add stub modules for USB support: subr_usbd.c, usbd_var.h and if_ndis_usb.c. The subr_usbd.c module is hooked up the build but currently doesn't do very much. It provides the stub USB parent driver object and a dispatch routine for IRM_MJ_INTERNAL_DEVICE_CONTROL. The only exported function at the moment is USBD_GetUSBDIVersion(). The if_ndis_usb.c stub compiles, but is not hooked up to the build yet. I'm putting these here so I can keep them under source code control as I flesh them out.
Notes
Notes: svn path=/head/; revision=142399
Diffstat (limited to 'sys/conf/files.i386')
-rw-r--r--sys/conf/files.i3861
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 0060fcd301d9..18680feebfc6 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -85,6 +85,7 @@ compat/ndis/subr_hal.c optional ndisapi pci
compat/ndis/subr_ndis.c optional ndisapi pci
compat/ndis/subr_ntoskrnl.c optional ndisapi pci
compat/ndis/subr_pe.c optional ndisapi pci
+compat/ndis/subr_usbd.c optional ndisapi pci
compat/pecoff/imgact_pecoff.c optional pecoff_support
compat/svr4/imgact_svr4.c optional compat_svr4
compat/svr4/svr4_fcntl.c optional compat_svr4