Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/gpio/chvgpio.c
Show First 20 Lines • Show All 337 Lines • ▼ Show 20 Lines | |||||
static char *chvgpio_hids[] = { | static char *chvgpio_hids[] = { | ||||
"INT33FF", | "INT33FF", | ||||
NULL | NULL | ||||
}; | }; | ||||
static int | static int | ||||
chvgpio_probe(device_t dev) | chvgpio_probe(device_t dev) | ||||
{ | { | ||||
if (acpi_disabled("chvgpio") || | int rv; | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, chvgpio_hids) == NULL) | |||||
return (ENXIO); | |||||
if (acpi_disabled("chvgpio")) | |||||
return (ENXIO); | |||||
rv = ACPI_ID_PROBE(device_get_parent(dev), dev, chvgpio_hids, NULL); | |||||
if (rv <= 0) | |||||
device_set_desc(dev, "Intel Cherry View GPIO"); | device_set_desc(dev, "Intel Cherry View GPIO"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
static int | static int | ||||
chvgpio_attach(device_t dev) | chvgpio_attach(device_t dev) | ||||
{ | { | ||||
struct chvgpio_softc *sc; | struct chvgpio_softc *sc; | ||||
ACPI_STATUS status; | ACPI_STATUS status; | ||||
int uid; | int uid; | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |