Update more file header comments to standardized new format
This commit is contained in:
parent
f38b7485f7
commit
b12cd438cd
15 changed files with 175 additions and 141 deletions
|
|
@ -1,12 +1,15 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| hidapi_wrapper.h |
|
| hidapi_wrapper.h |
|
||||||
| |
|
| |
|
||||||
| Wrapper for hidapi that can select from |
|
| Wrapper for hidapi that can select from default or |
|
||||||
| default or libusb backends on Linux |
|
| libusb backends on Linux |
|
||||||
| |
|
| |
|
||||||
| Matt Silva (thesilvanator) 2022 |
|
| Matt Silva (thesilvanator) 2022 |
|
||||||
| Adam Honse (calcprogrammer1) 2023 |
|
| Adam Honse (CalcProgrammer1) 2023 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
/******************************************************************************************\
|
/*---------------------------------------------------------*\
|
||||||
* *
|
| i2c_smbus.cpp |
|
||||||
* i2c_smbus.cpp *
|
| |
|
||||||
* *
|
| Device-independent i2c/SMBus communication functions |
|
||||||
* Device-independent i2c/SMBus communication functions *
|
| |
|
||||||
* *
|
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||||
\******************************************************************************************/
|
| Portions based on Linux source code |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -246,4 +250,4 @@ void i2c_smbus_interface::i2c_smbus_thread_function()
|
||||||
i2c_smbus_done_cv.notify_all();
|
i2c_smbus_done_cv.notify_all();
|
||||||
done_lock.unlock();
|
done_lock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus.h |
|
| i2c_smbus.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for SMBUS drivers |
|
| Device-independent i2c/SMBus communication functions |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 8/8/2018 |
|
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||||
| Portions based on Linux source code |
|
| Portions based on Linux source code |
|
||||||
| GNU GPL v2 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef I2C_SMBUS_H
|
#ifndef I2C_SMBUS_H
|
||||||
#define I2C_SMBUS_H
|
#define I2C_SMBUS_H
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_amdadl.cpp |
|
| i2c_smbus_amdadl.cpp |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for AMD ADL I2C |
|
| Definitions and types for AMD ADL I2C functions |
|
||||||
| functions |
|
| |
|
||||||
| |
|
| Niels Westphal (crashniels) 30 May 2020 |
|
||||||
| Niels Westphal (crashniels) 05/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus_amdadl.h"
|
#include "i2c_smbus_amdadl.h"
|
||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,24 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_amdadl.h |
|
| i2c_smbus_amdadl.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for AMD ADL I2C |
|
| Definitions and types for AMD ADL I2C functions |
|
||||||
| functions |
|
| |
|
||||||
| |
|
| Niels Westphal (crashniels) 30 May 2020 |
|
||||||
| Niels Westphal (crashniels) 05/30/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <tchar.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <vector>
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include "adl_sdk.h"
|
#include "adl_sdk.h"
|
||||||
#include "adl_defines.h"
|
#include "adl_defines.h"
|
||||||
#include "adl_structures.h"
|
#include "adl_structures.h"
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
#include <tchar.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class i2c_smbus_amdadl : public i2c_smbus_interface
|
class i2c_smbus_amdadl : public i2c_smbus_interface
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_i801.cpp |
|
| i2c_smbus_i801.cpp |
|
||||||
| |
|
| |
|
||||||
| i801 SMBUS driver for Windows |
|
| i801 SMBUS driver for Windows |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 1/29/2019 |
|
| Adam Honse (CalcProgrammer1) 29 Jan 2019 |
|
||||||
| Portions based on Linux source code |
|
| Portions based on Linux source code |
|
||||||
| GNU GPL v2 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus_i801.h"
|
#include "i2c_smbus_i801.h"
|
||||||
#include "ResourceManager.h"
|
#include "ResourceManager.h"
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_i801.h |
|
| i2c_smbus_i801.h |
|
||||||
| |
|
| |
|
||||||
| i801 SMBUS driver for Windows |
|
| i801 SMBUS driver for Windows |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 1/29/2019 |
|
| Adam Honse (CalcProgrammer1) 29 Jan 2019 |
|
||||||
| Portions based on Linux source code |
|
| Portions based on Linux source code |
|
||||||
| GNU GPL v2 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
|
|
||||||
|
|
@ -14,8 +18,6 @@
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
/* BIT shifting macro */
|
/* BIT shifting macro */
|
||||||
#define BIT(x) ( 1 << x )
|
#define BIT(x) ( 1 << x )
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,21 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_linux.cpp |
|
| i2c_smbus_linux.cpp |
|
||||||
| |
|
| |
|
||||||
| Linux i2c/smbus driver |
|
| Linux i2c/smbus driver |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 2/14/2019 |
|
| Adam Honse (CalcProgrammer1) 14 Feb 2019 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
#include "LogManager.h"
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
#include "i2c_smbus.h"
|
|
||||||
#include "i2c_smbus_linux.h"
|
|
||||||
|
|
||||||
#include <linux/i2c-dev.h>
|
#include <linux/i2c-dev.h>
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include "LogManager.h"
|
||||||
|
#include "i2c_smbus.h"
|
||||||
|
#include "i2c_smbus_linux.h"
|
||||||
|
|
||||||
s32 i2c_smbus_linux::i2c_smbus_xfer(u8 addr, char read_write, u8 command, int size, union i2c_smbus_data* data)
|
s32 i2c_smbus_linux::i2c_smbus_xfer(u8 addr, char read_write, u8 command, int size, union i2c_smbus_data* data)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_linux.h |
|
| i2c_smbus_linux.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for Linux i2c/smbus|
|
| Linux i2c/smbus driver |
|
||||||
| driver |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 14 Feb 2019 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/14/2019 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_nct6775.cpp |
|
| i2c_smbus_nct6775.cpp |
|
||||||
| |
|
| |
|
||||||
| Nuvoton NCT67xx SMBUS driver for Windows |
|
| Nuvoton NCT67xx SMBUS driver for Windows |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 5/19/2019 |
|
| Adam Honse (CalcProgrammer1) 19 May 2019 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus_nct6775.h"
|
#include "i2c_smbus_nct6775.h"
|
||||||
#include "OlsApi.h"
|
#include "OlsApi.h"
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_nct6775.h |
|
| i2c_smbus_nct6775.h |
|
||||||
| |
|
| |
|
||||||
| Nuvoton NCT67xx SMBUS driver for Windows |
|
| Nuvoton NCT67xx SMBUS driver for Windows |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 5/19/2019 |
|
| Adam Honse (CalcProgrammer1) 19 May 2019 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#define SMBHSTDAT (0 + nct6775_smba)
|
#define SMBHSTDAT (0 + nct6775_smba)
|
||||||
#define SMBBLKSZ (1 + nct6775_smba)
|
#define SMBBLKSZ (1 + nct6775_smba)
|
||||||
#define SMBHSTCMD (2 + nct6775_smba)
|
#define SMBHSTCMD (2 + nct6775_smba)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_nvapi.cpp |
|
| i2c_smbus_nvapi.cpp |
|
||||||
| |
|
| |
|
||||||
| NVidia NvAPI I2C driver for Windows |
|
| NVidia NvAPI I2C driver |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 2/21/2020 |
|
| Adam Honse (CalcProgrammer1) 21 Feb 2020 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus_nvapi.h"
|
#include "i2c_smbus_nvapi.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,19 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_nvapi.h |
|
| i2c_smbus_nvapi.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for NVidia NvAPI |
|
| NVidia NvAPI I2C driver |
|
||||||
| I2C driver |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 21 Feb 2020 |
|
||||||
| Adam Honse (CalcProgrammer1) 2/21/2020 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include "nvapi.h"
|
#include "nvapi.h"
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
class i2c_smbus_nvapi : public i2c_smbus_interface
|
class i2c_smbus_nvapi : public i2c_smbus_interface
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_piix4.cpp |
|
| i2c_smbus_piix4.cpp |
|
||||||
| |
|
| |
|
||||||
| PIIX4 SMBUS driver for Windows |
|
| PIIX4 SMBUS driver for Windows |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 8/8/2018 |
|
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||||
| Portions based on Linux source code |
|
| Portions based on Linux source code |
|
||||||
| GNU GPL v2 |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "i2c_smbus_piix4.h"
|
#include "i2c_smbus_piix4.h"
|
||||||
#include "OlsApi.h"
|
#include "OlsApi.h"
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,20 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| i2c_smbus_piix4.h |
|
| i2c_smbus_piix4.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for PIIX4 SMBUS |
|
| PIIX4 SMBUS driver for Windows |
|
||||||
| driver |
|
| |
|
||||||
| |
|
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||||
| Adam Honse (CalcProgrammer1) 8/8/2018 |
|
| Portions based on Linux source code |
|
||||||
| Portions based on Linux source code |
|
| |
|
||||||
| GNU GPL v2 |
|
| This file is part of the OpenRGB project |
|
||||||
\*-----------------------------------------*/
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
// PIIX4 SMBus address offsets
|
// PIIX4 SMBus address offsets
|
||||||
#define SMBHSTSTS (0 + piix4_smba)
|
#define SMBHSTSTS (0 + piix4_smba)
|
||||||
#define SMBHSLVSTS (1 + piix4_smba)
|
#define SMBHSLVSTS (1 + piix4_smba)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue