Lines Matching refs:dev
28 __FBSDID("$FreeBSD: releng/11.0/sys/dev/acpi_support/acpi_sony.c 273377 2014-10-21 07:31:21Z hselasky $");
35 #include <contrib/dev/acpica/include/acpi.h>
39 #include <dev/acpica/acpivar.h>
87 static int acpi_sony_probe(device_t dev);
88 static int acpi_sony_attach(device_t dev);
89 static int acpi_sony_detach(device_t dev);
115 acpi_sony_probe(device_t dev)
119 if (ACPI_ID_PROBE(device_get_parent(dev), dev, sny_id)) {
120 device_set_desc(dev, "Sony notebook controller");
127 acpi_sony_attach(device_t dev)
132 sc = device_get_softc(dev);
133 acpi_GetInteger(acpi_get_handle(dev), ACPI_SONY_GET_PID, &sc->pid);
134 device_printf(dev, "PID %x\n", sc->pid);
137 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
138 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
141 dev, i, sysctl_acpi_sony_gen_handler, "I",
144 SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev),
145 SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
148 dev, i, sysctl_acpi_sony_gen_handler, "I",
156 acpi_sony_detach(device_t dev)
163 acpi_sony_suspend(device_t dev)
165 struct acpi_sony_softc *sc = device_get_softc(dev);
170 acpi_sony_resume(device_t dev)
179 device_t dev = arg1;
183 acpi_GetInteger(acpi_get_handle(dev),
188 acpi_SetInteger(acpi_get_handle(dev),