]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/C/Include/IndustryStandard/EfiPci.h
License header updated to match correct format.
[mirror_edk2.git] / BaseTools / Source / C / Include / IndustryStandard / EfiPci.h
... / ...
CommitLineData
1/** @file\r
2 Support for EFI PCI specification.\r
3\r
4 Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
5\r
6 This program and the accompanying materials are licensed and made available\r
7 under the terms and conditions of the BSD License which accompanies this\r
8 distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _EFI_PCI_H_\r
17#define _EFI_PCI_H_\r
18\r
19//#include "pci22.h"\r
20//#include "pci23.h"\r
21//#include "pci30.h"\r
22\r
23#pragma pack(push, 1)\r
24\r
25typedef struct {\r
26 UINT8 Register;\r
27 UINT8 Function;\r
28 UINT8 Device;\r
29 UINT8 Bus;\r
30 UINT8 Reserved[4];\r
31} DEFIO_PCI_ADDR;\r
32\r
33#define EFI_ROOT_BRIDGE_LIST 'eprb'\r
34#define EFI_PCI_EXPANSION_ROM_HEADER_EFISIGNATURE 0x0EF1\r
35\r
36typedef struct {\r
37 UINT16 Signature; // 0xaa55\r
38 UINT16 InitializationSize;\r
39 UINT32 EfiSignature; // 0x0EF1\r
40 UINT16 EfiSubsystem;\r
41 UINT16 EfiMachineType;\r
42 UINT16 CompressionType;\r
43 UINT8 Reserved[8];\r
44 UINT16 EfiImageHeaderOffset;\r
45 UINT16 PcirOffset;\r
46} EFI_PCI_EXPANSION_ROM_HEADER;\r
47\r
48typedef union {\r
49 UINT8 *Raw;\r
50 PCI_EXPANSION_ROM_HEADER *Generic;\r
51 EFI_PCI_EXPANSION_ROM_HEADER *Efi;\r
52 EFI_LEGACY_EXPANSION_ROM_HEADER *PcAt;\r
53} EFI_PCI_ROM_HEADER;\r
54\r
55#pragma pack(pop)\r
56\r
57#endif\r