[v1.05][ARM] Add support to detect SoC from PCI (#245) with initial support for NVIDIA Tegra

This commit is contained in:
Dr-Noob
2024-07-03 07:59:37 +01:00
parent dfa2b773d1
commit 1b746bc67d
9 changed files with 291 additions and 4 deletions

20
src/common/pci.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef __PCI__
#define __PCI__
#define PCI_VENDOR_NVIDIA 0x10de
#define PCI_DEVICE_TEGRA_X1 0x0faf
struct pci_device {
char * path;
uint16_t vendor_id;
uint16_t device_id;
};
struct pci_devices {
struct pci_device ** devices;
int num_devices;
};
struct pci_devices * get_pci_devices(void);
#endif