Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
video.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/input.h>
#include <linux/backlight.h>
#include <linux/thermal.h>
#include <linux/sort.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/slab.h>
#include <asm/uaccess.h>
#include <linux/dmi.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
#include <linux/suspend.h>
#include <acpi/video.h>

Go to the source code of this file.

Data Structures

struct  acpi_video_bus_flags
 
struct  acpi_video_bus_cap
 
struct  acpi_video_device_attrib
 
struct  acpi_video_enumerated_device
 
struct  acpi_video_bus
 
struct  acpi_video_device_flags
 
struct  acpi_video_device_cap
 
struct  acpi_video_brightness_flags
 
struct  acpi_video_device_brightness
 
struct  acpi_video_device
 

Macros

#define PREFIX   "ACPI: "
 
#define ACPI_VIDEO_BUS_NAME   "Video Bus"
 
#define ACPI_VIDEO_DEVICE_NAME   "Video Device"
 
#define ACPI_VIDEO_NOTIFY_SWITCH   0x80
 
#define ACPI_VIDEO_NOTIFY_PROBE   0x81
 
#define ACPI_VIDEO_NOTIFY_CYCLE   0x82
 
#define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT   0x83
 
#define ACPI_VIDEO_NOTIFY_PREV_OUTPUT   0x84
 
#define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS   0x85
 
#define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS   0x86
 
#define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS   0x87
 
#define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS   0x88
 
#define ACPI_VIDEO_NOTIFY_DISPLAY_OFF   0x89
 
#define MAX_NAME_LEN   20
 
#define _COMPONENT   ACPI_VIDEO_COMPONENT
 

Functions

 ACPI_MODULE_NAME ("video")
 
 MODULE_AUTHOR ("Bruno Ducrot")
 
 MODULE_DESCRIPTION ("ACPI Video Driver")
 
 MODULE_LICENSE ("GPL")
 
 module_param (brightness_switch_enabled, bool, 0644)
 
 module_param (allow_duplicates, bool, 0644)
 
 module_param (use_bios_initial_backlight, bool, 0644)
 
 MODULE_DEVICE_TABLE (acpi, video_device_ids)
 
int acpi_video_get_edid (struct acpi_device *device, int type, int device_id, void **edid)
 
 EXPORT_SYMBOL (acpi_video_get_edid)
 
int acpi_video_register (void)
 
 EXPORT_SYMBOL (acpi_video_register)
 
void acpi_video_unregister (void)
 
 EXPORT_SYMBOL (acpi_video_unregister)
 
 module_init (acpi_video_init)
 
 module_exit (acpi_video_exit)
 

Macro Definition Documentation

#define _COMPONENT   ACPI_VIDEO_COMPONENT

Definition at line 65 of file video.c.

#define ACPI_VIDEO_BUS_NAME   "Video Bus"

Definition at line 49 of file video.c.

#define ACPI_VIDEO_DEVICE_NAME   "Video Device"

Definition at line 50 of file video.c.

#define ACPI_VIDEO_NOTIFY_CYCLE   0x82

Definition at line 53 of file video.c.

#define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS   0x85

Definition at line 57 of file video.c.

#define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS   0x87

Definition at line 59 of file video.c.

#define ACPI_VIDEO_NOTIFY_DISPLAY_OFF   0x89

Definition at line 61 of file video.c.

#define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS   0x86

Definition at line 58 of file video.c.

#define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT   0x83

Definition at line 54 of file video.c.

#define ACPI_VIDEO_NOTIFY_PREV_OUTPUT   0x84

Definition at line 55 of file video.c.

#define ACPI_VIDEO_NOTIFY_PROBE   0x81

Definition at line 52 of file video.c.

#define ACPI_VIDEO_NOTIFY_SWITCH   0x80

Definition at line 51 of file video.c.

#define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS   0x88

Definition at line 60 of file video.c.

#define MAX_NAME_LEN   20

Definition at line 63 of file video.c.

#define PREFIX   "ACPI: "

Definition at line 47 of file video.c.

Function Documentation

ACPI_MODULE_NAME ( "video"  )
int acpi_video_get_edid ( struct acpi_device *  device,
int  type,
int  device_id,
void **  edid 
)

Definition at line 1290 of file video.c.

int acpi_video_register ( void  )

Definition at line 1796 of file video.c.

void acpi_video_unregister ( void  )

Definition at line 1821 of file video.c.

EXPORT_SYMBOL ( acpi_video_get_edid  )
EXPORT_SYMBOL ( acpi_video_register  )
EXPORT_SYMBOL ( acpi_video_unregister  )
MODULE_AUTHOR ( "Bruno Ducrot"  )
MODULE_DESCRIPTION ( "ACPI Video Driver"  )
MODULE_DEVICE_TABLE ( acpi  ,
video_device_ids   
)
module_exit ( acpi_video_exit  )
module_init ( acpi_video_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( brightness_switch_enabled  ,
bool  ,
0644   
)
module_param ( allow_duplicates  ,
bool  ,
0644   
)
module_param ( use_bios_initial_backlight  ,
bool  ,
0644   
)