FreeBSD Bugzilla – Attachment 111218 Details for
Bug 152438
[acpi]: patch to acpi_asus(4) to add extra sysctls for ASUS EeePCs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.61 KB, created by
Yuichiro Goto
on 2010-11-21 09:10:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yuichiro Goto
Created:
2010-11-21 09:10:07 UTC
Size:
2.61 KB
patch
obsolete
>Index: acpi_asus.c >=================================================================== >--- acpi_asus.c (revision 215401) >+++ acpi_asus.c (working copy) >@@ -60,6 +60,7 @@ > #define ACPI_ASUS_METHOD_CAMERA 4 > #define ACPI_ASUS_METHOD_CARDRD 5 > #define ACPI_ASUS_METHOD_WLAN 6 >+#define ACPI_ASUS_METHOD_TPD 7 > > #define _COMPONENT ACPI_OEM > ACPI_MODULE_NAME("ASUS") >@@ -94,6 +95,9 @@ > char *wlan_get; > char *wlan_set; > >+ char *tpd_get; >+ char *tpd_set; >+ > void (*n_func)(ACPI_HANDLE, UINT32, void *); > > char *lcdd; >@@ -137,6 +141,7 @@ > int s_cam; > int s_crd; > int s_wlan; >+ int s_tpd; > }; > > static void acpi_asus_lcdd_notify(ACPI_HANDLE h, UINT32 notify, >@@ -449,12 +454,16 @@ > .name = "EEE", > .brn_get = "\\_SB.ATKD.PBLG", > .brn_set = "\\_SB.ATKD.PBLS", >+ .lcd_get = "\\_SB.ATKD.PBPG", >+ .lcd_set = "\\_SB.ATKD.PBPS", > .cam_get = "\\_SB.ATKD.CAMG", > .cam_set = "\\_SB.ATKD.CAMS", > .crd_set = "\\_SB.ATKD.CRDS", > .crd_get = "\\_SB.ATKD.CRDG", > .wlan_get = "\\_SB.ATKD.WLDG", > .wlan_set = "\\_SB.ATKD.WLDS", >+ .tpd_get = "\\_SB.ATKD.TPDG", >+ .tpd_set = "\\_SB.ATKD.TPDS", > .n_func = acpi_asus_eeepc_notify > }, > >@@ -503,6 +512,12 @@ > .description = "wireless lan state", > .flags = CTLTYPE_INT | CTLFLAG_RW > }, >+ { >+ .name = "touchpad", >+ .method = ACPI_ASUS_METHOD_TPD, >+ .description = "touchpad state", >+ .flags = CTLTYPE_INT | CTLFLAG_RW >+ }, > > { .name = NULL } > }; >@@ -994,6 +1009,9 @@ > case ACPI_ASUS_METHOD_WLAN: > val = sc->s_wlan; > break; >+ case ACPI_ASUS_METHOD_TPD: >+ val = sc->s_tpd; >+ break; > } > > return (val); >@@ -1050,8 +1068,11 @@ > if (arg < 0 || arg > 1) > return (EINVAL); > >- if (strncmp(sc->model->name, "L3H", 3) != 0) >+ if (strncmp(sc->model->name, "EEE", 3) == 0) > status = AcpiEvaluateObject(sc->handle, >+ sc->model->lcd_set, &acpiargs, NULL); >+ else if (strncmp(sc->model->name, "L3H", 3) != 0) >+ status = AcpiEvaluateObject(sc->handle, > sc->model->lcd_set, NULL, NULL); > else > status = acpi_SetInteger(sc->handle, >@@ -1091,6 +1112,16 @@ > if (ACPI_SUCCESS(status)) > sc->s_wlan = arg; > break; >+ case ACPI_ASUS_METHOD_TPD: >+ if (arg < 0 || arg > 1) >+ return (EINVAL); >+ >+ status = AcpiEvaluateObject(sc->handle, >+ sc->model->tpd_set, &acpiargs, NULL); >+ >+ if (ACPI_SUCCESS(status)) >+ sc->s_tpd = arg; >+ break; > } > > return (0); >@@ -1209,6 +1240,14 @@ > return (TRUE); > } > return (FALSE); >+ case ACPI_ASUS_METHOD_TPD: >+ if (sc->model->tpd_get) { >+ status = acpi_GetInteger(sc->handle, >+ sc->model->tpd_get, &sc->s_tpd); >+ if (ACPI_SUCCESS(status)) >+ return (TRUE); >+ } >+ return (FALSE); > } > return (FALSE); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152438
: 111218