diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/storage.h | 48 | ||||
| -rw-r--r-- | include/linux/usb_usual.h | 38 |
2 files changed, 49 insertions, 37 deletions
diff --git a/include/linux/usb/storage.h b/include/linux/usb/storage.h new file mode 100644 index 000000000000..d7fc910f1dc4 --- /dev/null +++ b/include/linux/usb/storage.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | #ifndef __LINUX_USB_STORAGE_H | ||
| 2 | #define __LINUX_USB_STORAGE_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * linux/usb/storage.h | ||
| 6 | * | ||
| 7 | * Copyright Matthew Wilcox for Intel Corp, 2010 | ||
| 8 | * | ||
| 9 | * This file contains definitions taken from the | ||
| 10 | * USB Mass Storage Class Specification Overview | ||
| 11 | * | ||
| 12 | * Distributed under the terms of the GNU GPL, version two. | ||
| 13 | */ | ||
| 14 | |||
| 15 | /* Storage subclass codes */ | ||
| 16 | |||
| 17 | #define USB_SC_RBC 0x01 /* Typically, flash devices */ | ||
| 18 | #define USB_SC_8020 0x02 /* CD-ROM */ | ||
| 19 | #define USB_SC_QIC 0x03 /* QIC-157 Tapes */ | ||
| 20 | #define USB_SC_UFI 0x04 /* Floppy */ | ||
| 21 | #define USB_SC_8070 0x05 /* Removable media */ | ||
| 22 | #define USB_SC_SCSI 0x06 /* Transparent */ | ||
| 23 | #define USB_SC_LOCKABLE 0x07 /* Password-protected */ | ||
| 24 | |||
| 25 | #define USB_SC_ISD200 0xf0 /* ISD200 ATA */ | ||
| 26 | #define USB_SC_CYP_ATACB 0xf1 /* Cypress ATACB */ | ||
| 27 | #define USB_SC_DEVICE 0xff /* Use device's value */ | ||
| 28 | |||
| 29 | /* Storage protocol codes */ | ||
| 30 | |||
| 31 | #define USB_PR_CBI 0x00 /* Control/Bulk/Interrupt */ | ||
| 32 | #define USB_PR_CB 0x01 /* Control/Bulk w/o interrupt */ | ||
| 33 | #define USB_PR_BULK 0x50 /* bulk only */ | ||
| 34 | #define USB_PR_UAS 0x62 /* USB Attached SCSI */ | ||
| 35 | |||
| 36 | #define USB_PR_USBAT 0x80 /* SCM-ATAPI bridge */ | ||
| 37 | #define USB_PR_EUSB_SDDR09 0x81 /* SCM-SCSI bridge for SDDR-09 */ | ||
| 38 | #define USB_PR_SDDR55 0x82 /* SDDR-55 (made up) */ | ||
| 39 | #define USB_PR_DPCM_USB 0xf0 /* Combination CB/SDDR09 */ | ||
| 40 | #define USB_PR_FREECOM 0xf1 /* Freecom */ | ||
| 41 | #define USB_PR_DATAFAB 0xf2 /* Datafab chipsets */ | ||
| 42 | #define USB_PR_JUMPSHOT 0xf3 /* Lexar Jumpshot */ | ||
| 43 | #define USB_PR_ALAUDA 0xf4 /* Alauda chipsets */ | ||
| 44 | #define USB_PR_KARMA 0xf5 /* Rio Karma */ | ||
| 45 | |||
| 46 | #define USB_PR_DEVICE 0xff /* Use device's value */ | ||
| 47 | |||
| 48 | #endif | ||
diff --git a/include/linux/usb_usual.h b/include/linux/usb_usual.h index f387c436042e..f091dc6e5a00 100644 --- a/include/linux/usb_usual.h +++ b/include/linux/usb_usual.h | |||
| @@ -74,43 +74,7 @@ enum { US_DO_ALL_FLAGS }; | |||
| 74 | #define USB_US_TYPE(flags) (((flags) >> 24) & 0xFF) | 74 | #define USB_US_TYPE(flags) (((flags) >> 24) & 0xFF) |
| 75 | #define USB_US_ORIG_FLAGS(flags) ((flags) & 0x00FFFFFF) | 75 | #define USB_US_ORIG_FLAGS(flags) ((flags) & 0x00FFFFFF) |
| 76 | 76 | ||
| 77 | /* | 77 | #include <linux/usb/storage.h> |
| 78 | * This is probably not the best place to keep these constants, conceptually. | ||
| 79 | * But it's the only header included into all places which need them. | ||
| 80 | */ | ||
| 81 | |||
| 82 | /* Sub Classes */ | ||
| 83 | |||
| 84 | #define USB_SC_RBC 0x01 /* Typically, flash devices */ | ||
| 85 | #define USB_SC_8020 0x02 /* CD-ROM */ | ||
| 86 | #define USB_SC_QIC 0x03 /* QIC-157 Tapes */ | ||
| 87 | #define USB_SC_UFI 0x04 /* Floppy */ | ||
| 88 | #define USB_SC_8070 0x05 /* Removable media */ | ||
| 89 | #define USB_SC_SCSI 0x06 /* Transparent */ | ||
| 90 | #define USB_SC_LOCKABLE 0x07 /* Password-protected */ | ||
| 91 | |||
| 92 | #define USB_SC_ISD200 0xf0 /* ISD200 ATA */ | ||
| 93 | #define USB_SC_CYP_ATACB 0xf1 /* Cypress ATACB */ | ||
| 94 | #define USB_SC_DEVICE 0xff /* Use device's value */ | ||
| 95 | |||
| 96 | /* Storage protocol codes */ | ||
| 97 | |||
| 98 | #define USB_PR_CBI 0x00 /* Control/Bulk/Interrupt */ | ||
| 99 | #define USB_PR_CB 0x01 /* Control/Bulk w/o interrupt */ | ||
| 100 | #define USB_PR_BULK 0x50 /* bulk only */ | ||
| 101 | #define USB_PR_UAS 0x62 /* USB Attached SCSI */ | ||
| 102 | |||
| 103 | #define USB_PR_USBAT 0x80 /* SCM-ATAPI bridge */ | ||
| 104 | #define USB_PR_EUSB_SDDR09 0x81 /* SCM-SCSI bridge for SDDR-09 */ | ||
| 105 | #define USB_PR_SDDR55 0x82 /* SDDR-55 (made up) */ | ||
| 106 | #define USB_PR_DPCM_USB 0xf0 /* Combination CB/SDDR09 */ | ||
| 107 | #define USB_PR_FREECOM 0xf1 /* Freecom */ | ||
| 108 | #define USB_PR_DATAFAB 0xf2 /* Datafab chipsets */ | ||
| 109 | #define USB_PR_JUMPSHOT 0xf3 /* Lexar Jumpshot */ | ||
| 110 | #define USB_PR_ALAUDA 0xf4 /* Alauda chipsets */ | ||
| 111 | #define USB_PR_KARMA 0xf5 /* Rio Karma */ | ||
| 112 | |||
| 113 | #define USB_PR_DEVICE 0xff /* Use device's value */ | ||
| 114 | 78 | ||
| 115 | /* | 79 | /* |
| 116 | */ | 80 | */ |
