Update Galax GPU controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-19 01:26:47 -05:00
parent 019b049d06
commit b0bb6e7b1b
5 changed files with 57 additions and 42 deletions

View file

@ -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 <cstring>
#include "GalaxGPUController.h"
GalaxGPUController::GalaxGPUController(i2c_smbus_interface* bus, galax_gpu_dev_id dev)
{

View file

@ -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 <string>
#include "i2c_smbus.h"
#pragma once
typedef unsigned char galax_gpu_dev_id;
enum

View file

@ -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 <stdio.h>
#include <stdlib.h>
#include <vector>
#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 <vector>
#include <stdio.h>
#include <stdlib.h>
/******************************************************************************************\
* *
@ -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;

View file

@ -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"

View file

@ -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