]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
2 | This file declares BlockIo PPI used to access block-oriented storage devices\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation \r | |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
13 | Module Name: BlockIo.h\r | |
14 | \r | |
15 | @par Revision Reference:\r | |
16 | This PPI is defined in Framework of EFI Recovery Spec\r | |
17 | Version 0.9\r | |
18 | \r | |
19 | **/\r | |
20 | \r | |
21 | #ifndef _PEI_BLOCK_IO_H_\r | |
22 | #define _PEI_BLOCK_IO_H_\r | |
23 | \r | |
24 | #define EFI_PEI_VIRTUAL_BLOCK_IO_PPI \\r | |
25 | { \\r | |
26 | 0x695d8aa1, 0x42ee, 0x4c46, {0x80, 0x5c, 0x6e, 0xa6, 0xbc, 0xe7, 0x99, 0xe3 } \\r | |
27 | }\r | |
28 | \r | |
29 | typedef struct _EFI_PEI_RECOVERY_BLOCK_IO_PPI EFI_PEI_RECOVERY_BLOCK_IO_PPI;\r | |
30 | \r | |
31 | typedef UINT64 EFI_PEI_LBA;\r | |
32 | \r | |
33 | typedef enum {\r | |
34 | LegacyFloppy = 0,\r | |
35 | IdeCDROM = 1,\r | |
36 | IdeLS120 = 2,\r | |
37 | UsbMassStorage= 3,\r | |
38 | MaxDeviceType\r | |
39 | } EFI_PEI_BLOCK_DEVICE_TYPE;\r | |
40 | \r | |
41 | typedef struct {\r | |
42 | EFI_PEI_BLOCK_DEVICE_TYPE DeviceType;\r | |
43 | BOOLEAN MediaPresent;\r | |
44 | UINTN LastBlock;\r | |
45 | UINTN BlockSize;\r | |
46 | } EFI_PEI_BLOCK_IO_MEDIA;\r | |
47 | \r | |
48 | /**\r | |
49 | Gets the count of block I/O devices that one specific block driver detects.\r | |
50 | \r | |
51 | @param PeiServices General-purpose services that are available to every PEIM.\r | |
52 | \r | |
53 | @param This Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI instance.\r | |
54 | \r | |
55 | @param NumberBlockDevices The number of block I/O devices discovered.\r | |
56 | \r | |
57 | @return Status code\r | |
58 | \r | |
59 | **/\r | |
60 | typedef\r | |
61 | EFI_STATUS\r | |
62 | (EFIAPI *EFI_PEI_GET_NUMBER_BLOCK_DEVICES) (\r | |
63 | IN EFI_PEI_SERVICES **PeiServices,\r | |
64 | IN EFI_PEI_RECOVERY_BLOCK_IO_PPI *This,\r | |
65 | OUT UINTN *NumberBlockDevices\r | |
66 | );\r | |
67 | \r | |
68 | /**\r | |
69 |