Rework EVGAPascalGPUController to use I2C PCI detector and store name in controller to avoid setting it in detector
This commit is contained in:
parent
c32663bb32
commit
df75659778
5 changed files with 55 additions and 82 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue