Add the following Pcds declaration in EdkModulePkg.spd file. EdkModulePkg PeiVariable...
[mirror_edk2.git] / EdkModulePkg / Bus / Usb / UsbMassStorage / Dxe / UsbMassStorageHelper.h
CommitLineData
878ddf1f 1/*++\r
2Copyright (c) 2006, Intel Corporation \r
3All rights reserved. This program and the accompanying materials \r
4are licensed and made available under the terms and conditions of the BSD License \r
5which accompanies this distribution. The full text of the license may be found at \r
6http://opensource.org/licenses/bsd-license.php \r
7 \r
8THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
9WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
10\r
11Module Name:\r
12\r
13 UsbMassStorageHelper.h\r
14\r
15Abstract:\r
16\r
17 Function prototype for USB Mass Storage Driver\r
18\r
19Revision History\r
20--*/\r
21#ifndef _USB_FLPHLP_H\r
22#define _USB_FLPHLP_H\r
23\r
24#include "UsbMassStorage.h"\r
25\r
26EFI_STATUS\r
27USBFloppyIdentify (\r
28 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
29 );\r
30\r
31EFI_STATUS\r
32USBFloppyPacketCommand (\r
33 USB_FLOPPY_DEV *UsbFloppyDevice,\r
34 VOID *Command,\r
35 UINT8 CommandSize,\r
36 VOID *DataBuffer,\r
37 UINT32 BufferLength,\r
38 EFI_USB_DATA_DIRECTION Direction,\r
39 UINT16 TimeOutInMilliSeconds\r
40 );\r
41\r
42EFI_STATUS\r
43USBFloppyInquiry (\r
44 IN USB_FLOPPY_DEV *UsbFloppyDevice,\r
45 OUT USB_INQUIRY_DATA **Idata\r
46 );\r
47\r
48EFI_STATUS\r
49USBFloppyRead10 (\r
50 IN USB_FLOPPY_DEV *UsbFloppyDevice,\r
51 IN VOID *Buffer,\r
52 IN EFI_LBA Lba,\r
53 IN UINTN NumberOfBlocks\r
54 );\r
55\r
56EFI_STATUS\r
57USBFloppyReadFormatCapacity (\r
58 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
59 );\r
60\r
61EFI_STATUS\r
62UsbFloppyRequestSense (\r
63 IN USB_FLOPPY_DEV *UsbFloppyDevice,\r
64 OUT UINTN *SenseCounts\r
65 );\r
66\r
67EFI_STATUS\r
68UsbFloppyTestUnitReady (\r
69 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
70 );\r
71\r
72EFI_STATUS\r
73USBFloppyWrite10 (\r
74 IN USB_FLOPPY_DEV *UsbFloppyDevice,\r
75 IN VOID *Buffer,\r
76 IN EFI_LBA Lba,\r
77 IN UINTN NumberOfBlocks\r
78 );\r
79\r
80EFI_STATUS\r
81UsbFloppyDetectMedia (\r
82 IN USB_FLOPPY_DEV *UsbFloppyDevice,\r
83 OUT BOOLEAN *MediaChange\r
84 );\r
85\r
86EFI_STATUS\r
87UsbFloppyModeSense5APage5 (\r
88 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
89 );\r
90\r
91EFI_STATUS\r
92UsbFloppyModeSense5APage1C (\r
93 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
94 );\r
95\r
96EFI_STATUS\r
97UsbFloppyModeSense5APage3F (\r
98 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
99 );\r
100\r
101EFI_STATUS\r
102UsbSCSIModeSense1APage3F (\r
103 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
104 );\r
105\r
106EFI_STATUS\r
107UsbMassStorageModeSense (\r
108 IN USB_FLOPPY_DEV *UsbFloppyDevice\r
109 );\r
110\r
111#endif\r