2007-06-19 12:39:04 +02:00
|
|
|
/** @file
|
|
|
|
Support for PCI 2.3 standard.
|
|
|
|
|
2012-11-02 07:13:14 +01:00
|
|
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
2010-04-23 17:46:20 +02:00
|
|
|
This program and the accompanying materials
|
2007-06-19 12:39:04 +02:00
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
2010-03-12 23:19:12 +01:00
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
2007-06-19 12:39:04 +02:00
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-07-25 14:21:57 +02:00
|
|
|
#ifndef _PCI23_H_
|
|
|
|
#define _PCI23_H_
|
2007-06-19 12:39:04 +02:00
|
|
|
|
2008-10-27 02:52:32 +01:00
|
|
|
#include <IndustryStandard/Pci22.h>
|
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI_CLASS_MASS_STORAGE, Base Class 01h.
|
2008-10-27 02:52:32 +01:00
|
|
|
///
|
2009-08-12 07:30:44 +02:00
|
|
|
///@{
|
|
|
|
#define PCI_CLASS_MASS_STORAGE_ATA 0x05
|
|
|
|
#define PCI_IF_MASS_STORAGE_SINGLE_DMA 0x20
|
|
|
|
#define PCI_IF_MASS_STORAGE_CHAINED_DMA 0x30
|
|
|
|
///@}
|
|
|
|
|
2012-11-02 07:13:14 +01:00
|
|
|
///
|
|
|
|
/// PCI_CLASS_NETWORK, Base Class 02h.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_CLASS_NETWORK_WORLDFIP 0x05
|
|
|
|
#define PCI_CLASS_NETWORK_PICMG_MULTI_COMPUTING 0x06
|
|
|
|
///@}
|
|
|
|
|
|
|
|
///
|
|
|
|
/// PCI_CLASS_BRIDGE, Base Class 06h.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_CLASS_BRIDGE_SEMI_TRANSPARENT_P2P 0x09
|
|
|
|
#define PCI_IF_BRIDGE_SEMI_TRANSPARENT_P2P_PRIMARY 0x40
|
|
|
|
#define PCI_IF_BRIDGE_SEMI_TRANSPARENT_P2P_SECONDARY 0x80
|
|
|
|
#define PCI_CLASS_BRIDGE_INFINIBAND_TO_PCI 0x0A
|
|
|
|
///@}
|
|
|
|
|
|
|
|
///
|
|
|
|
/// PCI_CLASS_SCC, Base Class 07h.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_SUBCLASS_GPIB 0x04
|
|
|
|
#define PCI_SUBCLASS_SMART_CARD 0x05
|
|
|
|
///@}
|
|
|
|
|
2009-08-12 07:30:44 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI_CLASS_SERIAL, Base Class 0Ch.
|
2009-08-12 07:30:44 +02:00
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_IF_EHCI 0x20
|
|
|
|
#define PCI_CLASS_SERIAL_IB 0x06
|
2012-11-02 07:13:14 +01:00
|
|
|
#define PCI_CLASS_SERIAL_IPMI 0x07
|
|
|
|
#define PCI_IF_IPMI_SMIC 0x00
|
|
|
|
#define PCI_IF_IPMI_KCS 0x01 ///< Keyboard Controller Style
|
|
|
|
#define PCI_IF_IPMI_BT 0x02 ///< Block Transfer
|
|
|
|
#define PCI_CLASS_SERIAL_SERCOS 0x08
|
|
|
|
#define PCI_CLASS_SERIAL_CANBUS 0x09
|
|
|
|
///@}
|
|
|
|
|
|
|
|
///
|
|
|
|
/// PCI_CLASS_WIRELESS, Base Class 0Dh.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_SUBCLASS_BLUETOOTH 0x11
|
|
|
|
#define PCI_SUBCLASS_BROADBAND 0x12
|
|
|
|
///@}
|
|
|
|
|
|
|
|
///
|
|
|
|
/// PCI_CLASS_DPIO, Base Class 11h.
|
|
|
|
///
|
|
|
|
///@{
|
|
|
|
#define PCI_SUBCLASS_PERFORMANCE_COUNTERS 0x01
|
|
|
|
#define PCI_SUBCLASS_COMMUNICATION_SYNCHRONIZATION 0x10
|
|
|
|
#define PCI_SUBCLASS_MANAGEMENT_CARD 0x20
|
2009-08-12 07:30:44 +02:00
|
|
|
///@}
|
2007-06-19 12:39:04 +02:00
|
|
|
|
2008-10-27 02:52:32 +01:00
|
|
|
///
|
|
|
|
/// defined in PCI Express Spec.
|
|
|
|
///
|
2007-06-19 12:39:04 +02:00
|
|
|
#define PCI_EXP_MAX_CONFIG_OFFSET 0x1000
|
|
|
|
|
2008-11-24 07:42:33 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI Capability List IDs and records.
|
2008-11-24 07:42:33 +01:00
|
|
|
///
|
2008-10-27 02:52:32 +01:00
|
|
|
#define EFI_PCI_CAPABILITY_ID_PCIX 0x07
|
|
|
|
|
2008-11-11 23:21:08 +01:00
|
|
|
#pragma pack(1)
|
2008-10-27 02:52:32 +01:00
|
|
|
///
|
2008-12-02 09:15:14 +01:00
|
|
|
/// PCI-X Capabilities List,
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Section 7.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b.
|
2008-10-27 02:52:32 +01:00
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
EFI_PCI_CAPABILITY_HDR Hdr;
|
|
|
|
UINT16 CommandReg;
|
|
|
|
UINT32 StatusReg;
|
|
|
|
} EFI_PCI_CAPABILITY_PCIX;
|
|
|
|
|
2008-12-02 09:15:14 +01:00
|
|
|
///
|
|
|
|
/// PCI-X Bridge Capabilities List,
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Section 8.6.2, PCI-X Addendum to the PCI Local Bus Specification, Revision 1.0b.
|
2008-10-27 02:52:32 +01:00
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
EFI_PCI_CAPABILITY_HDR Hdr;
|
|
|
|
UINT16 SecStatusReg;
|
|
|
|
UINT32 StatusReg;
|
|
|
|
UINT32 SplitTransCtrlRegUp;
|
|
|
|
UINT32 SplitTransCtrlRegDn;
|
|
|
|
} EFI_PCI_CAPABILITY_PCIX_BRDG;
|
|
|
|
|
2008-11-11 23:21:08 +01:00
|
|
|
#pragma pack()
|
|
|
|
|
2008-10-27 02:52:32 +01:00
|
|
|
#define PCI_CODE_TYPE_EFI_IMAGE 0x03
|
2007-06-19 12:39:04 +02:00
|
|
|
|
|
|
|
#endif
|