From b0bb6e7b1b99c93d67db1a9c67058a881984dc55 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 19 May 2024 01:26:47 -0500 Subject: [PATCH] Update Galax GPU controller files to new standardized header comment --- .../GalaxGPUController/GalaxGPUController.cpp | 19 ++++++++------ .../GalaxGPUController/GalaxGPUController.h | 21 +++++++++------- .../GalaxGPUControllerDetect.cpp | 25 +++++++++++-------- .../RGBController_GalaxGPU.cpp | 17 +++++++------ .../RGBController_GalaxGPU.h | 17 +++++++------ 5 files changed, 57 insertions(+), 42 deletions(-) diff --git a/Controllers/GalaxGPUController/GalaxGPUController.cpp b/Controllers/GalaxGPUController/GalaxGPUController.cpp index 106e2879..43ceddea 100644 --- a/Controllers/GalaxGPUController/GalaxGPUController.cpp +++ b/Controllers/GalaxGPUController/GalaxGPUController.cpp @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| GalaxGPUController.cpp | -| | -| Driver for Galax / KFA2 RGB on GPUs | -| | -| Niels Westphal (crashniels) 12.07.2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| GalaxGPUController.cpp | +| | +| Driver for Galax/KFA2 GPU | +| | +| Niels Westphal (crashniels) 12 Jul 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "GalaxGPUController.h" #include +#include "GalaxGPUController.h" GalaxGPUController::GalaxGPUController(i2c_smbus_interface* bus, galax_gpu_dev_id dev) { diff --git a/Controllers/GalaxGPUController/GalaxGPUController.h b/Controllers/GalaxGPUController/GalaxGPUController.h index 3886b66c..a12ff1c4 100644 --- a/Controllers/GalaxGPUController/GalaxGPUController.h +++ b/Controllers/GalaxGPUController/GalaxGPUController.h @@ -1,16 +1,19 @@ -/*-----------------------------------------*\ -| GalaxGPUController.h | -| | -| Driver for Galax / KFA2 RGB on GPUs | -| | -| Niels Westphal (crashniels) 12.07.2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| GalaxGPUController.h | +| | +| Driver for Galax/KFA2 GPU | +| | +| Niels Westphal (crashniels) 12 Jul 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "i2c_smbus.h" -#pragma once - typedef unsigned char galax_gpu_dev_id; enum diff --git a/Controllers/GalaxGPUController/GalaxGPUControllerDetect.cpp b/Controllers/GalaxGPUController/GalaxGPUControllerDetect.cpp index 053ab5d4..239c29fc 100644 --- a/Controllers/GalaxGPUController/GalaxGPUControllerDetect.cpp +++ b/Controllers/GalaxGPUController/GalaxGPUControllerDetect.cpp @@ -1,11 +1,17 @@ -/*-----------------------------------------*\ -| GalaxGPUControllerDetect.cpp | -| | -| Driver for Galax / KFA2 RGB on GPUs | -| | -| Niels Westphal (crashniels) 12.07.2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| GalaxGPUControllerDetect.cpp | +| | +| Detector for Galax/KFA2 GPU | +| | +| Niels Westphal (crashniels) 12 Jul 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ +#include +#include +#include #include "Detector.h" #include "GalaxGPUController.h" #include "LogManager.h" @@ -13,9 +19,6 @@ #include "RGBController_GalaxGPU.h" #include "i2c_smbus.h" #include "pci_ids.h" -#include -#include -#include /******************************************************************************************\ * * @@ -31,7 +34,7 @@ bool TestForGalaxGPUController(i2c_smbus_interface* bus, unsigned char address) unsigned char res = bus->i2c_smbus_read_byte_data(address, 0x00); unsigned char res2 = bus->i2c_smbus_read_byte_data(address, 0x01); - + if(res == 0x27 && res2 == 0x10) { pass = true; diff --git a/Controllers/GalaxGPUController/RGBController_GalaxGPU.cpp b/Controllers/GalaxGPUController/RGBController_GalaxGPU.cpp index 9678e523..d7eaf8a8 100644 --- a/Controllers/GalaxGPUController/RGBController_GalaxGPU.cpp +++ b/Controllers/GalaxGPUController/RGBController_GalaxGPU.cpp @@ -1,10 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_GalaxGPU.cpp | -| | -| Driver for Galax / KFA2 RGB on GPUs | -| | -| Niels Westphal (crashniels) 12.07.2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_GalaxGPU.cpp | +| | +| RGBController for Galax/KFA2 GPU | +| | +| Niels Westphal (crashniels) 12 Jul 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_GalaxGPU.h" diff --git a/Controllers/GalaxGPUController/RGBController_GalaxGPU.h b/Controllers/GalaxGPUController/RGBController_GalaxGPU.h index b699212c..0a3e76c5 100644 --- a/Controllers/GalaxGPUController/RGBController_GalaxGPU.h +++ b/Controllers/GalaxGPUController/RGBController_GalaxGPU.h @@ -1,10 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_GalaxGPU.h | -| | -| Driver for Galax / KFA2 RGB on GPUs | -| | -| Niels Westphal (crashniels) 12.07.2020 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_GalaxGPU.h | +| | +| RGBController for Galax/KFA2 GPU | +| | +| Niels Westphal (crashniels) 12 Jul 2020 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once