acpi_powerres.c (c573e654b7769ae90a8ae4a34eed0b3a36f439c3) | acpi_powerres.c (3273b0052350a01f85ee60a6a2e31adb31d4a5a6) |
---|---|
1/*- 2 * Copyright (c) 2001 Michael Smith 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 --- 98 unchanged lines hidden (view full) --- 107struct acpi_powerresource { 108 TAILQ_ENTRY(acpi_powerresource) ap_link; 109 TAILQ_HEAD(,acpi_powerreference) ap_references; 110 ACPI_HANDLE ap_resource; /* the resource's handle */ 111 ACPI_INTEGER ap_systemlevel; 112 ACPI_INTEGER ap_order; 113}; 114 | 1/*- 2 * Copyright (c) 2001 Michael Smith 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 --- 98 unchanged lines hidden (view full) --- 107struct acpi_powerresource { 108 TAILQ_ENTRY(acpi_powerresource) ap_link; 109 TAILQ_HEAD(,acpi_powerreference) ap_references; 110 ACPI_HANDLE ap_resource; /* the resource's handle */ 111 ACPI_INTEGER ap_systemlevel; 112 ACPI_INTEGER ap_order; 113}; 114 |
115TAILQ_HEAD(acpi_powerresource_list, acpi_powerresource) acpi_powerresources; 116TAILQ_HEAD(acpi_powerconsumer_list, acpi_powerconsumer) acpi_powerconsumers; | 115static TAILQ_HEAD(acpi_powerresource_list, acpi_powerresource) acpi_powerresources; 116static TAILQ_HEAD(acpi_powerconsumer_list, acpi_powerconsumer) acpi_powerconsumers; |
117 118static ACPI_STATUS acpi_pwr_register_consumer(ACPI_HANDLE consumer); 119static ACPI_STATUS acpi_pwr_deregister_consumer(ACPI_HANDLE consumer); 120static ACPI_STATUS acpi_pwr_register_resource(ACPI_HANDLE res); 121static ACPI_STATUS acpi_pwr_deregister_resource(ACPI_HANDLE res); 122static void acpi_pwr_reference_resource(ACPI_OBJECT *obj, void *arg); 123static ACPI_STATUS acpi_pwr_switch_power(void); 124static struct acpi_powerresource *acpi_pwr_find_resource(ACPI_HANDLE res); --- 515 unchanged lines hidden --- | 117 118static ACPI_STATUS acpi_pwr_register_consumer(ACPI_HANDLE consumer); 119static ACPI_STATUS acpi_pwr_deregister_consumer(ACPI_HANDLE consumer); 120static ACPI_STATUS acpi_pwr_register_resource(ACPI_HANDLE res); 121static ACPI_STATUS acpi_pwr_deregister_resource(ACPI_HANDLE res); 122static void acpi_pwr_reference_resource(ACPI_OBJECT *obj, void *arg); 123static ACPI_STATUS acpi_pwr_switch_power(void); 124static struct acpi_powerresource *acpi_pwr_find_resource(ACPI_HANDLE res); --- 515 unchanged lines hidden --- |