Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Add comments.
details: https://anonhg.NetBSD.org/src/rev/de4c4ff63b9a
branches: trunk
changeset: 344530:de4c4ff63b9a
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Apr 03 10:32:47 2016 +0000
description:
Add comments.
diffstat:
sys/dev/acpi/acpi_display.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (50 lines):
diff -r 822b466cd1a6 -r de4c4ff63b9a sys/dev/acpi/acpi_display.c
--- a/sys/dev/acpi/acpi_display.c Sun Apr 03 10:32:00 2016 +0000
+++ b/sys/dev/acpi/acpi_display.c Sun Apr 03 10:32:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_display.c,v 1.14 2016/02/18 15:42:44 riastradh Exp $ */
+/* $NetBSD: acpi_display.c,v 1.15 2016/04/03 10:32:47 mlelstv Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.14 2016/02/18 15:42:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_display.c,v 1.15 2016/04/03 10:32:47 mlelstv Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -785,24 +785,31 @@
cap = 0;
+ /* List of Brigthness levels */
if (acpidisp_has_method(ad->ad_handle, "_BCL", ACPI_TYPE_PACKAGE))
cap |= ACPI_DISP_OUT_CAP__BCL;
+ /* Set brightness level */
if (acpidisp_has_method(ad->ad_handle, "_BCM", ACPI_TYPE_METHOD))
cap |= ACPI_DISP_OUT_CAP__BCM;
+ /* Get brightless level */
if (acpidisp_has_method(ad->ad_handle, "_BQC", ACPI_TYPE_INTEGER))
cap |= ACPI_DISP_OUT_CAP__BQC;
+ /* Return EDID */
if (acpidisp_has_method(ad->ad_handle, "_DDC", ACPI_TYPE_METHOD))
cap |= ACPI_DISP_OUT_CAP__DDC;
+ /* Get Status */
if (acpidisp_has_method(ad->ad_handle, "_DCS", ACPI_TYPE_INTEGER))
cap |= ACPI_DISP_OUT_CAP__DCS;
+ /* Get Graphics State */
if (acpidisp_has_method(ad->ad_handle, "_DGS", ACPI_TYPE_INTEGER))
cap |= ACPI_DISP_OUT_CAP__DGS;
+ /* Set Graphics State */
if (acpidisp_has_method(ad->ad_handle, "_DSS", ACPI_TYPE_METHOD))
cap |= ACPI_DISP_OUT_CAP__DSS;
Home |
Main Index |
Thread Index |
Old Index