summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb.h
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-04-05 17:23:54 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-04-05 17:23:54 +0000
commit9ac433dd352fdfe7f3038aa0e1a4333686bc07fc (patch)
treedbd5f1af78f43db3b1ad4fcc3e17d0801a92a89d /sys/dev/usb/usb.h
parent4687fd7523d79c916bcb1810a182d067f8fe7fb5 (diff)
downloadFreeBSD-src-9ac433dd352fdfe7f3038aa0e1a4333686bc07fc.zip
FreeBSD-src-9ac433dd352fdfe7f3038aa0e1a4333686bc07fc.tar.gz
1) Add the defines for the Mass Storage class
2) Add comments 3) Add UE_DIR to replace the querying of UE_IN directly
Diffstat (limited to 'sys/dev/usb/usb.h')
-rw-r--r--sys/dev/usb/usb.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h
index 7db7b5d..3dcf438 100644
--- a/sys/dev/usb/usb.h
+++ b/sys/dev/usb/usb.h
@@ -217,8 +217,9 @@ typedef struct {
uByte bLength;
uByte bDescriptorType;
uByte bEndpointAddress;
-#define UE_IN 0x80
-#define UE_OUT 0x00
+#define UE_DIR 0x80 /* mask */
+#define UE_IN 0x80
+#define UE_OUT 0x00
#define UE_ADDR 0x0f
#define UE_GET_ADDR(a) ((a) & UE_ADDR)
#define UE_GET_IN(a) (((a) >> 7) & 1)
@@ -329,20 +330,32 @@ typedef struct {
#define UDESC_HUB 0x29
-#define UCLASS_UNSPEC 0
-#define UCLASS_AUDIO 1
+#define UCLASS_UNSPEC 0 /* Unspecified */
+#define UCLASS_AUDIO 1 /* Audio */
#define USUBCLASS_AUDIOCONTROL 1
#define USUBCLASS_AUDIOSTREAM 2
-#define UCLASS_CDC 2 /* communication */
+#define UCLASS_CDC 2 /* Communication */
#define USUBCLASS_ABSTRACT_CONTROL_MODEL 2
#define UPROTO_CDC_AT 1
-#define UCLASS_HID 3
+#define UCLASS_HID 3 /* Human Interface Device */
#define USUBCLASS_BOOT 1
-#define UCLASS_PRINTER 7
+#define UCLASS_PRINTER 7 /* Printer/Parallel Port */
#define USUBCLASS_PRINTER 1
-#define UPROTO_PRINTER_UNI 1
-#define UPROTO_PRINTER_BI 2
-#define UCLASS_HUB 9
+#define UPROTO_PRINTER_UNI 1 /* Unidirectional */
+#define UPROTO_PRINTER_BI 2 /* Bidirectional */
+#define UCLASS_MASS 8 /* Mass Storage */
+#define USUBCLASS_RBC 1 /* Reduced Block comm. (e.g. Flash ) */
+#define USUBCLASS_SFF8020I 2 /* (e.g. CD ROM) */
+#define USUBCLASS_QIC157 3 /* (e.g. tape drives) */
+#define USUBCLASS_UFI 4 /* (e.g. floppy drives) */
+#define USUBCLASS_SFF8070I 5 /* (e.g. floppy drives) */
+#define USUBCLASS_SCSI 6 /* SCSI transparent comman set */
+#define UPROTO_MASS_CBI_I 0 /* CBI protocol with comm. compl. int */
+#define UPROTO_MASS_CBI 1 /* CBI protocol */
+/* unknown yet 1999-04-05
+#define UPROTO_MASS_BULK ?? / * Bulk only transport * /
+*/
+#define UCLASS_HUB 9 /* Hub */
#define USUBCLASS_HUB 0
#define UCLASS_DATA 10
OpenPOWER on IntegriCloud