summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2003-09-04 01:27:33 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-09-04 01:27:33 -0700
commit7c9481c3d31dab43cf053ebeab556264e608b4ae (patch)
treea7e2751e9779969590b6e4f324b5eb4e02ceb4c6
parent80150dc51260bec0a96fb6e7b8152abba9fc3950 (diff)
[PATCH] USB: usb "gadgetfs" (2/2)
This adds the kconfig/kbuild hooks needed to build the driver.
-rw-r--r--drivers/usb/gadget/Kconfig24
-rw-r--r--drivers/usb/gadget/Makefile2
2 files changed, 26 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index e7d117b98348..2ff0d802f196 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -147,6 +147,30 @@ config USB_ETH_SA1100
depends on USB_ETH && USB_SA1100
default y
+config USB_GADGETFS
+ tristate "Gadget Filesystem (EXPERIMENTAL)"
+ depends on USB_GADGET && (USB_DUMMY_HCD || USB_NET2280 || USB_PXA2XX) && EXPERIMENTAL
+ help
+ This driver provides a filesystem based API that lets user mode
+ programs implement a single-configuration USB device, including
+ endpoint I/O and control requests that don't relate to enumeration.
+ All endpoints, transfer speeds, and transfer types supported by
+ the hardware are available, through read() and write() calls.
+
+ Say "y" to link the driver statically, or "m" to build a
+ dynamically linked module called "gadgetfs".
+
+config USB_GADGETFS_NET2280
+ bool
+ # for now, treat the "dummy" hcd as if it were a net2280
+ depends on USB_GADGETFS && (USB_NET2280 || USB_DUMMY_HCD)
+ default y
+
+config USB_GADGETFS_PXA2XX
+ bool
+ depends on USB_GADGETFS && USB_PXA2XX
+ default y
+
endchoice
# endmenuconfig
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
index 0575e6d8b1f0..6bf13ffc525b 100644
--- a/drivers/usb/gadget/Makefile
+++ b/drivers/usb/gadget/Makefile
@@ -8,7 +8,9 @@ obj-$(CONFIG_USB_NET2280) += net2280.o
#
g_zero-objs := zero.o usbstring.o
g_ether-objs := ether.o usbstring.o
+gadgetfs-objs := inode.o usbstring.o
obj-$(CONFIG_USB_ZERO) += g_zero.o
obj-$(CONFIG_USB_ETH) += g_ether.o
+obj-$(CONFIG_USB_GADGETFS) += gadgetfs.o