]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/Pci23.h
d9ad8ea0171307f6c7d7d5361bd202fb11fedece
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Pci23.h
1 /** @file
2 Support for PCI 2.3 standard.
3
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved<BR>
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 /// PCI_CLASS_MASS_STORAGE, Base Class 01h.
22 ///
23 ///@{
24 #define PCI_CLASS_MASS_STORAGE_ATA 0x05
25 #define PCI_IF_MASS_STORAGE_SINGLE_DMA 0x20
26 #define PCI_IF_MASS_STORAGE_CHAINED_DMA 0x30
27 ///@}
28
29 ///
30 /// PCI_CLASS_SERIAL, Base Class 0Ch.
31 ///
32 ///@{
33 #define PCI_IF_EHCI 0x20
34 #define PCI_CLASS_SERIAL_IB 0x06
35 ///@}
36
37 ///
38 /// defined in PCI Express Spec.
39 ///
40 #define PCI_EXP_MAX_CONFIG_OFFSET 0x1000
41
42 ///
43 /// PCI Capability List IDs and records.
44 ///
45 #define EFI_PCI_CAPABILITY_ID_PCIX 0x07
46
47 #pragma pack(1)
48 ///
49 /// PCI-X Capabilities List,
50 /// Section 7.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b.
51 ///
52 typedef struct {
53 EFI_PCI_CAPABILITY_HDR Hdr;
54 UINT16 CommandReg;
55 UINT32 StatusReg;
56 } EFI_PCI_CAPABILITY_PCIX;
57
58 ///
59 /// PCI-X Bridge Capabilities List,
60 /// Section 8.6.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b.
61 ///
62 typedef struct {
63 EFI_PCI_CAPABILITY_HDR Hdr;
64 UINT16 SecStatusReg;
65 UINT32 StatusReg;
66 UINT32 SplitTransCtrlRegUp;
67 UINT32 SplitTransCtrlRegDn;
68 } EFI_PCI_CAPABILITY_PCIX_BRDG;
69
70 #pragma pack()
71
72 #define PCI_CODE_TYPE_EFI_IMAGE 0x03
73
74 #endif