summaryrefslogtreecommitdiffstats
path: root/firmware/export/usbstack.h
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-09-30 12:25:06 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-09-30 12:25:06 +0000
commit0f5d9f9125e53ae62175469e78151ca4cb0be79a (patch)
treef2b1089fd8fe18eeabc36038cb0f8ae9e39c6429 /firmware/export/usbstack.h
parent6386dbe861bc3395dff1bca5b98e8cbe33ddc703 (diff)
downloadrockbox-0f5d9f9125e53ae62175469e78151ca4cb0be79a.tar.gz
rockbox-0f5d9f9125e53ae62175469e78151ca4cb0be79a.tar.bz2
rockbox-0f5d9f9125e53ae62175469e78151ca4cb0be79a.zip
first part of usbstack patches -> show and use selection of usb stack mode only, if
a target supports both modes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usbstack.h')
-rw-r--r--firmware/export/usbstack.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/export/usbstack.h b/firmware/export/usbstack.h
index bf1c2db5bf..4ad477ec97 100644
--- a/firmware/export/usbstack.h
+++ b/firmware/export/usbstack.h
@@ -22,7 +22,15 @@
#include <errno.h>
-#define USB_STACK_MAX_SETTINGS_NAME 32*10 /* should be enough for > 10 driver names */
+#define USB_STACK_MAX_SETTINGS_NAME 32*10 /* should be enough for > 10 driver names */
+
+/* usb stack configuration */
+#ifndef USBSTACK_CAPS
+#define USBSTACK_CAPS 0 /* default: use no controller */
+#endif
+
+#define CONTROLLER_DEVICE (1 << 0)
+#define CONTROLLER_HOST (1 << 1)
/*
* error codes
@@ -30,7 +38,7 @@
#define ENOFREESLOT 1
#define EWRONGCONTROLLERTYPE 2
#define ENODRIVERFOUND 3
-#define EHWCRITICAL 4
+#define EHWCRITICAL 4
enum usb_controller_type {
DEVICE = 0,