mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-05 06:34:25 -04:00
Check PCI IDs for scanning SMBus devices to speed up detection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user