2 Copyright (c) 2006, Intel Corporation
3 All rights reserved. This program and the accompanying materials
4 are licensed and made available under the terms and conditions of the BSD License
5 which accompanies this distribution. The full text of the license may be found at
6 http://opensource.org/licenses/bsd-license.php
8 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 Header file for USB Mass Storage Driver's Data Structures
26 #include <IndustryStandard/Usb.h>
27 #include "UsbMassStorageData.h"
29 #define CLASS_MASSTORAGE 8
30 #define SUBCLASS_UFI 4
31 #define SUBCLASS_8070 5
32 #define PROTOCOL_BOT 0x50
33 #define PROTOCOL_CBI0 0
34 #define PROTOCOL_CBI1 1
37 #define USBFLOPPY2 2 // for those that use ReadCapacity(0x25) command to retrieve media capacity
40 #define USB_FLOPPY_DEV_SIGNATURE EFI_SIGNATURE_32 ('u', 'f', 'l', 'p')
46 EFI_BLOCK_IO_PROTOCOL BlkIo
;
47 EFI_BLOCK_IO_MEDIA BlkMedia
;
48 EFI_USB_ATAPI_PROTOCOL
*AtapiProtocol
;
50 REQUEST_SENSE_DATA
*SenseData
;
51 UINT8 SenseDataNumber
;
56 #define USB_FLOPPY_DEV_FROM_THIS(a) \
57 CR(a, USB_FLOPPY_DEV, BlkIo, USB_FLOPPY_DEV_SIGNATURE)