Fill in location in GigabyteSuperIORGBController
This commit is contained in:
parent
719d7b8801
commit
82cb9fb7d0
3 changed files with 11 additions and 2 deletions
|
|
@ -23,6 +23,13 @@ GigabyteSuperIORGBController::~GigabyteSuperIORGBController()
|
|||
|
||||
}
|
||||
|
||||
std::string GigabyteSuperIORGBController::GetDeviceLocation()
|
||||
{
|
||||
char hex[12];
|
||||
snprintf(hex, sizeof(hex), "0x%X", gig_sioaddr);
|
||||
return("SIO: " + std::string(hex));
|
||||
}
|
||||
|
||||
std::string GigabyteSuperIORGBController::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@ public:
|
|||
GigabyteSuperIORGBController(int sioaddr, std::string dev_name);
|
||||
~GigabyteSuperIORGBController();
|
||||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetDeviceName();
|
||||
|
||||
unsigned int GetMode();
|
||||
|
|
@ -144,6 +145,6 @@ public:
|
|||
void ChipEntry();
|
||||
void ChipExit();
|
||||
private:
|
||||
int gig_sioaddr;
|
||||
std::string name;
|
||||
int gig_sioaddr;
|
||||
std::string name;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ RGBController_GigabyteSuperIORGB::RGBController_GigabyteSuperIORGB(GigabyteSuper
|
|||
vendor = "Gigabyte";
|
||||
type = DEVICE_TYPE_MOTHERBOARD;
|
||||
description = "Gigabyte SuperIO RGB Device";
|
||||
location = controller->GetDeviceLocation();
|
||||
|
||||
mode Direct;
|
||||
Direct.name = "Direct";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue