Update Gainward GPU controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-19 00:44:51 -05:00
parent 2c3e102772
commit 1b0d915a63
9 changed files with 101 additions and 73 deletions

View file

@ -1,11 +1,18 @@
/*-----------------------------------------*\
| GainwardGPUControllerDetect.cpp |
| |
| Driver for Gainward RGB on GPUs |
| |
| TheRogueZeta 11/05/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GainwardGPUControllerDetect.cpp |
| |
| Detector for Gainward GPU |
| |
| TheRogueZeta 05 Nov 2020 |
| KundaPanda 04 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "Detector.h"
#include "GainwardGPUv1Controller.h"
#include "GainwardGPUv2Controller.h"
@ -15,9 +22,6 @@
#include "RGBController_GainwardGPUv2.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
/******************************************************************************************\
* *
@ -94,7 +98,7 @@ void DetectGainwardGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, co
GainwardGPUv2Controller* controller = new GainwardGPUv2Controller(bus, i2c_addr);
RGBController_GainwardGPUv2* rgb_controller = new RGBController_GainwardGPUv2(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
break;

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| GainwardGPUv1Controller.cpp |
| |
| Driver for Gainward RGB v1 on GPUs |
| |
| TheRogueZeta 11/05/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GainwardGPUv1Controller.cpp |
| |
| Driver for Gainward v1 GPU |
| |
| TheRogueZeta 05 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "GainwardGPUv1Controller.h"
#include <cstring>
#include "GainwardGPUv1Controller.h"
GainwardGPUv1Controller::GainwardGPUv1Controller(i2c_smbus_interface* bus, gainward_gpu_dev_id dev)
{

View file

@ -1,16 +1,19 @@
/*-----------------------------------------*\
| GainwardGPUController.h |
| |
| Driver for Gainward RGB v1 on GPUs |
| |
| TheRogueZeta 11/05/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GainwardGPUv1Controller.h |
| |
| Driver for Gainward v1 GPU |
| |
| TheRogueZeta 05 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#pragma once
typedef unsigned char gainward_gpu_dev_id;
enum

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_GainwardGPUv1.cpp |
| |
| Driver for Gainward RGB v1 on GPUs |
| |
| TheRogueZeta 11/05/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GainwardGPUv1.cpp |
| |
| RGBController for Gainward v1 GPU |
| |
| TheRogueZeta 05 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_GainwardGPUv1.h"

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_GainwardGPU.h |
| |
| Driver for Gainward RGB v1 on GPUs |
| |
| TheRogueZeta 11/05/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GainwardGPUv1.h |
| |
| RGBController for Gainward v1 GPU |
| |
| TheRogueZeta 05 Nov 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once

View file

@ -1,13 +1,16 @@
/*-----------------------------------------*\
| GainwardGPUv2Controller.cpp |
| |
| Driver for Gainward RGB v2 on GPUs |
| |
| KundaPanda 01/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GainwardGPUv2Controller.cpp |
| |
| Driver for Gainward v2 GPU |
| |
| KundaPanda 04 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "GainwardGPUv2Controller.h"
#include <cstring>
#include "GainwardGPUv2Controller.h"
GainwardGPUv2Controller::GainwardGPUv2Controller(i2c_smbus_interface* bus, gainward_gpu_dev_id dev)
{

View file

@ -1,16 +1,19 @@
/*-----------------------------------------*\
| GainwardGPUv2Controller.h |
| |
| Driver for Gainward RGB v2 on GPUs |
| |
| KundaPanda 01/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GainwardGPUv2Controller.h |
| |
| Driver for Gainward v2 GPU |
| |
| KundaPanda 04 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include "i2c_smbus.h"
#pragma once
typedef unsigned char gainward_gpu_dev_id;
/*---------------------------------------------------------------------------------*\

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_GainwardGPUv2.cpp |
| |
| Driver for Gainward RGB v2 on GPUs |
| |
| KundaPanda 01/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GainwardGPUv2.cpp |
| |
| RGBController for Gainward v2 GPU |
| |
| KundaPanda 04 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_GainwardGPUv2.h"

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_GainwardGPUv2.h |
| |
| Driver for Gainward RGB v2 on GPUs |
| |
| KundaPanda 01/04/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GainwardGPUv2.h |
| |
| RGBController for Gainward v2 GPU |
| |
| KundaPanda 04 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once