mirror of
				https://git.proxmox.com/git/mirror_edk2
				synced 2025-10-30 23:50:23 +00:00 
			
		
		
		
	 56ba37463a
			
		
	
	
		56ba37463a
		
	
	
	
	
		
			
			https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Header file for Pci shell Debug1 function.
 | |
| 
 | |
|   Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
 | |
|   Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _EFI_SHELL_PCI_H_
 | |
| #define _EFI_SHELL_PCI_H_
 | |
| 
 | |
| typedef enum {
 | |
|   PciDevice,
 | |
|   PciP2pBridge,
 | |
|   PciCardBusBridge,
 | |
|   PciUndefined
 | |
| } PCI_HEADER_TYPE;
 | |
| 
 | |
| #define INDEX_OF(Field)                               ((UINT8 *) (Field) - (UINT8 *) mConfigSpace)
 | |
| 
 | |
| #define IS_PCIE_ENDPOINT(DevicePortType) \
 | |
|     ((DevicePortType) == PCIE_DEVICE_PORT_TYPE_PCIE_ENDPOINT || \
 | |
|      (DevicePortType) == PCIE_DEVICE_PORT_TYPE_LEGACY_PCIE_ENDPOINT || \
 | |
|      (DevicePortType) == PCIE_DEVICE_PORT_TYPE_ROOT_COMPLEX_INTEGRATED_ENDPOINT)
 | |
| 
 | |
| #define IS_PCIE_SWITCH(DevicePortType) \
 | |
|     ((DevicePortType == PCIE_DEVICE_PORT_TYPE_UPSTREAM_PORT) || \
 | |
|      (DevicePortType == PCIE_DEVICE_PORT_TYPE_DOWNSTREAM_PORT))
 | |
| 
 | |
| #pragma pack(1)
 | |
| //
 | |
| // Data region after PCI configuration header(for cardbus bridge)
 | |
| //
 | |
| typedef struct {
 | |
|   UINT16  SubVendorId;  // Subsystem Vendor ID
 | |
|   UINT16  SubSystemId;  // Subsystem ID
 | |
|   UINT32  LegacyBase;   // Optional 16-Bit PC Card Legacy
 | |
|   // Mode Base Address
 | |
|   //
 | |
|   UINT32  Data[46];
 | |
| } PCI_CARDBUS_DATA;
 | |
| 
 | |
| typedef union {
 | |
|   PCI_DEVICE_HEADER_TYPE_REGION Device;
 | |
|   PCI_BRIDGE_CONTROL_REGISTER   Bridge;
 | |
|   PCI_CARDBUS_CONTROL_REGISTER  CardBus;
 | |
| } NON_COMMON_UNION;
 | |
| 
 | |
| typedef struct {
 | |
|   PCI_DEVICE_INDEPENDENT_REGION Common;
 | |
|   NON_COMMON_UNION              NonCommon;
 | |
|   UINT32                        Data[48];
 | |
| } PCI_CONFIG_SPACE;
 | |
| 
 | |
| #pragma pack()
 | |
| 
 | |
| #endif // _PCI_H_
 |