Rework EVGAPascalGPUController to use I2C PCI detector and store name in controller to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-07 22:39:49 -05:00
parent c32663bb32
commit df75659778
5 changed files with 55 additions and 82 deletions

View file

@ -37,10 +37,11 @@ enum
class EVGAGPUv1Controller
{
public:
EVGAGPUv1Controller(i2c_smbus_interface* bus, evga_dev_id dev);
EVGAGPUv1Controller(i2c_smbus_interface* bus, evga_dev_id dev, std::string dev_name);
~EVGAGPUv1Controller();
std::string GetDeviceLocation();
std::string GetDeviceName();
unsigned char GetMode();
unsigned char GetRed();
@ -54,4 +55,5 @@ public:
private:
i2c_smbus_interface* bus;
evga_dev_id dev;
std::string name;
};