Check PCI IDs for scanning SMBus devices to speed up detection

This commit is contained in:
Adam Honse committed 2020-09-13 23:59:41 -05:00
1 parent 2d53a2c7f1
commit 29fea380aa
12 files changed
+316 -289

No files matched your search

@@ -3,30 +3,11 @@
#include "RGBController.h"
#include "RGBController_SapphireGPU.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
/*-----------------------------------------------------*\
| AMD vendor ID |
\*-----------------------------------------------------*/
#define AMD_VEN 0x1002
/*-----------------------------------------------------*\
| AMD device IDs |
\*-----------------------------------------------------*/
#define AMD_RX580_DEV 0x67DF
/*-----------------------------------------------------*\
| Sapphire sub-vendor ID |
\*-----------------------------------------------------*/
#define SAPPHIRE_SUB_VEN 0x1DA2
/*-----------------------------------------------------*\
| Sapphire sub-device IDs |
\*-----------------------------------------------------*/
#define SAPPHIRE_RX580_NITRO_PLUS_SUB_DEV 0xE366
typedef struct
{
int pci_vendor;