#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/systm.h>
#include <sys/module.h>
#include <sys/callout.h>
#include <sys/conf.h>
#include <sys/cpu.h>
#include <sys/ctype.h>
#include <sys/kernel.h>
#include <sys/reboot.h>
#include <sys/rman.h>
#include <sys/sysctl.h>
#include <sys/limits.h>
#include <machine/bus.h>
#include <machine/md_var.h>
#include <dev/iicbus/iicbus.h>
#include <dev/iicbus/iiconf.h>
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_bus.h>
#include <powerpc/powermac/powermac_thermal.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | max6690_probe (device_t) |
|
static int | max6690_attach (device_t) |
|
static int | max6690_sensor_read (struct max6690_sensor *sens) |
|
static int | max6690_sensor_sysctl (SYSCTL_HANDLER_ARGS) |
|
static void | max6690_start (void *xdev) |
|
static int | max6690_read (device_t dev, uint32_t addr, uint8_t reg, uint8_t *data) |
|
| DRIVER_MODULE (max6690, iicbus, max6690_driver, max6690_devclass, 0, 0) |
|
static | MALLOC_DEFINE (M_MAX6690, "max6690", "Temp-Monitor MAX6690") |
|
static int | max6690_fill_sensor_prop (device_t dev) |
|
◆ MAX6690_EEXT_TEMP
#define MAX6690_EEXT_TEMP 0x10 |
◆ MAX6690_EXT_TEMP
#define MAX6690_EXT_TEMP 0x1 |
◆ MAX6690_IEXT_TEMP
#define MAX6690_IEXT_TEMP 0x11 |
◆ MAX6690_INT_TEMP
#define MAX6690_INT_TEMP 0x0 |
◆ MAX6690_RSL_STATUS
#define MAX6690_RSL_STATUS 0x2 |
◆ MAX6690_TEMP_MASK
#define MAX6690_TEMP_MASK 0xe0 |
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ MALLOC_DEFINE()
static MALLOC_DEFINE |
( |
M_MAX6690 |
, |
|
|
"max6690" |
, |
|
|
"Temp-Monitor MAX6690" |
|
|
) |
| |
|
static |
◆ max6690_attach()
static int max6690_attach |
( |
device_t |
dev | ) |
|
|
static |
◆ max6690_fill_sensor_prop()
static int max6690_fill_sensor_prop |
( |
device_t |
dev | ) |
|
|
static |
◆ max6690_probe()
static int max6690_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ max6690_read()
static int max6690_read |
( |
device_t |
dev, |
|
|
uint32_t |
addr, |
|
|
uint8_t |
reg, |
|
|
uint8_t * |
data |
|
) |
| |
|
static |
◆ max6690_sensor_read()
Definition at line 332 of file max6690.c.
References max6690_sensor::dev, max6690_sensor::id, MAX6690_EEXT_TEMP, MAX6690_EXT_TEMP, MAX6690_IEXT_TEMP, MAX6690_INT_TEMP, max6690_read(), MAX6690_TEMP_MASK, max6690_softc::sc_addr, and max6690_softc::sc_dev.
Referenced by max6690_fill_sensor_prop(), and max6690_sensor_sysctl().
◆ max6690_sensor_sysctl()
static int max6690_sensor_sysctl |
( |
SYSCTL_HANDLER_ARGS |
| ) |
|
|
static |
◆ max6690_start()
static void max6690_start |
( |
void * |
xdev | ) |
|
|
static |
◆ max6690_devclass
devclass_t max6690_devclass |
|
static |
◆ max6690_driver
Initial value:= {
"max6690",
}
static device_method_t max6690_methods[]
Definition at line 96 of file max6690.c.
◆ max6690_methods
device_method_t max6690_methods[] |
|
static |
Initial value:= {
{ 0, 0 },
}
static int max6690_attach(device_t)
static int max6690_probe(device_t)
Definition at line 89 of file max6690.c.