#include <linux/acpi.h>
#include "psb_drv.h"
#include "psb_irq.h"
#include "psb_intel_reg.h"
#define PCI_ASLE …
#define PCI_ASLS …
#define OPREGION_HEADER_OFFSET …
#define OPREGION_ACPI_OFFSET …
#define ACPI_CLID …
#define ACPI_CDCK …
#define OPREGION_SWSCI_OFFSET …
#define OPREGION_ASLE_OFFSET …
#define OPREGION_VBT_OFFSET …
#define OPREGION_SIGNATURE …
#define MBOX_ACPI …
#define MBOX_SWSCI …
#define MBOX_ASLE …
struct opregion_header { … } __packed;
struct opregion_acpi { … } __packed;
struct opregion_swsci { … } __packed;
struct opregion_asle { … } __packed;
#define ASLE_SET_ALS_ILLUM …
#define ASLE_SET_BACKLIGHT …
#define ASLE_SET_PFIT …
#define ASLE_SET_PWM_FREQ …
#define ASLE_REQ_MSK …
#define ASLE_ALS_ILLUM_FAILED …
#define ASLE_BACKLIGHT_FAILED …
#define ASLE_PFIT_FAILED …
#define ASLE_PWM_FREQ_FAILED …
#define ASLE_BCLP_VALID …
#define ASLE_BCLP_MSK …
#define ASLE_PFIT_VALID …
#define ASLE_PFIT_CENTER …
#define ASLE_PFIT_STRETCH_TEXT …
#define ASLE_PFIT_STRETCH_GFX …
#define ASLE_ALS_ILLUM_FAILED …
#define ASLE_BACKLIGHT_FAILED …
#define ASLE_PFIT_FAILED …
#define ASLE_PWM_FREQ_FAILED …
#define ASLE_BCLP_VALID …
#define ASLE_BCLP_MSK …
#define ASLE_PFIT_VALID …
#define ASLE_PFIT_CENTER …
#define ASLE_PFIT_STRETCH_TEXT …
#define ASLE_PFIT_STRETCH_GFX …
#define ASLE_PFMB_BRIGHTNESS_MASK …
#define ASLE_PFMB_BRIGHTNESS_VALID …
#define ASLE_PFMB_PWM_MASK …
#define ASLE_PFMB_PWM_VALID …
#define ASLE_CBLV_VALID …
static struct psb_intel_opregion *system_opregion;
static u32 asle_set_backlight(struct drm_device *dev, u32 bclp)
{ … }
static void psb_intel_opregion_asle_work(struct work_struct *work)
{ … }
void psb_intel_opregion_asle_intr(struct drm_device *dev)
{ … }
#define ASLE_ALS_EN …
#define ASLE_BLC_EN …
#define ASLE_PFIT_EN …
#define ASLE_PFMB_EN …
void psb_intel_opregion_enable_asle(struct drm_device *dev)
{ … }
#define ACPI_EV_DISPLAY_SWITCH …
#define ACPI_EV_LID …
#define ACPI_EV_DOCK …
static int psb_intel_opregion_video_event(struct notifier_block *nb,
unsigned long val, void *data)
{ … }
static struct notifier_block psb_intel_opregion_notifier = …;
void psb_intel_opregion_init(struct drm_device *dev)
{ … }
void psb_intel_opregion_fini(struct drm_device *dev)
{ … }
int psb_intel_opregion_setup(struct drm_device *dev)
{ … }