Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ichiic/ig4_var.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include "device_if.h" | #include "device_if.h" | ||||
#include "pci_if.h" | #include "pci_if.h" | ||||
#include "iicbus_if.h" | #include "iicbus_if.h" | ||||
#define IG4_RBUFSIZE 128 | #define IG4_RBUFSIZE 128 | ||||
#define IG4_RBUFMASK (IG4_RBUFSIZE - 1) | #define IG4_RBUFMASK (IG4_RBUFSIZE - 1) | ||||
enum ig4_op { IG4_IDLE, IG4_READ, IG4_WRITE }; | enum ig4_op { IG4_IDLE, IG4_READ, IG4_WRITE }; | ||||
enum ig4_vers { IG4_HASWELL, IG4_ATOM, IG4_SKYLAKE }; | enum ig4_vers { IG4_HASWELL, IG4_ATOM, IG4_SKYLAKE, IG4_APL }; | ||||
struct ig4iic_softc { | struct ig4iic_softc { | ||||
device_t dev; | device_t dev; | ||||
struct intr_config_hook enum_hook; | struct intr_config_hook enum_hook; | ||||
device_t iicbus; | device_t iicbus; | ||||
struct resource *regs_res; | struct resource *regs_res; | ||||
int regs_rid; | int regs_rid; | ||||
struct resource *intr_res; | struct resource *intr_res; | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |