src/device

This commit is contained in:
Jasmine Iwanek
2022-03-13 09:28:28 -04:00
parent a52f0cca79
commit a7edaf0608
21 changed files with 1047 additions and 781 deletions

View File

@@ -783,75 +783,93 @@ lm78_init(const device_t *info)
return dev;
}
/* National Semiconductor LM78 on ISA and SMBus. */
const device_t lm78_device = {
"National Semiconductor LM78 Hardware Monitor",
"lm78",
DEVICE_ISA,
0x290 | LM78_I2C,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "National Semiconductor LM78 Hardware Monitor",
.internal_name = "lm78",
.flags = DEVICE_ISA,
.local = 0x290 | LM78_I2C,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
/* Winbond W83781D on ISA and SMBus. */
const device_t w83781d_device = {
"Winbond W83781D Hardware Monitor",
"w83781d",
DEVICE_ISA,
0x290 | LM78_I2C | LM78_W83781D,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "Winbond W83781D Hardware Monitor",
.internal_name = "w83781d",
.flags = DEVICE_ISA,
.local = 0x290 | LM78_I2C | LM78_W83781D,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
/* Winbond W83781D on ISA and SMBus. */
const device_t w83781d_p5a_device = {
"Winbond W83781D Hardware Monitor (ASUS P5A)",
"w83781d_p5a",
DEVICE_ISA,
0x290 | LM78_I2C | LM78_W83781D | LM78_P5A,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "Winbond W83781D Hardware Monitor (ASUS P5A)",
.internal_name = "w83781d_p5a",
.flags = DEVICE_ISA,
.local = 0x290 | LM78_I2C | LM78_W83781D | LM78_P5A,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
/* The AS99127F is an ASIC manufactured by Holtek for ASUS, containing an
I2C-only W83781D clone with additional voltages, GPIOs and fan control. */
const device_t as99127f_device = {
"ASUS AS99127F Rev. 1 Hardware Monitor",
"as99137f",
DEVICE_ISA,
LM78_I2C | LM78_AS99127F_REV1,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "ASUS AS99127F Rev. 1 Hardware Monitor",
.internal_name = "as99137f",
.flags = DEVICE_ISA,
.local = LM78_I2C | LM78_AS99127F_REV1,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
/* Rev. 2 is manufactured by Winbond and differs only in GPI registers. */
const device_t as99127f_rev2_device = {
"ASUS AS99127F Rev. 2 Hardware Monitor",
"as99127f_rev2",
DEVICE_ISA,
LM78_I2C | LM78_AS99127F_REV2,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "ASUS AS99127F Rev. 2 Hardware Monitor",
.internal_name = "as99127f_rev2",
.flags = DEVICE_ISA,
.local = LM78_I2C | LM78_AS99127F_REV2,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};
/* Winbond W83782D on ISA and SMBus. */
const device_t w83782d_device = {
"Winbond W83782D Hardware Monitor",
"w83783d",
DEVICE_ISA,
0x290 | LM78_I2C | LM78_W83782D,
lm78_init, lm78_close, lm78_reset,
{ NULL }, NULL, NULL,
NULL
.name = "Winbond W83782D Hardware Monitor",
.internal_name = "w83783d",
.flags = DEVICE_ISA,
.local = 0x290 | LM78_I2C | LM78_W83782D,
.init = lm78_init,
.close = lm78_close,
.reset = lm78_reset,
{ .available = NULL },
.speed_changed = NULL,
.force_redraw = NULL,
.config = NULL
};