Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpi_if.m
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
# EISA PNP IDs or ACPI _HID/_CID values. | # EISA PNP IDs or ACPI _HID/_CID values. | ||||
# | # | ||||
# device_t bus: parent bus for the device | # device_t bus: parent bus for the device | ||||
# | # | ||||
# device_t dev: device being considered | # device_t dev: device being considered | ||||
# | # | ||||
# char **ids: array of ID strings to consider | # char **ids: array of ID strings to consider | ||||
# | # | ||||
# Returns: ID string matched or NULL if no match | # char **match: Pointer to store ID string matched or NULL if no match | ||||
# pass NULL if not needed. | |||||
# | # | ||||
jhb: Keep an empty line before 'Returns:' | |||||
METHOD char * id_probe { | # Returns: BUS_PROBE_DEFAULT if _HID match | ||||
# BUS_PROBE_LOW_PRIORITY if _CID match and not _HID match | |||||
# ENXIO if no match. | |||||
# | |||||
METHOD int id_probe { | |||||
device_t bus; | device_t bus; | ||||
device_t dev; | device_t dev; | ||||
char **ids; | char **ids; | ||||
char **match; | |||||
} DEFAULT acpi_generic_id_probe; | } DEFAULT acpi_generic_id_probe; | ||||
# | # | ||||
# Evaluate an ACPI method or object, given its path. | # Evaluate an ACPI method or object, given its path. | ||||
# | # | ||||
# device_t bus: parent bus for the device | # device_t bus: parent bus for the device | ||||
# | # | ||||
# device_t dev: evaluate the object relative to this device's handle. | # device_t dev: evaluate the object relative to this device's handle. | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |
Keep an empty line before 'Returns:'