[v0.11] Adding uarch backend for intel iGPUs

This commit is contained in:
Dr-Noob
2021-11-26 12:52:45 +01:00
parent ce004725ad
commit 8740337145
16 changed files with 176 additions and 48 deletions

17
src/intel/pci.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include "pci.hpp"
#include "chips.hpp"
#include "../common/global.hpp"
#include "../common/pci.hpp"
#define CHECK_PCI_START if (false) {}
#define CHECK_PCI(pci, id, chip) \
else if (pci->device_id == id) return chip;
#define CHECK_PCI_END else { printBug("TODOO"); return CHIP_UNKNOWN_INTEL; }
GPUCHIP get_chip_from_pci(struct pci* pci) {
CHECK_PCI_START
CHECK_PCI(pci, 0x5917, CHIP_UHDG_620)
CHECK_PCI_END
}