]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | Support for EFI PCI specification.\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: EfiPci.h\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _EFI_PCI_H_\r | |
18 | #define _EFI_PCI_H_\r | |
19 | \r | |
20 | //#include "pci22.h"\r | |
21 | //#include "pci23.h"\r | |
22 | //#include "pci30.h"\r | |
23 | \r | |
24 | #pragma pack(push, 1)\r | |
25 | \r | |
26 | typedef struct {\r | |
27 | UINT8 Register;\r | |
28 | UINT8 Function;\r | |
29 | UINT8 Device;\r | |
30 | UINT8 Bus;\r | |
31 | UINT8 Reserved[4];\r | |
32 | } DEFIO_PCI_ADDR;\r | |
33 | \r | |
34 | #define EFI_ROOT_BRIDGE_LIST 'eprb'\r | |
35 | #define EFI_PCI_EXPANSION_ROM_HEADER_EFISIGNATURE 0x0EF1\r | |
36 | \r | |
37 | typedef struct {\r | |
38 | UINT16 Signature; // 0xaa55\r | |
39 | UINT16 InitializationSize;\r | |
40 | UINT32 EfiSignature; // 0x0EF1\r | |
41 | UINT16 EfiSubsystem;\r | |
42 | UINT16 EfiMachineType;\r | |
43 | UINT16 CompressionType;\r | |
44 | UINT8 Reserved[8];\r | |
45 | UINT16 EfiImageHeaderOffset;\r | |
46 | UINT16 PcirOffset;\r | |
47 | } EFI_PCI_EXPANSION_ROM_HEADER;\r | |
48 | \r | |
49 | typedef union {\r | |
50 | UINT8 *Raw;\r | |
51 | PCI_EXPANSION_ROM_HEADER *Generic;\r | |
52 | EFI_PCI_EXPANSION_ROM_HEADER *Efi;\r | |
53 | EFI_LEGACY_EXPANSION_ROM_HEADER *PcAt;\r | |
54 | } EFI_PCI_ROM_HEADER;\r | |
55 | \r | |
56 | #pragma pack(pop)\r | |
57 | \r | |
58 | #endif\r |