]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassImpl.h
Clean up to update the reference of the these macros:
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassImpl.h
CommitLineData
e237e7ae 1/** @file\r
2\r
cc5166ff 3 The implementation of USB mass storage class device driver.\r
4\r
c7e39923 5Copyright (c) 2007 - 2008, Intel Corporation\r
e237e7ae 6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
e237e7ae 14**/\r
15\r
16#ifndef _EFI_USBMASS_IMPL_H_\r
17#define _EFI_USBMASS_IMPL_H_\r
18\r
19typedef struct _USB_MASS_DEVICE USB_MASS_DEVICE;\r
20\r
21#include "UsbMass.h"\r
22#include "UsbMassBot.h"\r
23#include "UsbMassCbi.h"\r
24#include "UsbMassBoot.h"\r
25\r
e237e7ae 26\r
cc5166ff 27//\r
28// MassStorage raises TPL to TPL_NOTIFY to serialize all its operations\r
29// to protect shared data structures.\r
30//\r
31#define USB_MASS_TPL TPL_NOTIFY\r
32\r
33#define USB_MASS_SIGNATURE EFI_SIGNATURE_32 ('U', 's', 'b', 'M')\r
34\r
35\r
11dad244 36struct _USB_MASS_DEVICE {\r
c7e39923 37 UINT32 Signature;\r
38 EFI_HANDLE Controller;\r
39 EFI_USB_IO_PROTOCOL *UsbIo;\r
40 EFI_DEVICE_PATH_PROTOCOL *DevicePath;\r
41 EFI_BLOCK_IO_PROTOCOL BlockIo;\r
42 EFI_BLOCK_IO_MEDIA BlockIoMedia;\r
43 BOOLEAN OpticalStorage;\r
44 UINT8 Lun; // Logical Unit Number\r
45 UINT8 Pdt; // Peripheral Device Type\r
46 USB_MASS_TRANSPORT *Transport; // USB mass storage transport protocol\r
47 VOID *Context; // Opaque storage for mass transport\r
11dad244 48};\r
e237e7ae 49\r
50#define USB_MASS_DEVICE_FROM_BLOCKIO(a) \\r
51 CR (a, USB_MASS_DEVICE, BlockIo, USB_MASS_SIGNATURE)\r
52\r
62b9bb55 53extern EFI_COMPONENT_NAME_PROTOCOL gUsbMassStorageComponentName;\r
54extern EFI_COMPONENT_NAME2_PROTOCOL gUsbMassStorageComponentName2;\r
e237e7ae 55\r
56#endif\r