Initial commit for scsiapi and Seagate FireCuda Gaming External HDD controller
This commit is contained in:
parent
f6e0996250
commit
9cf453008d
10 changed files with 1170 additions and 0 deletions
43
Controllers/SeagateController/SeagateControllerDetect.cpp
Normal file
43
Controllers/SeagateController/SeagateControllerDetect.cpp
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#include "Detector.h"
|
||||
#include "LogManager.h"
|
||||
#include "SeagateController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_Seagate.h"
|
||||
#include <vector>
|
||||
|
||||
#include "scsiapi.h"
|
||||
|
||||
/******************************************************************************************\
|
||||
* *
|
||||
* DetectSeagateControllers *
|
||||
* *
|
||||
* Detects Seagate FireCuda HDD devices *
|
||||
* *
|
||||
\******************************************************************************************/
|
||||
|
||||
void DetectSeagateControllers()
|
||||
{
|
||||
scsi_device_info * info = scsi_enumerate(NULL, NULL);
|
||||
|
||||
while(info)
|
||||
{
|
||||
if(strncmp(info->vendor, "Seagate", 7) == 0 && strncmp(info->product, "FireCuda HDD", 12) == 0)
|
||||
{
|
||||
scsi_device * dev = scsi_open_path(info->path);
|
||||
|
||||
if(dev)
|
||||
{
|
||||
SeagateController* controller = new SeagateController(dev, info->path);
|
||||
RGBController_Seagate* rgb_controller = new RGBController_Seagate(controller);
|
||||
|
||||
ResourceManager::get()->RegisterRGBController(rgb_controller);
|
||||
}
|
||||
}
|
||||
info = info->next;
|
||||
}
|
||||
|
||||
scsi_free_enumeration(info);
|
||||
|
||||
} /* DetectSeagateControllers() */
|
||||
|
||||
REGISTER_DETECTOR("Seagate Firecuda HDD", DetectSeagateControllers);
|
||||
Loading…
Add table
Add a link
Reference in a new issue