Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nouveau_acpi.c File Reference
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <acpi/acpi_drivers.h>
#include <acpi/acpi_bus.h>
#include <acpi/video.h>
#include <acpi/acpi.h>
#include <linux/mxm-wmi.h>
#include <linux/vga_switcheroo.h>
#include <drm/drm_edid.h>
#include "nouveau_drm.h"
#include "nouveau_acpi.h"

Go to the source code of this file.

Data Structures

struct  nouveau_dsm_priv
 

Macros

#define NOUVEAU_DSM_LED   0x02
 
#define NOUVEAU_DSM_LED_STATE   0x00
 
#define NOUVEAU_DSM_LED_OFF   0x10
 
#define NOUVEAU_DSM_LED_STAMINA   0x11
 
#define NOUVEAU_DSM_LED_SPEED   0x12
 
#define NOUVEAU_DSM_POWER   0x03
 
#define NOUVEAU_DSM_POWER_STATE   0x00
 
#define NOUVEAU_DSM_POWER_SPEED   0x01
 
#define NOUVEAU_DSM_POWER_STAMINA   0x02
 
#define NOUVEAU_DSM_OPTIMUS_FN   0x1A
 
#define NOUVEAU_DSM_OPTIMUS_ARGS   0x03000001
 
#define NOUVEAU_DSM_HAS_MUX   0x1
 
#define NOUVEAU_DSM_HAS_OPT   0x2
 

Functions

void nouveau_register_dsm_handler (void)
 
void nouveau_switcheroo_optimus_dsm (void)
 
void nouveau_unregister_dsm_handler (void)
 
bool nouveau_acpi_rom_supported (struct pci_dev *pdev)
 
int nouveau_acpi_get_bios_chunk (uint8_t *bios, int offset, int len)
 
voidnouveau_acpi_edid (struct drm_device *dev, struct drm_connector *connector)
 

Macro Definition Documentation

#define NOUVEAU_DSM_HAS_MUX   0x1

Definition at line 38 of file nouveau_acpi.c.

#define NOUVEAU_DSM_HAS_OPT   0x2

Definition at line 39 of file nouveau_acpi.c.

#define NOUVEAU_DSM_LED   0x02

Definition at line 17 of file nouveau_acpi.c.

#define NOUVEAU_DSM_LED_OFF   0x10

Definition at line 19 of file nouveau_acpi.c.

#define NOUVEAU_DSM_LED_SPEED   0x12

Definition at line 21 of file nouveau_acpi.c.

#define NOUVEAU_DSM_LED_STAMINA   0x11

Definition at line 20 of file nouveau_acpi.c.

#define NOUVEAU_DSM_LED_STATE   0x00

Definition at line 18 of file nouveau_acpi.c.

#define NOUVEAU_DSM_OPTIMUS_ARGS   0x03000001

Definition at line 29 of file nouveau_acpi.c.

#define NOUVEAU_DSM_OPTIMUS_FN   0x1A

Definition at line 28 of file nouveau_acpi.c.

#define NOUVEAU_DSM_POWER   0x03

Definition at line 23 of file nouveau_acpi.c.

#define NOUVEAU_DSM_POWER_SPEED   0x01

Definition at line 25 of file nouveau_acpi.c.

#define NOUVEAU_DSM_POWER_STAMINA   0x02

Definition at line 26 of file nouveau_acpi.c.

#define NOUVEAU_DSM_POWER_STATE   0x00

Definition at line 24 of file nouveau_acpi.c.

Function Documentation

void* nouveau_acpi_edid ( struct drm_device dev,
struct drm_connector connector 
)

Definition at line 390 of file nouveau_acpi.c.

int nouveau_acpi_get_bios_chunk ( uint8_t bios,
int  offset,
int  len 
)

Definition at line 384 of file nouveau_acpi.c.

bool nouveau_acpi_rom_supported ( struct pci_dev pdev)

Definition at line 364 of file nouveau_acpi.c.

void nouveau_register_dsm_handler ( void  )

Definition at line 307 of file nouveau_acpi.c.

void nouveau_switcheroo_optimus_dsm ( void  )

Definition at line 319 of file nouveau_acpi.c.

void nouveau_unregister_dsm_handler ( void  )

Definition at line 329 of file nouveau_acpi.c.