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