OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
PciInfoDump.c File Reference
#include <Uefi.h>
#include <IndustryStandard/Pci.h>
#include <Protocol/PciIo.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/IoLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcDeviceMiscLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Data Structures

struct  PCI_CLASS_ENTRY_TAG
 

Typedefs

typedef struct PCI_CLASS_ENTRY_TAG PCI_CLASS_ENTRY
 

Functions

STATIC VOID GetPciDeviceClassText (IN UINT8 BaseClass, IN UINT8 SubClass, IN UINT8 Interface, OUT CONST CHAR8 **TextBaseClass, OUT CONST CHAR8 **TextSubClass)
 
EFI_STATUS OcPciInfoDump (IN EFI_FILE_PROTOCOL *Root)
 

Variables

STATIC CONST PCI_CLASS_ENTRY mPciClass00PreClassCode []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage00 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage05 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage06 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage08 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage09 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass02Network []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass03Display00 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass03Display []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass04Multimedia []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass05Memory []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass06Bridge []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms00 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms01 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms03 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip00 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip01 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip02 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip03 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass09Input []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0ADocking []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0BProcessor []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus00 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus03 []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0DWireless []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass0FSatellite []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass10EncryptionDecryption []
 
STATIC CONST PCI_CLASS_ENTRY mPciClass11DataAcquisition []
 
STATIC CONST PCI_CLASS_ENTRY mPciClasses []
 

Detailed Description

Copyright (C) 2021, PMheart. All rights reserved. Copyright (C) 2021, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials 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 http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file PciInfoDump.c.

Typedef Documentation

◆ PCI_CLASS_ENTRY

Function Documentation

◆ GetPciDeviceClassText()

STATIC VOID GetPciDeviceClassText ( IN UINT8 BaseClass,
IN UINT8 SubClass,
IN UINT8 Interface,
OUT CONST CHAR8 ** TextBaseClass,
OUT CONST CHAR8 ** TextSubClass )

Definition at line 1336 of file PciInfoDump.c.

◆ OcPciInfoDump()

EFI_STATUS OcPciInfoDump ( IN EFI_FILE_PROTOCOL * Root)

Dump PCI info to the specified directory.

Parameters
[in]RootDirectory to write PCI info.
Return values
EFI_SUCCESSon success.

Definition at line 1434 of file PciInfoDump.c.

Variable Documentation

◆ mPciClass00PreClassCode

STATIC CONST PCI_CLASS_ENTRY mPciClass00PreClassCode[]
Initial value:
= {
{
PCI_CLASS_OLD_OTHER,
"Other device",
NULL
},
{
PCI_CLASS_OLD_VGA,
"VGA-compatible device",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 45 of file PciInfoDump.c.

◆ mPciClass01MassStorage

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage[]

Definition at line 192 of file PciInfoDump.c.

◆ mPciClass01MassStorage00

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage00[]

Definition at line 68 of file PciInfoDump.c.

◆ mPciClass01MassStorage05

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage05[]
Initial value:
= {
{
0x20,
"ATA controller with single stepping ADMA interface",
NULL
},
{
0x30,
"ATA controller with continous ADMA interface",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 102 of file PciInfoDump.c.

◆ mPciClass01MassStorage06

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage06[]
Initial value:
= {
{
0x00,
"Serial ATA controller",
NULL
},
{
0x01,
"Serial ATA controller using AHCI",
NULL
},
{
0x02,
"Serial Storage Bus interface",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 121 of file PciInfoDump.c.

◆ mPciClass01MassStorage08

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage08[]
Initial value:
= {
{
0x00,
"Non-volatile memory subsystem",
NULL
},
{
0x01,
"Non-volatile memory subsystem using NVMHCI",
NULL
},
{
0x02,
"NVM Express I/O controller",
NULL
},
{
0x03,
"NVM Express administrative controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 145 of file PciInfoDump.c.

◆ mPciClass01MassStorage09

STATIC CONST PCI_CLASS_ENTRY mPciClass01MassStorage09[]
Initial value:
= {
{
0x00,
"Universal Flash Storage controller",
NULL
},
{
0x01,
"Universal Flash Storage controller using UFSHCI",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 174 of file PciInfoDump.c.

◆ mPciClass02Network

STATIC CONST PCI_CLASS_ENTRY mPciClass02Network[]

Definition at line 258 of file PciInfoDump.c.

◆ mPciClass03Display

STATIC CONST PCI_CLASS_ENTRY mPciClass03Display[]
Initial value:
= {
{
PCI_CLASS_DISPLAY_VGA,
"VGA controller",
},
{
PCI_CLASS_DISPLAY_XGA,
"XGA controller",
NULL
},
{
PCI_CLASS_DISPLAY_3D,
"3D controller",
NULL
},
{
PCI_CLASS_DISPLAY_OTHER,
"Other display controller",
NULL
},
{
0x00,
NULL,
NULL
}
}
STATIC CONST PCI_CLASS_ENTRY mPciClass03Display00[]

Definition at line 339 of file PciInfoDump.c.

◆ mPciClass03Display00

STATIC CONST PCI_CLASS_ENTRY mPciClass03Display00[]
Initial value:
= {
{
PCI_IF_VGA_VGA,
"VGA-compatible controller",
NULL
},
{
PCI_IF_VGA_8514,
"8514-compatible controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 321 of file PciInfoDump.c.

◆ mPciClass04Multimedia

STATIC CONST PCI_CLASS_ENTRY mPciClass04Multimedia[]

Definition at line 370 of file PciInfoDump.c.

◆ mPciClass05Memory

STATIC CONST PCI_CLASS_ENTRY mPciClass05Memory[]
Initial value:
= {
{
PCI_CLASS_MEMORY_RAM,
"RAM controller",
NULL
},
{
PCI_CLASS_MEMORY_FLASH,
"Flash memory controller",
NULL
},
{
PCI_CLASS_MEMORY_OTHER,
"Other memory controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 406 of file PciInfoDump.c.

◆ mPciClass06Bridge

STATIC CONST PCI_CLASS_ENTRY mPciClass06Bridge[]

Definition at line 432 of file PciInfoDump.c.

◆ mPciClass07SimpleComms

STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms[]

Definition at line 616 of file PciInfoDump.c.

◆ mPciClass07SimpleComms00

STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms00[]

Definition at line 505 of file PciInfoDump.c.

◆ mPciClass07SimpleComms01

STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms01[]

Definition at line 549 of file PciInfoDump.c.

◆ mPciClass07SimpleComms03

STATIC CONST PCI_CLASS_ENTRY mPciClass07SimpleComms03[]

Definition at line 583 of file PciInfoDump.c.

◆ mPciClass08SystemPerip

STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip[]

Definition at line 769 of file PciInfoDump.c.

◆ mPciClass08SystemPerip00

STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip00[]

Definition at line 664 of file PciInfoDump.c.

◆ mPciClass08SystemPerip01

STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip01[]
Initial value:
= {
{
PCI_IF_8237_DMA,
"Generic 8237 DMA controller",
NULL
},
{
PCI_IF_ISA_DMA,
"ISA DMA controller",
NULL
},
{
PCI_IF_EISA_DMA,
"EISA DMA controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 698 of file PciInfoDump.c.

◆ mPciClass08SystemPerip02

STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip02[]
Initial value:
= {
{
PCI_IF_8254_TIMER,
"Generic 8254 system timer",
NULL
},
{
PCI_IF_ISA_TIMER,
"ISA system timer",
NULL
},
{
PCI_IF_EISA_TIMER,
"EISA system timer",
NULL
},
{
0x04,
"High Performance Event Timer",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 722 of file PciInfoDump.c.

◆ mPciClass08SystemPerip03

STATIC CONST PCI_CLASS_ENTRY mPciClass08SystemPerip03[]
Initial value:
= {
{
PCI_IF_GENERIC_RTC,
"Generic RTC controller",
NULL
},
{
PCI_IF_ISA_RTC,
"ISA RTC controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 751 of file PciInfoDump.c.

◆ mPciClass09Input

STATIC CONST PCI_CLASS_ENTRY mPciClass09Input[]

Definition at line 825 of file PciInfoDump.c.

◆ mPciClass0ADocking

STATIC CONST PCI_CLASS_ENTRY mPciClass0ADocking[]
Initial value:
= {
{
PCI_SUBCLASS_DOCKING_GENERIC,
"Generic docking station",
NULL
},
{
PCI_SUBCLASS_DOCKING_OTHER,
"Other docking station",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 866 of file PciInfoDump.c.

◆ mPciClass0BProcessor

STATIC CONST PCI_CLASS_ENTRY mPciClass0BProcessor[]

Definition at line 887 of file PciInfoDump.c.

◆ mPciClass0CSerialBus

STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus[]

Definition at line 1002 of file PciInfoDump.c.

◆ mPciClass0CSerialBus00

STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus00[]
Initial value:
= {
{
PCI_IF_1394,
"IEEE 1394 FireWire controller",
NULL
},
{
PCI_IF_1394_OPEN_HCI,
"IEEE 1394 OHCI controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 940 of file PciInfoDump.c.

◆ mPciClass0CSerialBus03

STATIC CONST PCI_CLASS_ENTRY mPciClass0CSerialBus03[]

Definition at line 959 of file PciInfoDump.c.

◆ mPciClass0DWireless

STATIC CONST PCI_CLASS_ENTRY mPciClass0DWireless[]

Definition at line 1073 of file PciInfoDump.c.

◆ mPciClass0FSatellite

STATIC CONST PCI_CLASS_ENTRY mPciClass0FSatellite[]

Definition at line 1134 of file PciInfoDump.c.

◆ mPciClass10EncryptionDecryption

STATIC CONST PCI_CLASS_ENTRY mPciClass10EncryptionDecryption[]
Initial value:
= {
{
PCI_SUBCLASS_NET_COMPUT,
"Network and computing encryption and decryption controller",
NULL
},
{
PCI_SUBCLASS_ENTERTAINMENT,
"Entertainment encryption and decryption controller",
NULL
},
{
PCI_SUBCLASS_SECURITY_OTHER,
"Other encryption and decryption controller",
NULL
},
{
0x00,
NULL,
NULL
}
}

Definition at line 1170 of file PciInfoDump.c.

◆ mPciClass11DataAcquisition

STATIC CONST PCI_CLASS_ENTRY mPciClass11DataAcquisition[]

Definition at line 1196 of file PciInfoDump.c.

◆ mPciClasses

STATIC CONST PCI_CLASS_ENTRY mPciClasses[]

Definition at line 1232 of file PciInfoDump.c.