From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 23 15:50:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FEFB1065677 for ; Tue, 23 Sep 2008 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E7D4E8FC12 for ; Tue, 23 Sep 2008 15:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8NFo2av072569 for ; Tue, 23 Sep 2008 15:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8NFo2IW072568; Tue, 23 Sep 2008 15:50:02 GMT (envelope-from gnats) Resent-Date: Tue, 23 Sep 2008 15:50:02 GMT Resent-Message-Id: <200809231550.m8NFo2IW072568@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gavin Atkinson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 476CE1065676 for ; Tue, 23 Sep 2008 15:46:26 +0000 (UTC) (envelope-from gavin@blade32.york.ac.uk) Received: from mail-gw0.york.ac.uk (mail-gw0.york.ac.uk [144.32.128.245]) by mx1.freebsd.org (Postfix) with ESMTP id D40218FC22 for ; Tue, 23 Sep 2008 15:46:25 +0000 (UTC) (envelope-from gavin@blade32.york.ac.uk) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw0.york.ac.uk (8.13.6/8.13.6) with ESMTP id m8NFkJiR016825 for ; Tue, 23 Sep 2008 16:46:19 +0100 (BST) Received: from blade32.york.ac.uk ([144.32.128.181]) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KiA5j-0002up-Lk for FreeBSD-gnats-submit@freebsd.org; Tue, 23 Sep 2008 16:46:19 +0100 Received: from blade32.york.ac.uk (localhost [127.0.0.1]) by blade32.york.ac.uk (8.14.2/8.14.2) with ESMTP id m8NFkJXi047286 for ; Tue, 23 Sep 2008 16:46:19 +0100 (BST) (envelope-from gavin@blade32.york.ac.uk) Received: (from root@localhost) by blade32.york.ac.uk (8.14.2/8.14.2/Submit) id m8NFkJEx047285; Tue, 23 Sep 2008 16:46:19 +0100 (BST) (envelope-from gavin) Message-Id: <200809231546.m8NFkJEx047285@blade32.york.ac.uk> Date: Tue, 23 Sep 2008 16:46:19 +0100 (BST) From: Gavin Atkinson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/127581: [patch] [acpi_sony] Add support for more Sony features X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2008 15:50:03 -0000 >Number: 127581 >Category: kern >Synopsis: [patch] [acpi_sony] Add support for more Sony features >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 23 15:50:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gavin Atkinson >Release: FreeBSD 8.0-CURRENT amd64 >Organization: >Environment: System: FreeBSD blade32.york.ac.uk 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Mon Aug 18 14:12:25 BST 2008 root@blade32.york.ac.uk:/usr/obj/usr/src/sys/B32 amd64 >Description: Add support for a few more Sony-specific ACPI features (default display brightness, wired LAN power and bass gain), and update the description of one previously unknown feature. While here, expand on a comment and remove two unused defines. >How-To-Repeat: N/A >Fix: --- sony_acpi_5001.diff begins here --- Index: src/sys/dev/acpi_support/acpi_sony.c =================================================================== RCS file: /home/ncvs/src/sys/dev/acpi_support/acpi_sony.c,v retrieving revision 1.11 diff -u -r1.11 acpi_sony.c --- src/sys/dev/acpi_support/acpi_sony.c 20 May 2008 06:32:07 -0000 1.11 +++ src/sys/dev/acpi_support/acpi_sony.c 23 Sep 2008 15:42:20 -0000 @@ -40,14 +40,21 @@ #define _COMPONENT ACPI_OEM ACPI_MODULE_NAME("Sony") -#define ACPI_SONY_GET_BRIGHTNESS "GBRT" -#define ACPI_SONY_SET_BRIGHTNESS "SBRT" #define ACPI_SONY_GET_PID "GPID" /* * SNY5001 + * This is the ACPI handle for the "Sony Notebook Control" driver under + * Windows. + * It provides several methods within the ACPI namespace, including: * [GS]BRT [GS]PBR [GS]CTR [GS]PCR [GS]CMI [CDPW GCDP]? GWDP PWAK PWRN * + * SNY6001 + * This is the ACPI handle for the "Sony Programmable I/O" driver under + * Windows. + * It is not yet supported by this driver, but provides control over the + * power to the bluetooth, built-in camera and HSDPA modem devices in some + * laptops, and also allows some control of the fan speed. */ struct acpi_sony_softc { @@ -61,14 +68,17 @@ char *comment; } acpi_sony_oids[] = { { "brightness", "GBRT", "SBRT", "Display Brightness"}, - { "ctr", "GCTR", "SCTR", "??"}, + { "brightness_default", "GPBR", "SPBR", "Default Display Brightness"}, + { "contrast", "GCTR", "SCTR", "Display Contrast"}, + { "bass_gain", "GMGB", "SMGB", "Multimedia Bass Gain"}, { "pcr", "GPCR", "SPCR", "???"}, #if 0 - { "cmi", "GCMI", "SCMI", "????"}, + { "cmi", "GCMI", "SCMI", "???"}, #endif - { "wdp", "GWDP", NULL, "?????"}, + { "wdp", "GWDP", NULL, "???"}, { "cdp", "GCDP", "CDPW", "CD Power"}, /*shares [\GL03]&0x8 flag*/ { "azp", "GAZP", "AZPW", "Audio Power"}, + { "lnp", "GLNP", "LNPW", "LAN Power"}, { NULL, NULL, NULL } }; --- sony_acpi_5001.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: