Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_hpet.c
Show First 20 Lines • Show All 444 Lines • ▼ Show 20 Lines | for (i = 1; ; i++) { | ||||
bus_set_resource(child, SYS_RES_MEMORY, 0, hpet->Address.Address, | bus_set_resource(child, SYS_RES_MEMORY, 0, hpet->Address.Address, | ||||
HPET_MEM_WIDTH); | HPET_MEM_WIDTH); | ||||
} | } | ||||
} | } | ||||
static int | static int | ||||
hpet_probe(device_t dev) | hpet_probe(device_t dev) | ||||
{ | { | ||||
ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__); | int rv; | ||||
ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__); | |||||
if (acpi_disabled("hpet") || acpi_hpet_disabled) | if (acpi_disabled("hpet") || acpi_hpet_disabled) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (acpi_get_handle(dev) != NULL && | rv = ACPI_ID_PROBE(device_get_parent(dev), dev, hpet_ids, NULL); | ||||
ACPI_ID_PROBE(device_get_parent(dev), dev, hpet_ids) == NULL) | if (rv <= 0) | ||||
jhb: Space after 'if'. | |||||
return (ENXIO); | |||||
device_set_desc(dev, "High Precision Event Timer"); | device_set_desc(dev, "High Precision Event Timer"); | ||||
return (0); | return (rv); | ||||
} | } | ||||
static int | static int | ||||
hpet_attach(device_t dev) | hpet_attach(device_t dev) | ||||
{ | { | ||||
struct hpet_softc *sc; | struct hpet_softc *sc; | ||||
struct hpet_timer *t; | struct hpet_timer *t; | ||||
struct make_dev_args mda; | struct make_dev_args mda; | ||||
▲ Show 20 Lines • Show All 521 Lines • Show Last 20 Lines |
Space after 'if'.