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 |
|
||||
| |
|
||||
| Wrapper for hidapi that can select from |
|
||||
| default or libusb backends on Linux |
|
||||
| Wrapper for hidapi that can select from default or |
|
||||
| libusb backends on Linux |
|
||||
| |
|
||||
| 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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,14 @@
|
|||
/******************************************************************************************\
|
||||
* *
|
||||
* i2c_smbus.cpp *
|
||||
* *
|
||||
* Device-independent i2c/SMBus communication functions *
|
||||
* *
|
||||
\******************************************************************************************/
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus.cpp |
|
||||
| |
|
||||
| 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 <string.h>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| 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 |
|
||||
| GNU GPL v2 |
|
||||
\*-----------------------------------------*/
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#ifndef I2C_SMBUS_H
|
||||
#define I2C_SMBUS_H
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_amdadl.cpp |
|
||||
| |
|
||||
| Definitions and types for AMD ADL I2C |
|
||||
| functions |
|
||||
| Definitions and types for AMD ADL I2C functions |
|
||||
| |
|
||||
| Niels Westphal (crashniels) 05/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
| Niels Westphal (crashniels) 30 May 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "i2c_smbus_amdadl.h"
|
||||
#include "LogManager.h"
|
||||
|
|
|
|||
|
|
@ -1,22 +1,24 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_amdadl.h |
|
||||
| |
|
||||
| Definitions and types for AMD ADL I2C |
|
||||
| functions |
|
||||
| Definitions and types for AMD ADL I2C functions |
|
||||
| |
|
||||
| Niels Westphal (crashniels) 05/30/2020 |
|
||||
\*-----------------------------------------*/
|
||||
| Niels Westphal (crashniels) 30 May 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 "adl_sdk.h"
|
||||
#include "adl_defines.h"
|
||||
#include "adl_structures.h"
|
||||
#include "windows.h"
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
#include <vector>
|
||||
|
||||
#pragma once
|
||||
|
||||
class i2c_smbus_amdadl : public i2c_smbus_interface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_i801.cpp |
|
||||
| |
|
||||
| i801 SMBUS driver for Windows |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/29/2019 |
|
||||
| Adam Honse (CalcProgrammer1) 29 Jan 2019 |
|
||||
| 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 "ResourceManager.h"
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_i801.h |
|
||||
| |
|
||||
| i801 SMBUS driver for Windows |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/29/2019 |
|
||||
| Adam Honse (CalcProgrammer1) 29 Jan 2019 |
|
||||
| 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"
|
||||
|
||||
|
|
@ -14,8 +18,6 @@
|
|||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#pragma once
|
||||
|
||||
/* BIT shifting macro */
|
||||
#define BIT(x) ( 1 << x )
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,21 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_linux.cpp |
|
||||
| |
|
||||
| Linux i2c/smbus driver |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 2/14/2019 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "LogManager.h"
|
||||
|
||||
#include "i2c_smbus.h"
|
||||
#include "i2c_smbus_linux.h"
|
||||
| Adam Honse (CalcProgrammer1) 14 Feb 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <linux/i2c-dev.h>
|
||||
#include <linux/i2c.h>
|
||||
#include <sys/ioctl.h>
|
||||
#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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_linux.h |
|
||||
| |
|
||||
| Definitions and types for 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 |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "i2c_smbus.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_nct6775.cpp |
|
||||
| |
|
||||
| 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 "OlsApi.h"
|
||||
|
|
|
|||
|
|
@ -1,16 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_nct6775.h |
|
||||
| |
|
||||
| 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 <Windows.h>
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SMBHSTDAT (0 + nct6775_smba)
|
||||
#define SMBBLKSZ (1 + nct6775_smba)
|
||||
#define SMBHSTCMD (2 + nct6775_smba)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| 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"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,17 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_nvapi.h |
|
||||
| |
|
||||
| Definitions and types for NVidia NvAPI |
|
||||
| I2C driver |
|
||||
| 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 |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "i2c_smbus.h"
|
||||
#include "nvapi.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
class i2c_smbus_nvapi : public i2c_smbus_interface
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_piix4.cpp |
|
||||
| |
|
||||
| PIIX4 SMBUS driver for Windows |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/8/2018 |
|
||||
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||
| 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 "OlsApi.h"
|
||||
|
|
|
|||
|
|
@ -1,19 +1,20 @@
|
|||
/*-----------------------------------------*\
|
||||
/*---------------------------------------------------------*\
|
||||
| i2c_smbus_piix4.h |
|
||||
| |
|
||||
| Definitions and types for PIIX4 SMBUS |
|
||||
| driver |
|
||||
| PIIX4 SMBUS driver for Windows |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 8/8/2018 |
|
||||
| Adam Honse (CalcProgrammer1) 08 Aug 2018 |
|
||||
| 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 "windows.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
// PIIX4 SMBus address offsets
|
||||
#define SMBHSTSTS (0 + piix4_smba)
|
||||
#define SMBHSLVSTS (1 + piix4_smba)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue