Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
intel_opregion.c File Reference
#include <linux/acpi.h>
#include <linux/acpi_io.h>
#include <acpi/video.h>
#include <drm/drmP.h>
#include <drm/i915_drm.h>
#include "i915_drv.h"
#include "intel_drv.h"

Go to the source code of this file.

Data Structures

struct  opregion_header
 
struct  opregion_acpi
 
struct  opregion_swsci
 
struct  opregion_asle
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define PCI_ASLE   0xe4
 
#define PCI_ASLS   0xfc
 
#define OPREGION_HEADER_OFFSET   0
 
#define OPREGION_ACPI_OFFSET   0x100
 
#define ACPI_CLID   0x01ac /* current lid state indicator */
 
#define ACPI_CDCK   0x01b0 /* current docking state indicator */
 
#define OPREGION_SWSCI_OFFSET   0x200
 
#define OPREGION_ASLE_OFFSET   0x300
 
#define OPREGION_VBT_OFFSET   0x400
 
#define OPREGION_SIGNATURE   "IntelGraphicsMem"
 
#define MBOX_ACPI   (1<<0)
 
#define MBOX_SWSCI   (1<<1)
 
#define MBOX_ASLE   (1<<2)
 
#define ASLE_SET_ALS_ILLUM   (1 << 0)
 
#define ASLE_SET_BACKLIGHT   (1 << 1)
 
#define ASLE_SET_PFIT   (1 << 2)
 
#define ASLE_SET_PWM_FREQ   (1 << 3)
 
#define ASLE_REQ_MSK   0xf
 
#define ASLE_ALS_ILLUM_FAILED   (1<<10)
 
#define ASLE_BACKLIGHT_FAILED   (1<<12)
 
#define ASLE_PFIT_FAILED   (1<<14)
 
#define ASLE_PWM_FREQ_FAILED   (1<<16)
 
#define ASLE_BCLP_VALID   (1<<31)
 
#define ASLE_BCLP_MSK   (~(1<<31))
 
#define ASLE_PFIT_VALID   (1<<31)
 
#define ASLE_PFIT_CENTER   (1<<0)
 
#define ASLE_PFIT_STRETCH_TEXT   (1<<1)
 
#define ASLE_PFIT_STRETCH_GFX   (1<<2)
 
#define ASLE_PFMB_BRIGHTNESS_MASK   (0xff)
 
#define ASLE_PFMB_BRIGHTNESS_VALID   (1<<8)
 
#define ASLE_PFMB_PWM_MASK   (0x7ffffe00)
 
#define ASLE_PFMB_PWM_VALID   (1<<31)
 
#define ASLE_CBLV_VALID   (1<<31)
 
#define ACPI_OTHER_OUTPUT   (0<<8)
 
#define ACPI_VGA_OUTPUT   (1<<8)
 
#define ACPI_TV_OUTPUT   (2<<8)
 
#define ACPI_DIGITAL_OUTPUT   (3<<8)
 
#define ACPI_LVDS_OUTPUT   (4<<8)
 

Functions

struct opregion_header __attribute__ ((packed))
 
int intel_opregion_setup (struct drm_device *dev)
 

Variables

u8 signature [16]
 
u32 size
 
u32 opregion_ver
 
u8 bios_ver [32]
 
u8 vbios_ver [16]
 
u8 driver_ver [16]
 
u32 mboxes
 
u8 reserved [164]
 
u32 drdy
 
u32 csts
 
u32 cevt
 
u8 rsvd1 [20]
 
u32 didl [8]
 
u32 cpdl [8]
 
u32 cadl [8]
 
u32 nadl [8]
 
u32 aslp
 
u32 tidx
 
u32 chpd
 
u32 clid
 
u32 cdck
 
u32 sxsw
 
u32 evts
 
u32 cnot
 
u32 nrdy
 
u8 rsvd2 [60]
 
u32 scic
 
u32 parm
 
u32 dslp
 
u8 rsvd [244]
 
u32 ardy
 
u32 aslc
 
u32 tche
 
u32 alsi
 
u32 bclp
 
u32 pfit
 
u32 cblv
 
u16 bclm [20]
 
u32 cpfm
 
u32 epfm
 
u8 plut [74]
 
u32 pfmb
 

Macro Definition Documentation

#define ACPI_CDCK   0x01b0 /* current docking state indicator */

Definition at line 45 of file intel_opregion.c.

#define ACPI_CLID   0x01ac /* current lid state indicator */

Definition at line 44 of file intel_opregion.c.

#define ACPI_DIGITAL_OUTPUT   (3<<8)

Definition at line 147 of file intel_opregion.c.

#define ACPI_LVDS_OUTPUT   (4<<8)

Definition at line 148 of file intel_opregion.c.

#define ACPI_OTHER_OUTPUT   (0<<8)

Definition at line 144 of file intel_opregion.c.

#define ACPI_TV_OUTPUT   (2<<8)

Definition at line 146 of file intel_opregion.c.

#define ACPI_VGA_OUTPUT   (1<<8)

Definition at line 145 of file intel_opregion.c.

#define ASLE_ALS_ILLUM_FAILED   (1<<10)

Definition at line 121 of file intel_opregion.c.

#define ASLE_BACKLIGHT_FAILED   (1<<12)

Definition at line 122 of file intel_opregion.c.

#define ASLE_BCLP_MSK   (~(1<<31))

Definition at line 128 of file intel_opregion.c.

#define ASLE_BCLP_VALID   (1<<31)

Definition at line 127 of file intel_opregion.c.

#define ASLE_CBLV_VALID   (1<<31)

Definition at line 142 of file intel_opregion.c.

#define ASLE_PFIT_CENTER   (1<<0)

Definition at line 132 of file intel_opregion.c.

#define ASLE_PFIT_FAILED   (1<<14)

Definition at line 123 of file intel_opregion.c.

#define ASLE_PFIT_STRETCH_GFX   (1<<2)

Definition at line 134 of file intel_opregion.c.

#define ASLE_PFIT_STRETCH_TEXT   (1<<1)

Definition at line 133 of file intel_opregion.c.

#define ASLE_PFIT_VALID   (1<<31)

Definition at line 131 of file intel_opregion.c.

#define ASLE_PFMB_BRIGHTNESS_MASK   (0xff)

Definition at line 137 of file intel_opregion.c.

#define ASLE_PFMB_BRIGHTNESS_VALID   (1<<8)

Definition at line 138 of file intel_opregion.c.

#define ASLE_PFMB_PWM_MASK   (0x7ffffe00)

Definition at line 139 of file intel_opregion.c.

#define ASLE_PFMB_PWM_VALID   (1<<31)

Definition at line 140 of file intel_opregion.c.

#define ASLE_PWM_FREQ_FAILED   (1<<16)

Definition at line 124 of file intel_opregion.c.

#define ASLE_REQ_MSK   0xf

Definition at line 118 of file intel_opregion.c.

#define ASLE_SET_ALS_ILLUM   (1 << 0)

Definition at line 114 of file intel_opregion.c.

#define ASLE_SET_BACKLIGHT   (1 << 1)

Definition at line 115 of file intel_opregion.c.

#define ASLE_SET_PFIT   (1 << 2)

Definition at line 116 of file intel_opregion.c.

#define ASLE_SET_PWM_FREQ   (1 << 3)

Definition at line 117 of file intel_opregion.c.

#define MBOX_ACPI   (1<<0)

Definition at line 51 of file intel_opregion.c.

#define MBOX_ASLE   (1<<2)

Definition at line 53 of file intel_opregion.c.

#define MBOX_SWSCI   (1<<1)

Definition at line 52 of file intel_opregion.c.

#define OPREGION_ACPI_OFFSET   0x100

Definition at line 43 of file intel_opregion.c.

#define OPREGION_ASLE_OFFSET   0x300

Definition at line 47 of file intel_opregion.c.

#define OPREGION_HEADER_OFFSET   0

Definition at line 42 of file intel_opregion.c.

#define OPREGION_SIGNATURE   "IntelGraphicsMem"

Definition at line 50 of file intel_opregion.c.

#define OPREGION_SWSCI_OFFSET   0x200

Definition at line 46 of file intel_opregion.c.

#define OPREGION_VBT_OFFSET   0x400

Definition at line 48 of file intel_opregion.c.

#define PCI_ASLE   0xe4

Definition at line 39 of file intel_opregion.c.

#define PCI_ASLS   0xfc

Definition at line 40 of file intel_opregion.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 28 of file intel_opregion.c.

Function Documentation

struct opregion_header __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int intel_opregion_setup ( struct drm_device dev)

Definition at line 502 of file intel_opregion.c.

Variable Documentation

u32 alsi

Definition at line 115 of file intel_opregion.c.

u32 ardy

Definition at line 112 of file intel_opregion.c.

u32 aslc

Definition at line 113 of file intel_opregion.c.

u32 aslp

Definition at line 95 of file intel_opregion.c.

u16 bclm[20]

Definition at line 119 of file intel_opregion.c.

u32 bclp

Definition at line 116 of file intel_opregion.c.

u8 bios_ver[32]

Definition at line 68 of file intel_opregion.c.

u32 cadl[8]

Definition at line 93 of file intel_opregion.c.

u32 cblv

Definition at line 118 of file intel_opregion.c.

u32 cdck

Definition at line 99 of file intel_opregion.c.

u32 cevt

Definition at line 89 of file intel_opregion.c.

u32 chpd

Definition at line 97 of file intel_opregion.c.

u32 clid

Definition at line 98 of file intel_opregion.c.

u32 cnot

Definition at line 102 of file intel_opregion.c.

u32 cpdl[8]

Definition at line 92 of file intel_opregion.c.

u32 cpfm

Definition at line 120 of file intel_opregion.c.

u32 csts

Definition at line 88 of file intel_opregion.c.

u32 didl[8]

Definition at line 91 of file intel_opregion.c.

u32 drdy

Definition at line 87 of file intel_opregion.c.

u8 driver_ver[16]

Definition at line 70 of file intel_opregion.c.

u32 dslp

Definition at line 97 of file intel_opregion.c.

u32 epfm

Definition at line 121 of file intel_opregion.c.

u32 evts

Definition at line 101 of file intel_opregion.c.

u32 mboxes

Definition at line 71 of file intel_opregion.c.

u32 nadl[8]

Definition at line 94 of file intel_opregion.c.

u32 nrdy

Definition at line 103 of file intel_opregion.c.

u32 opregion_ver

Definition at line 67 of file intel_opregion.c.

u32 parm

Definition at line 96 of file intel_opregion.c.

u32 pfit

Definition at line 117 of file intel_opregion.c.

u32 pfmb

Definition at line 123 of file intel_opregion.c.

u8 plut[74]

Definition at line 122 of file intel_opregion.c.

u8 reserved[164]

Definition at line 72 of file intel_opregion.c.

u8 rsvd[102]

Definition at line 98 of file intel_opregion.c.

u8 rsvd1[20]

Definition at line 90 of file intel_opregion.c.

u8 rsvd2[60]

Definition at line 104 of file intel_opregion.c.

u32 scic

Definition at line 95 of file intel_opregion.c.

u8 signature[16]

Definition at line 65 of file intel_opregion.c.

u32 size

Definition at line 66 of file intel_opregion.c.

u32 sxsw

Definition at line 100 of file intel_opregion.c.

u32 tche

Definition at line 114 of file intel_opregion.c.

u32 tidx

Definition at line 96 of file intel_opregion.c.

u8 vbios_ver[16]

Definition at line 69 of file intel_opregion.c.