Check PCI IDs for scanning SMBus devices to speed up detection
This commit is contained in:
parent
2d53a2c7f1
commit
29fea380aa
12 changed files with 316 additions and 289 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue