#include <sys/cdefs.h>
#include "opt_platform.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/resource.h>
#include <sys/sx.h>
#include <sys/sysctl.h>
#include <sys/uio.h>
#include <machine/bus.h>
#include <dev/iicbus/iiconf.h>
#include <dev/iicbus/iicbus.h>
#include "iicbus_if.h"
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static int | icee_probe (device_t dev) |
|
static int | icee_init (struct icee_softc *sc) |
|
static int | icee_attach (device_t dev) |
|
static int | icee_detach (device_t dev) |
|
static int | icee_read (struct cdev *dev, struct uio *uio, int ioflag) |
|
static int | icee_write (struct cdev *dev, struct uio *uio, int ioflag) |
|
| DRIVER_MODULE (icee, iicbus, icee_driver, icee_devclass, 0, 0) |
|
| MODULE_VERSION (icee, 1) |
|
| MODULE_DEPEND (icee, iicbus, 1, 1, 1) |
|
| IICBUS_FDT_PNP_INFO (compat_data) |
|
◆ CDEV2SOFTC
#define CDEV2SOFTC |
( |
|
dev | ) |
((dev)->si_drv1) |
◆ MAX_RD_SZ
#define MAX_RD_SZ 256 /* Largest read size we support */ |
◆ MAX_WR_SZ
#define MAX_WR_SZ 256 /* Largest write size we support */ |
◆ __FBSDID()
◆ DRIVER_MODULE()
◆ icee_attach()
static int icee_attach |
( |
device_t |
dev | ) |
|
|
static |
◆ icee_detach()
static int icee_detach |
( |
device_t |
dev | ) |
|
|
static |
◆ icee_init()
◆ icee_probe()
static int icee_probe |
( |
device_t |
dev | ) |
|
|
static |
◆ icee_read()
static int icee_read |
( |
struct cdev * |
dev, |
|
|
struct uio * |
uio, |
|
|
int |
ioflag |
|
) |
| |
|
static |
Definition at line 217 of file icee.c.
References icee_softc::addr, addr, CDEV2SOFTC, data, icee_softc::dev, dev, iic2errno(), IIC_INTRWAIT, IIC_M_RD, IIC_M_WR, iicbus_transfer_excl(), iic_msg::len, len, MAX_RD_SZ, msgs, icee_softc::size, slave, and icee_softc::type.
◆ icee_write()
static int icee_write |
( |
struct cdev * |
dev, |
|
|
struct uio * |
uio, |
|
|
int |
ioflag |
|
) |
| |
|
static |
Definition at line 277 of file icee.c.
References icee_softc::addr, CDEV2SOFTC, data, icee_softc::dev, dev, iic2errno(), IIC_INTRWAIT, IIC_M_RD, IIC_M_WR, iicbus_transfer_excl(), iic_msg::len, len, MAX_WR_SZ, rd, icee_softc::size, iic_msg::slave, slave, icee_softc::type, and icee_softc::wr_sz.
◆ IICBUS_FDT_PNP_INFO()
◆ MODULE_DEPEND()
MODULE_DEPEND |
( |
icee |
, |
|
|
iicbus |
, |
|
|
1 |
, |
|
|
1 |
, |
|
|
1 |
|
|
) |
| |
◆ MODULE_VERSION()
MODULE_VERSION |
( |
icee |
, |
|
|
1 |
|
|
) |
| |
◆ icee_cdevsw
struct cdevsw icee_cdevsw |
|
static |
Initial value:=
{
.d_version = D_VERSION,
}
static d_write_t icee_write
static d_read_t icee_read
Definition at line 119 of file icee.c.
Referenced by icee_attach().
◆ icee_devclass
◆ icee_driver
Initial value:= {
"icee",
}
static device_method_t icee_methods[]
Definition at line 346 of file icee.c.
◆ icee_methods
device_method_t icee_methods[] |
|
static |
Initial value:= {
DEVMETHOD_END
}
static int icee_detach(device_t dev)
static int icee_probe(device_t dev)
static int icee_attach(device_t dev)
Definition at line 338 of file icee.c.
◆ icee_read
◆ icee_write