#include <sys/cdefs.h>
#include "opt_platform.h"
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/module.h>
#include <sys/ctype.h>
#include <sys/kernel.h>
#include <sys/libkern.h>
#include <sys/sysctl.h>
#include <dev/iicbus/iicbus.h>
#include <dev/iicbus/iiconf.h>
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/ofw/ofw_bus.h>
Go to the source code of this file.
◆ BIT
#define BIT |
( |
|
x | ) |
(1UL << (x)) |
◆ TMP461_C_TO_K_FIX
#define TMP461_C_TO_K_FIX 4370 |
◆ TMP461_CONFIG_REG
#define TMP461_CONFIG_REG 0x3 |
◆ TMP461_CONFIG_REG_TEMP_RANGE_BIT
#define TMP461_CONFIG_REG_TEMP_RANGE_BIT BIT(2) |
◆ TMP461_EXTENDED_TEMP_MODIFIER
#define TMP461_EXTENDED_TEMP_MODIFIER 64 |
◆ TMP461_GLOBAL_TEMP_REG_LSB
#define TMP461_GLOBAL_TEMP_REG_LSB 0x10 |
◆ TMP461_GLOBAL_TEMP_REG_MSB
#define TMP461_GLOBAL_TEMP_REG_MSB 0x1 |
◆ TMP461_LOCAL_TEMP_REG_LSB
#define TMP461_LOCAL_TEMP_REG_LSB 0x15 |
◆ TMP461_LOCAL_TEMP_REG_MSB
#define TMP461_LOCAL_TEMP_REG_MSB 0x0 |
◆ TMP461_TEMP_LSB
#define TMP461_TEMP_LSB 0 |
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ IICBUS_FDT_PNP_INFO()
◆ tmp461_attach()
static int tmp461_attach |
( |
device_t |
dev | ) |
|
|
static |
◆ tmp461_detach()
static int tmp461_detach |
( |
device_t |
dev | ) |
|
|
static |
◆ tmp461_probe()
static int tmp461_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ tmp461_read_1()
static int tmp461_read_1 |
( |
device_t |
dev, |
|
|
uint8_t |
reg, |
|
|
uint8_t * |
data |
|
) |
| |
|
static |
◆ tmp461_read_temp()
static int tmp461_read_temp |
( |
device_t |
dev, |
|
|
int32_t * |
temp |
|
) |
| |
|
static |
◆ tmp461_sensor_sysctl()
static int tmp461_sensor_sysctl |
( |
SYSCTL_HANDLER_ARGS |
| ) |
|
|
static |
◆ tmp461_signed_extend32()
static int32_t tmp461_signed_extend32 |
( |
uint32_t |
value, |
|
|
int |
sign_pos |
|
) |
| |
|
static |
◆ tmp461_compat_data
struct ofw_compat_data tmp461_compat_data[] |
|
static |
Initial value:= {
{ "ti,tmp461", 1 },
{ NULL, 0 }
}
Definition at line 85 of file tmp461.c.
Referenced by tmp461_probe().
◆ tmp461_devclass
devclass_t tmp461_devclass |
|
static |
◆ tmp461_driver
Initial value:= {
"tmp461_dev",
0
}
static device_method_t tmp461_methods[]
Definition at line 77 of file tmp461.c.
◆ tmp461_methods
device_method_t tmp461_methods[] |
|
static |
Initial value:= {
DEVMETHOD_END
}
static int tmp461_probe(device_t dev)
static int tmp461_detach(device_t dev)
static int tmp461_attach(device_t dev)
Definition at line 69 of file tmp461.c.