Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files176
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- pmbus/
- Kconfig
- Makefile
- ab8500.c
- abituguru.c
- abituguru3.c
- abx500.c
- abx500.h
- acpi_power_meter.c
- ad7314.c
- ad7414.c
- ad7418.c
- adc128d818.c
- adcxx.c
- adm1021.c
- adm1025.c
- adm1026.c
- adm1029.c
- adm1031.c
- adm9240.c
- ads1015.c
- ads7828.c
- ads7871.c
- adt7310.c
- adt7410.c
- adt7411.c
- adt7462.c
- adt7470.c
- adt7475.c
- adt7x10.c
- adt7x10.h
- amc6821.c
- applesmc.c
- asb100.c
- asc7621.c
- aspeed-pwm-tacho.c
- asus_atk0110.c
- atxp1.c
- coretemp.c
- da9052-hwmon.c
- da9055-hwmon.c
- dell-smm-hwmon.c
- dme1737.c
- ds1621.c
- ds620.c
- emc1403.c
- emc2103.c
- emc6w201.c
- f71805f.c
- f71882fg.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/hwmon/abx500.h
Text · 2,005 bytes/*
* Copyright (C) ST-Ericsson 2010 - 2013
* License terms: GNU General Public License v2
* Author: Martin Persson <[email protected]>
* Hongbo Zhang <[email protected]>
*/
#ifndef _ABX500_H
#define _ABX500_H
#define NUM_SENSORS 5
struct abx500_temp;
/*
* struct abx500_temp_ops - abx500 chip specific ops
* @read_sensor: reads gpadc output
* @irq_handler: irq handler
* @show_name: hwmon device name
* @show_label: hwmon attribute label
* @is_visible: is attribute visible
*/
struct abx500_temp_ops {
int (*read_sensor)(struct abx500_temp *, u8, int *);
int (*irq_handler)(int, struct abx500_temp *);
ssize_t (*show_name)(struct device *,
struct device_attribute *, char *);
ssize_t (*show_label) (struct device *,
struct device_attribute *, char *);
int (*is_visible)(struct attribute *, int);
};
/*
* struct abx500_temp - representation of temp mon device
* @pdev: platform device
* @hwmon_dev: hwmon device
* @ops: abx500 chip specific ops
* @gpadc_addr: gpadc channel address
* @min: sensor temperature min value
* @max: sensor temperature max value
* @max_hyst: sensor temperature hysteresis value for max limit
* @min_alarm: sensor temperature min alarm
* @max_alarm: sensor temperature max alarm
* @work: delayed work scheduled to monitor temperature periodically
* @work_active: True if work is active
* @lock: mutex
* @monitored_sensors: number of monitored sensors
* @plat_data: private usage, usually points to platform specific data
*/
struct abx500_temp {
struct platform_device *pdev;
struct device *hwmon_dev;
struct abx500_temp_ops ops;
u8 gpadc_addr[NUM_SENSORS];
unsigned long min[NUM_SENSORS];
unsigned long max[NUM_SENSORS];
unsigned long max_hyst[NUM_SENSORS];
bool min_alarm[NUM_SENSORS];
bool max_alarm[NUM_SENSORS];
struct delayed_work work;
bool work_active;
struct mutex lock;
int monitored_sensors;
void *plat_data;
};
int abx500_hwmon_init(struct abx500_temp *data);
#endif /* _ABX500_H */