#include <sys/cdefs.h>
#include "opt_platform.h"
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <machine/bus.h>
#include <dev/iicbus/iicbus.h>
#include <dev/iicbus/iiconf.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | max44009_get_reading (device_t dev, u_int *reading) |
|
static int | max44009_lux_sysctl (SYSCTL_HANDLER_ARGS) |
|
static int | max44009_probe (device_t dev) |
|
static int | max44009_attach (device_t dev) |
|
static int | max44009_detach (device_t dev) |
|
| DRIVER_MODULE (max44009, iicbus, max44009_driver, max44009_devclass, 0, 0) |
|
| MODULE_DEPEND (max44009, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER) |
|
| MODULE_VERSION (max44009, 1) |
|
| IICBUS_FDT_PNP_INFO (compat_data) |
|
◆ REG_LUX_HIGH
#define REG_LUX_HIGH 0x03 |
◆ REG_LUX_LOW
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ IICBUS_FDT_PNP_INFO()
◆ max44009_attach()
static int max44009_attach |
( |
device_t |
dev | ) |
|
|
static |
◆ max44009_detach()
static int max44009_detach |
( |
device_t |
dev | ) |
|
|
static |
◆ max44009_get_reading()
static int max44009_get_reading |
( |
device_t |
dev, |
|
|
u_int * |
reading |
|
) |
| |
|
static |
Definition at line 70 of file max44009.c.
References iic_msg::buf, dev, iic_msg::flags, IIC_INTRWAIT, IIC_M_NOSTOP, IIC_M_RD, IIC_M_WR, iicbus_transfer_excl(), iic_msg::len, msgs, REG_LUX_HIGH, REG_LUX_LOW, max44009_softc::sc_addr, iic_msg::slave, and val.
Referenced by max44009_lux_sysctl().
◆ max44009_lux_sysctl()
static int max44009_lux_sysctl |
( |
SYSCTL_HANDLER_ARGS |
| ) |
|
|
static |
◆ max44009_probe()
static int max44009_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ MODULE_DEPEND()
◆ MODULE_VERSION()
MODULE_VERSION |
( |
max44009 |
, |
|
|
1 |
|
|
) |
| |
◆ max44009_devclass
devclass_t max44009_devclass |
|
static |
◆ max44009_driver
Initial value:= {
"max44009",
}
static device_method_t max44009_methods[]
Definition at line 182 of file max44009.c.
◆ max44009_methods
device_method_t max44009_methods[] |
|
static |
Initial value:= {
DEVMETHOD_END
}
static int max44009_attach(device_t dev)
static int max44009_detach(device_t dev)
static int max44009_probe(device_t dev)
Definition at line 173 of file max44009.c.