Module Name: src
Committed By: mlelstv
Date: Sun Apr 3 10:32:47 UTC 2016
Modified Files:
src/sys/dev/acpi: acpi_display.c
Log Message:
Add comments.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/acpi/acpi_display.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/acpi_display.c
diff -u src/sys/dev/acpi/acpi_display.c:1.14 src/sys/dev/acpi/acpi_display.c:1.15
--- src/sys/dev/acpi/acpi_display.c:1.14 Thu Feb 18 15:42:44 2016
+++ src/sys/dev/acpi/acpi_display.c Sun Apr 3 10:32:47 2016
@@ -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 @@ acpidisp_out_capabilities(const struct a
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;