2007-07-11 10:47:37 +02:00
|
|
|
/** @file
|
|
|
|
|
|
|
|
Copyright (c) 2007, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
|
|
|
|
UsbMassImpl.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
The implementation of USB mass storage class device driver.
|
|
|
|
|
|
|
|
Revision History
|
|
|
|
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _EFI_USBMASS_IMPL_H_
|
|
|
|
#define _EFI_USBMASS_IMPL_H_
|
|
|
|
|
|
|
|
typedef struct _USB_MASS_DEVICE USB_MASS_DEVICE;
|
|
|
|
|
|
|
|
#include "UsbMass.h"
|
|
|
|
#include "UsbMassBot.h"
|
|
|
|
#include "UsbMassCbi.h"
|
|
|
|
#include "UsbMassBoot.h"
|
|
|
|
|
|
|
|
enum {
|
2007-10-08 08:14:13 +02:00
|
|
|
//
|
|
|
|
// MassStorage raises TPL to TPL_NOTIFY to serialize all its operations
|
|
|
|
// to protect shared data structures.
|
|
|
|
//
|
|
|
|
USB_MASS_TPL = TPL_NOTIFY,
|
|
|
|
|
2007-10-08 08:45:07 +02:00
|
|
|
USB_MASS_SIGNATURE = EFI_SIGNATURE_32 ('U', 's', 'b', 'M')
|
2007-07-11 10:47:37 +02:00
|
|
|
};
|
|
|
|
|
2007-07-17 03:48:09 +02:00
|
|
|
struct _USB_MASS_DEVICE {
|
2007-07-11 10:47:37 +02:00
|
|
|
UINT32 Signature;
|
|
|
|
EFI_HANDLE Controller;
|
|
|
|
EFI_USB_IO_PROTOCOL *UsbIo;
|
|
|
|
EFI_BLOCK_IO_PROTOCOL BlockIo;
|
|
|
|
EFI_BLOCK_IO_MEDIA BlockIoMedia;
|
|
|
|
BOOLEAN OpticalStorage;
|
|
|
|
UINT8 Lun; // Logical Unit Number
|
|
|
|
UINT8 Pdt; // Peripheral Device Type
|
|
|
|
USB_MASS_TRANSPORT *Transport; // USB mass storage transport protocol
|
|
|
|
VOID *Context; // Opaque storage for mass transport
|
|
|
|
};
|
|
|
|
|
|
|
|
#define USB_MASS_DEVICE_FROM_BLOCKIO(a) \
|
|
|
|
CR (a, USB_MASS_DEVICE, BlockIo, USB_MASS_SIGNATURE)
|
|
|
|
|
2007-09-30 04:47:05 +02:00
|
|
|
extern EFI_COMPONENT_NAME_PROTOCOL gUsbMassStorageComponentName;
|
|
|
|
extern EFI_COMPONENT_NAME2_PROTOCOL gUsbMassStorageComponentName2;
|
2007-07-11 10:47:37 +02:00
|
|
|
|
|
|
|
#endif
|