Skip to content

Commit a3066db

Browse files
committedMay 3, 2024
Update even more file header comments to standardized new format
1 parent 200b8e3 commit a3066db

31 files changed

+284
-152
lines changed
 

‎KeyboardLayoutManager/KeyboardLayoutManager.cpp

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
/*---------------------------------------------------------------------*\
2-
| KeyboardLayoutManager.cpp |
3-
| |
4-
| Helper library to produce keyboard layouts |
5-
| |
6-
| Chris M (Dr_No) 04 Feb 2023 |
7-
| |
8-
\*---------------------------------------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| KeyboardLayoutManager.cpp |
3+
| |
4+
| Helper library to produce keyboard layouts |
5+
| |
6+
| Chris M (Dr_No) 04 Feb 2023 |
7+
| |
8+
| This file is part of the OpenRGB project |
9+
| SPDX-License-Identifier: GPL-2.0-only |
10+
\*---------------------------------------------------------*/
911

1012
#include "LogManager.h"
1113
#include "KeyboardLayoutManager.h"

‎KeyboardLayoutManager/KeyboardLayoutManager.h

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
/*---------------------------------------------------------------------*\
2-
| KeyboardLayoutManager.h |
3-
| |
4-
| Helper library to produce keyboard layouts |
5-
| |
6-
| Chris M (Dr_No) 04 Feb 2023 |
7-
| |
8-
\*---------------------------------------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| KeyboardLayoutManager.h |
3+
| |
4+
| Helper library to produce keyboard layouts |
5+
| |
6+
| Chris M (Dr_No) 04 Feb 2023 |
7+
| |
8+
| This file is part of the OpenRGB project |
9+
| SPDX-License-Identifier: GPL-2.0-only |
10+
\*---------------------------------------------------------*/
11+
912
#pragma once
1013

1114
#include <map>

‎RGBController/RGBController.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
#include "RGBController.h"
1+
/*---------------------------------------------------------*\
2+
| RGBController.cpp |
3+
| |
4+
| OpenRGB's RGB controller hardware abstration layer, |
5+
| provides a generic representation of an RGB device |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 02 Jun 2019 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
12+
213
#include <cstring>
14+
#include "RGBController.h"
315

416
using namespace std::chrono_literals;
517

‎RGBController/RGBController.h

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
/*-----------------------------------------*\
2-
| RGBController.h |
3-
| |
4-
| Definitions and types for generic RGB |
5-
| lighting controller interface |
6-
| |
7-
| Adam Honse (CalcProgrammer1) 6/2/2019 |
8-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBController.h |
3+
| |
4+
| OpenRGB's RGB controller hardware abstration layer, |
5+
| provides a generic representation of an RGB device |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 02 Jun 2019 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
912

1013
#pragma once
1114

‎RGBController/RGBControllerKeyNames.cpp

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
/*-------------------------------------------------------------------*\
2-
| RGBControllerKeyNames.cpp |
3-
| |
4-
| This is the canonical list of Key Names to be used in |
5-
| keyboard and other device initialisations to avoid redundant |
6-
| string literal declarations |
7-
| |
8-
| Chris M (Dr_No) 25 Jan 2022 |
9-
| |
10-
\*-------------------------------------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBControllerKeyNames.cpp |
3+
| |
4+
| List of standardized names to represent keyboard keys |
5+
| when naming LEDs on keyboard devices |
6+
| |
7+
| Chris M (Dr_No) 25 Jan 2022 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
1112

1213
#include "RGBControllerKeyNames.h"
1314

‎RGBController/RGBControllerKeyNames.h

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
/*-------------------------------------------------------------------*\
2-
| RGBControllerKeyNames.h |
3-
| |
4-
| This is the canonical list of Key Names to be used in |
5-
| keyboard and other device initialisations to avoid redundant |
6-
| string literal declarations |
7-
| |
8-
| Chris M (Dr_No) 25 Jan 2022 |
9-
| |
10-
\*-------------------------------------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBControllerKeyNames.h |
3+
| |
4+
| List of standardized names to represent keyboard keys |
5+
| when naming LEDs on keyboard devices |
6+
| |
7+
| Chris M (Dr_No) 25 Jan 2022 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
1112

1213
#pragma once
1314

‎RGBController/RGBController_Dummy.cpp

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*-----------------------------------------*\
2-
| RGBController_Dummy.cpp |
3-
| |
4-
| Generic RGB Interface Dummy Class |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 2/25/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBController_Dummy.cpp |
3+
| |
4+
| Dummy RGBController that can mimic various devices for |
5+
| development and test purposes |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 25 Feb 2020 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
812

913
#include "RGBController_Dummy.h"
1014

‎RGBController/RGBController_Dummy.h

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*-----------------------------------------*\
2-
| RGBController_Dummy.h |
3-
| |
4-
| Generic RGB Interface Dummy Class |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 2/25/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBController_Dummy.h |
3+
| |
4+
| Dummy RGBController that can mimic various devices for |
5+
| development and test purposes |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 25 Feb 2020 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
812

913
#pragma once
1014

‎RGBController/RGBController_Network.cpp

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*-----------------------------------------*\
2-
| RGBController_Network.cpp |
3-
| |
4-
| Generic RGB Interface Network Class |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 4/11/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBController_Network.cpp |
3+
| |
4+
| RGBController implementation that represents a remote |
5+
| RGBController instance from a connected OpenRGB server |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 11 Apr 2020 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
812

913
#include <cstring>
1014

‎RGBController/RGBController_Network.h

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*-----------------------------------------*\
2-
| RGBController_Network.h |
3-
| |
4-
| Generic RGB Interface Network Class |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 4/11/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| RGBController_Network.h |
3+
| |
4+
| RGBController implementation that represents a remote |
5+
| RGBController instance from a connected OpenRGB server |
6+
| |
7+
| Adam Honse (CalcProgrammer1) 11 Apr 2020 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
11+
\*---------------------------------------------------------*/
812

913
#pragma once
1014

‎i2c_tools/i2c_tools.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*---------------------------------------------------------*\
2+
| i2c_tools.cpp |
3+
| |
4+
| Utility functions for communicating with and reverse |
5+
| engineering i2c devices |
6+
| |
7+
| This file is part of the OpenRGB project |
8+
| SPDX-License-Identifier: GPL-2.0-only |
9+
\*---------------------------------------------------------*/
10+
111
#include "i2c_tools.h"
212

313
/******************************************************************************************\

‎i2c_tools/i2c_tools.h

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*---------------------------------------------------------*\
2+
| i2c_tools.h |
3+
| |
4+
| Utility functions for communicating with and reverse |
5+
| engineering i2c devices |
6+
| |
7+
| This file is part of the OpenRGB project |
8+
| SPDX-License-Identifier: GPL-2.0-only |
9+
\*---------------------------------------------------------*/
10+
111
#include <string>
212
#include "i2c_smbus.h"
313

‎interop/DeviceGuard.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuard.cpp |
2+
| DeviceGuard.cpp |
33
| |
4-
| An abstract interface for acquiring and releasing |
5-
| a guard on a device, serving as a foundation for |
6-
| implementing device-specific synchronization mechanisms. |
4+
| An abstract interface for acquiring and releasing |
5+
| a guard on a device, serving as a foundation for |
6+
| implementing device-specific synchronization mechanisms |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#include "DeviceGuard.h"

‎interop/DeviceGuard.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuard.h |
2+
| DeviceGuard.h |
33
| |
4-
| An abstract interface for acquiring and releasing |
5-
| a guard on a device, serving as a foundation for |
6-
| implementing device-specific synchronization mechanisms. |
4+
| An abstract interface for acquiring and releasing |
5+
| a guard on a device, serving as a foundation for |
6+
| implementing device-specific synchronization mechanisms |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#pragma once

‎interop/DeviceGuardLock.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuardLock.cpp |
2+
| DeviceGuardLock.cpp |
33
| |
4-
| Represents a lock for a device guard, ensuring |
5-
| exclusive access to a device when acquired |
6-
| and releasing it when destroyed. |
4+
| Represents a lock for a device guard, ensuring |
5+
| exclusive access to a device when acquired and |
6+
| releasing it when destroyed |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#include "DeviceGuardLock.h"

‎interop/DeviceGuardLock.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuardLock.h |
2+
| DeviceGuardLock.h |
33
| |
4-
| Represents a lock for a device guard, ensuring |
5-
| exclusive access to a device when acquired |
6-
| and releasing it when destroyed. |
4+
| Represents a lock for a device guard, ensuring |
5+
| exclusive access to a device when acquired and |
6+
| releasing it when destroyed |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#pragma once

‎interop/DeviceGuardManager.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuardManager.cpp |
2+
| DeviceGuardManager.cpp |
33
| |
4-
| Responsible for managing a DeviceGuard implementation, |
5-
| allowing clients to wait for exclusive access to a |
6-
| device using the DeviceGuardLock it provides. |
4+
| Responsible for managing a DeviceGuard implementation, |
5+
| allowing clients to wait for exclusive access to a |
6+
| device using the DeviceGuardLock it provides |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#include "DeviceGuardManager.h"

‎interop/DeviceGuardManager.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| DeviceGuardManager.h |
2+
| DeviceGuardManager.h |
33
| |
4-
| Responsible for managing a DeviceGuard implementation, |
5-
| allowing clients to wait for exclusive access to a |
6-
| device using the DeviceGuardLock it provides. |
4+
| Responsible for managing a DeviceGuard implementation, |
5+
| allowing clients to wait for exclusive access to a |
6+
| device using the DeviceGuardLock it provides |
77
| |
8-
| Evan Mulawski, 2023-09-05 |
8+
| Evan Mulawski 09 May 2023 |
99
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
1012
\*---------------------------------------------------------*/
1113

1214
#pragma once

‎net_port/net_port.cpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| Cross Platform Network Library for Windows and Linux |
3-
| This library provides access to TCP and UDP ports with |
4-
| a common API for both Windows and Linux systems. It |
5-
| features read and write |
2+
| net_port.cpp |
63
| |
7-
| Adam Honse (calcprogrammer1@gmail.com), 12/15/2016 |
4+
| Cross Platform Network Library for Windows and Linux |
5+
| This library provides access to TCP and UDP ports with |
6+
| a common API for both Windows and Linux systems |
7+
| |
8+
| Adam Honse (calcprogrammer1@gmail.com) 15 Dec 2016 |
9+
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
812
\*---------------------------------------------------------*/
913

1014
#include "net_port.h"

‎net_port/net_port.h

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/*---------------------------------------------------------*\
2-
| Cross Platform Network Library for Windows and Linux |
3-
| This library provides access to TCP and UDP ports with |
4-
| a common API for both Windows and Linux systems. It |
5-
| features read and write |
2+
| net_port.h |
63
| |
7-
| Adam Honse (calcprogrammer1@gmail.com), 12/15/2016 |
4+
| Cross Platform Network Library for Windows and Linux |
5+
| This library provides access to TCP and UDP ports with |
6+
| a common API for both Windows and Linux systems |
7+
| |
8+
| Adam Honse (calcprogrammer1@gmail.com) 15 Dec 2016 |
9+
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
812
\*---------------------------------------------------------*/
913

10-
#ifndef NET_PORT_H
11-
#define NET_PORT_H
14+
#pragma once
1215

1316
#include <vector>
1417

@@ -88,5 +91,3 @@ class net_port
8891
sockaddr addrDest;
8992
addrinfo* result_list;
9093
};
91-
92-
#endif

‎scsiapi/scsiapi.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
| |
44
| Cross-platform SCSI access library |
55
| |
6-
| Adam Honse <calcprogrammer1@gmail.com> 7/28/2023 |
6+
| Adam Honse (calcprogrammer1@gmail.com) 28 Jul 2023 |
7+
| |
8+
| This file is part of the OpenRGB project |
9+
| SPDX-License-Identifier: GPL-2.0-only |
710
\*---------------------------------------------------------*/
811

912
#pragma once

‎scsiapi/scsiapi_linux.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
| Cross-platform SCSI access library |
55
| Linux implementation |
66
| |
7-
| Adam Honse <calcprogrammer1@gmail.com> 7/28/2023 |
7+
| Adam Honse (calcprogrammer1@gmail.com) 28 Jul 2023 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
811
\*---------------------------------------------------------*/
912

1013
#pragma once

‎scsiapi/scsiapi_macos.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
| Cross-platform SCSI access library |
55
| MacOS implementation (NON-FUNCTIONAL) |
66
| |
7-
| Adam Honse <calcprogrammer1@gmail.com> 7/28/2023 |
7+
| Adam Honse (calcprogrammer1@gmail.com) 28 Jul 2023 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
811
\*---------------------------------------------------------*/
912

1013
#pragma once

‎scsiapi/scsiapi_windows.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
| Cross-platform SCSI access library |
55
| Windows implementation |
66
| |
7-
| Adam Honse <calcprogrammer1@gmail.com> 7/28/2023 |
7+
| Adam Honse (calcprogrammer1@gmail.com) 28 Jul 2023 |
8+
| |
9+
| This file is part of the OpenRGB project |
10+
| SPDX-License-Identifier: GPL-2.0-only |
811
\*---------------------------------------------------------*/
912

1013
#pragma once

‎serial_port/find_usb_serial_port.h

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*---------------------------------------------------------*\
2+
| find_usb_serial_port.h |
3+
| |
4+
| Finds the serial port path(s) of USB serial port devices|
5+
| given the USB VID and PID of the device |
6+
| |
7+
| This file is part of the OpenRGB project |
8+
| SPDX-License-Identifier: GPL-2.0-only |
9+
\*---------------------------------------------------------*/
10+
111
#include <stdio.h>
212
#include <stdlib.h>
313

‎serial_port/find_usb_serial_port_linux.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*---------------------------------------------------------*\
2+
| find_usb_serial_port_linux.cpp |
3+
| |
4+
| Finds the serial port path(s) of USB serial port devices|
5+
| given the USB VID and PID of the device |
6+
| |
7+
| This file is part of the OpenRGB project |
8+
| SPDX-License-Identifier: GPL-2.0-only |
9+
\*---------------------------------------------------------*/
10+
111
#include "find_usb_serial_port.h"
212

313
#include <unistd.h>

‎serial_port/find_usb_serial_port_win.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*---------------------------------------------------------*\
2+
| find_usb_serial_port_win.cpp |
3+
| |
4+
| Finds the serial port path(s) of USB serial port devices|
5+
| given the USB VID and PID of the device |
6+
| |
7+
| This file is part of the OpenRGB project |
8+
| SPDX-License-Identifier: GPL-2.0-only |
9+
\*---------------------------------------------------------*/
10+
111
#include "find_usb_serial_port.h"
212

313
#include <initguid.h>
@@ -115,7 +125,7 @@ std::vector<std::string *> find_usb_serial_port(unsigned short vid, unsigned sho
115125
}
116126
}
117127

118-
if (DeviceInfoSet)
128+
if (DeviceInfoSet)
119129
{
120130
SetupDiDestroyDeviceInfoList(DeviceInfoSet);
121131
}

‎serial_port/serial_port.cpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| Cross Platform Serial COM Library for Windows and Linux |
3-
| This library provides access to serial ports with a |
4-
| common API for both Windows and Linux systems. It |
5-
| features read and write as well as tx/rx buffer flush. |
2+
| serial_port.cpp |
63
| |
7-
| Adam Honse (calcprogrammer1@gmail.com), 1/21/2013 |
4+
| Cross Platform Serial COM Library for Windows and Linux |
5+
| This library provides access to serial ports with a |
6+
| common API for both Windows and Linux systems |
7+
| |
8+
| Adam Honse (calcprogrammer1@gmail.com) 21 Jan 2013 |
9+
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
812
\*---------------------------------------------------------*/
913

1014
#include "serial_port.h"

‎serial_port/serial_port.h

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
/*---------------------------------------------------------*\
2-
| Cross Platform Serial COM Library for Windows and Linux |
3-
| This library provides access to serial ports with a |
4-
| common API for both Windows and Linux systems. It |
5-
| features read and write as well as tx/rx buffer flush. |
2+
| serial_port.h |
63
| |
7-
| Adam Honse (calcprogrammer1@gmail.com), 1/21/2013 |
4+
| Cross Platform Serial COM Library for Windows and Linux |
5+
| This library provides access to serial ports with a |
6+
| common API for both Windows and Linux systems |
7+
| |
8+
| Adam Honse (calcprogrammer1@gmail.com) 21 Jan 2013 |
9+
| |
10+
| This file is part of the OpenRGB project |
11+
| SPDX-License-Identifier: GPL-2.0-only |
812
\*---------------------------------------------------------*/
913

1014
#ifndef SERIAL_PORT_H

‎super_io/super_io.cpp

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
/*-----------------------------------------*\
2-
| super_io.cpp |
3-
| |
4-
| Functions for interfacing with Super-IO |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 2/11/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| super_io.cpp |
3+
| |
4+
| Functions for interfacing with Super-IO |
5+
| |
6+
| Adam Honse (CalcProgrammer1) 11 Feb 2020 |
7+
| |
8+
| This file is part of the OpenRGB project |
9+
| SPDX-License-Identifier: GPL-2.0-only |
10+
\*---------------------------------------------------------*/
11+
812
#include "super_io.h"
913

1014
#ifdef WIN32
@@ -35,7 +39,7 @@ void superio_enter(int ioreg)
3539
#else
3640
unsigned char temp = 0x87;
3741
dev_port_fd = open("/dev/port", O_RDWR, "rw");
38-
42+
3943
if (dev_port_fd >= 0)
4044
{
4145
lseek(dev_port_fd, ioreg, SEEK_SET);
@@ -49,9 +53,9 @@ void superio_enter(int ioreg)
4953
{
5054
return;
5155
}
52-
56+
5357
close(dev_port_fd);
54-
}
58+
}
5559
#endif
5660
}
5761

@@ -71,7 +75,7 @@ void superio_outb(int ioreg, int reg, int val)
7175
WriteIoPortByte(ioreg + 1, val);
7276
#else
7377
dev_port_fd = open("/dev/port", O_RDWR, "rw");
74-
78+
7579
if (dev_port_fd >= 0)
7680
{
7781
lseek(dev_port_fd, ioreg, SEEK_SET);
@@ -108,7 +112,7 @@ int superio_inb(int ioreg, int reg)
108112
unsigned char temp = 0;
109113
dev_port_fd = open("/dev/port", O_RDWR, "rw");
110114

111-
if (dev_port_fd >= 0)
115+
if (dev_port_fd >= 0)
112116
{
113117
lseek(dev_port_fd, ioreg, SEEK_SET);
114118
if(write(dev_port_fd, &reg, 1) == -1)
@@ -122,7 +126,7 @@ int superio_inb(int ioreg, int reg)
122126
}
123127

124128
close(dev_port_fd);
125-
129+
126130
return((int)temp);
127131
}
128132
else

‎super_io/super_io.h

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
/*-----------------------------------------*\
2-
| super_io.h |
3-
| |
4-
| Functions for interfacing with Super-IO |
5-
| |
6-
| Adam Honse (CalcProgrammer1) 2/11/2020 |
7-
\*-----------------------------------------*/
1+
/*---------------------------------------------------------*\
2+
| super_io.cpp |
3+
| |
4+
| Functions for interfacing with Super-IO |
5+
| |
6+
| Adam Honse (CalcProgrammer1) 11 Feb 2020 |
7+
| |
8+
| This file is part of the OpenRGB project |
9+
| SPDX-License-Identifier: GPL-2.0-only |
10+
\*---------------------------------------------------------*/
811

912
/******************************************************************************************\
1013
* *

0 commit comments

Comments
 (0)
Please sign in to comment.