acpi_dock.c (c6df6f5322f7004c71216391e1c0b374d853704a) acpi_dock.c (3e68d2c52b4e4b0aafce2c7f6bcb8f063c6a8d55)
1/*-
2 * Copyright (c) 2005-2006 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 503 unchanged lines hidden (view full) ---

512 &sc->_bdn, 0, "Dock _BDN");
513 SYSCTL_ADD_INT(sc->sysctl_ctx,
514 SYSCTL_CHILDREN(sc->sysctl_tree),
515 OID_AUTO, "_uid", CTLFLAG_RD,
516 &sc->_uid, 0, "Dock _UID");
517 SYSCTL_ADD_PROC(sc->sysctl_ctx,
518 SYSCTL_CHILDREN(sc->sysctl_tree),
519 OID_AUTO, "status",
1/*-
2 * Copyright (c) 2005-2006 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 503 unchanged lines hidden (view full) ---

512 &sc->_bdn, 0, "Dock _BDN");
513 SYSCTL_ADD_INT(sc->sysctl_ctx,
514 SYSCTL_CHILDREN(sc->sysctl_tree),
515 OID_AUTO, "_uid", CTLFLAG_RD,
516 &sc->_uid, 0, "Dock _UID");
517 SYSCTL_ADD_PROC(sc->sysctl_ctx,
518 SYSCTL_CHILDREN(sc->sysctl_tree),
519 OID_AUTO, "status",
520 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, dev, 0,
520 CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE, dev, 0,
521 acpi_dock_status_sysctl, "I",
522 "Dock/Undock operation");
523
524 ACPI_SERIAL_END(dock);
525
526 AcpiInstallNotifyHandler(h, ACPI_ALL_NOTIFY,
527 acpi_dock_notify_handler, dev);
528

--- 22 unchanged lines hidden ---
521 acpi_dock_status_sysctl, "I",
522 "Dock/Undock operation");
523
524 ACPI_SERIAL_END(dock);
525
526 AcpiInstallNotifyHandler(h, ACPI_ALL_NOTIFY,
527 acpi_dock_notify_handler, dev);
528

--- 22 unchanged lines hidden ---