]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/Pci23.h
correct a operation mistake
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Pci23.h
1 /** @file
2 Support for PCI 2.3 standard.
3
4 Copyright (c) 2006 - 2008, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 **/
14
15 #ifndef _PCI23_H_
16 #define _PCI23_H_
17
18 #include <IndustryStandard/Pci22.h>
19
20 ///
21 /// Definitions of PCI class bytes and manipulation macros.
22 ///
23 #define PCI_IF_EHCI 0x20
24
25 ///
26 /// defined in PCI Express Spec.
27 ///
28 #define PCI_EXP_MAX_CONFIG_OFFSET 0x1000
29
30 ///
31 /// PCI Capability List IDs and records
32 ///
33 #define EFI_PCI_CAPABILITY_ID_PCIX 0x07
34
35 #pragma pack(1)
36 ///
37 /// PCI-X Capabilities List,
38 /// Section 7.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b
39 ///
40 typedef struct {
41 EFI_PCI_CAPABILITY_HDR Hdr;
42 UINT16 CommandReg;
43 UINT32 StatusReg;
44 } EFI_PCI_CAPABILITY_PCIX;
45
46 ///
47 /// PCI-X Bridge Capabilities List,
48 /// Section 8.6.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b
49 ///
50 typedef struct {
51 EFI_PCI_CAPABILITY_HDR Hdr;
52 UINT16 SecStatusReg;
53 UINT32 StatusReg;
54 UINT32 SplitTransCtrlRegUp;
55 UINT32 SplitTransCtrlRegDn;
56 } EFI_PCI_CAPABILITY_PCIX_BRDG;
57
58 #pragma pack()
59
60 #define PCI_CODE_TYPE_EFI_IMAGE 0x03
61
62 #endif