|
Linux Kernel
3.7.1
|
#include <linux/pci.h>#include <linux/acpi.h>#include <linux/slab.h>#include <linux/power_supply.h>#include <acpi/acpi_drivers.h>#include <acpi/acpi_bus.h>#include <acpi/video.h>#include <drm/drmP.h>#include <drm/drm_crtc_helper.h>#include "radeon.h"#include "radeon_acpi.h"#include "atom.h"#include <linux/vga_switcheroo.h>Go to the source code of this file.
Data Structures | |
| struct | atif_verify_interface |
| struct | atif_system_params |
| struct | atif_sbios_requests |
| struct | atcs_verify_interface |
Macros | |
| #define | ACPI_AC_CLASS "ac_adapter" |
| #define | ATIF_NOTIFY_MASK 0x3 |
| #define | ATIF_NOTIFY_NONE 0 |
| #define | ATIF_NOTIFY_81 1 |
| #define | ATIF_NOTIFY_N 2 |
Functions | |
| void | radeon_pm_acpi_event_handler (struct radeon_device *rdev) |
| int | radeon_atif_handler (struct radeon_device *rdev, struct acpi_bus_event *event) |
| int | radeon_acpi_init (struct radeon_device *rdev) |
| void | radeon_acpi_fini (struct radeon_device *rdev) |
Variables | |
| struct atif_verify_interface | __packed |
| #define ACPI_AC_CLASS "ac_adapter" |
Definition at line 40 of file radeon_acpi.c.
| #define ATIF_NOTIFY_81 1 |
Definition at line 72 of file radeon_acpi.c.
| #define ATIF_NOTIFY_MASK 0x3 |
Definition at line 70 of file radeon_acpi.c.
| #define ATIF_NOTIFY_N 2 |
Definition at line 73 of file radeon_acpi.c.
| #define ATIF_NOTIFY_NONE 0 |
Definition at line 71 of file radeon_acpi.c.
| void radeon_acpi_fini | ( | struct radeon_device * | rdev | ) |
radeon_acpi_fini - tear down driver acpi support
Unregisters with the acpi notifier chain (all asics).
Definition at line 646 of file radeon_acpi.c.
| int radeon_acpi_init | ( | struct radeon_device * | rdev | ) |
radeon_acpi_init - init driver acpi support
Verifies the AMD ACPI interfaces and registers with the acpi notifier chain (all asics). Returns 0 on success, error on failure.
Definition at line 549 of file radeon_acpi.c.
| int radeon_atif_handler | ( | struct radeon_device * | rdev, |
| struct acpi_bus_event * | event | ||
| ) |
radeon_atif_handler - handle ATIF notify requests
: radeon_device pointer : atif sbios request struct
Checks the acpi event and if it matches an atif event, handles it. Returns NOTIFY code
Definition at line 336 of file radeon_acpi.c.
| void radeon_pm_acpi_event_handler | ( | struct radeon_device * | rdev | ) |
Definition at line 68 of file radeon_pm.c.
1.8.2