mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-21 19:51:45 +00:00
sensors support for ipmi. Includes limited support for
add'l dummy adaps in libsensors git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1606 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ca292047a5
commit
5a24ce81e4
4 files changed
+78
No files matched your search
@@ -298,6 +298,8 @@ const char *sensors_get_adapter_name(int bus_nr)
|
||||
int i;
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_ISA)
|
||||
return "ISA adapter";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_DUMMY)
|
||||
return "Dummy adapter";
|
||||
for (i=0; i < sensors_proc_bus_count; i++)
|
||||
if (sensors_proc_bus[i].number == bus_nr)
|
||||
return sensors_proc_bus[i].adapter;
|
||||
@@ -309,6 +311,8 @@ const char *sensors_get_algorithm_name(int bus_nr)
|
||||
int i;
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_ISA)
|
||||
return "ISA algorithm";
|
||||
if (bus_nr == SENSORS_CHIP_NAME_BUS_DUMMY)
|
||||
return "Dummy algorithm";
|
||||
for (i=0; i < sensors_proc_bus_count; i++)
|
||||
if (sensors_proc_bus[i].number == bus_nr)
|
||||
return sensors_proc_bus[i].algorithm;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#define SENSORS_CHIP_NAME_BUS_ISA -1
|
||||
#define SENSORS_CHIP_NAME_BUS_ANY -2
|
||||
#define SENSORS_CHIP_NAME_BUS_ANY_I2C -3
|
||||
#define SENSORS_CHIP_NAME_BUS_DUMMY -4
|
||||
#define SENSORS_CHIP_NAME_ADDR_ANY -1
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -39,6 +40,7 @@ typedef struct sensors_chip_name {
|
||||
char *prefix;
|
||||
int bus;
|
||||
int addr;
|
||||
char *busname; /* if dummy */
|
||||
} sensors_chip_name;
|
||||
|
||||
/* (Re)load the configuration file and the detected chips list. If this
|
||||
|
||||
Reference in new issue
Block a user