Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
appledisplay.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/backlight.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
#include <linux/atomic.h>

Go to the source code of this file.

Data Structures

struct  appledisplay
 

Macros

#define APPLE_VENDOR_ID   0x05AC
 
#define USB_REQ_GET_REPORT   0x01
 
#define USB_REQ_SET_REPORT   0x09
 
#define ACD_USB_TIMEOUT   250
 
#define ACD_USB_EDID   0x0302
 
#define ACD_USB_BRIGHTNESS   0x0310
 
#define ACD_BTN_NONE   0
 
#define ACD_BTN_BRIGHT_UP   3
 
#define ACD_BTN_BRIGHT_DOWN   4
 
#define ACD_URB_BUFFER_LEN   2
 
#define ACD_MSG_BUFFER_LEN   2
 
#define APPLEDISPLAY_DEVICE(prod)
 

Functions

 MODULE_DEVICE_TABLE (usb, appledisplay_table)
 
 MODULE_AUTHOR ("Michael Hanselmann")
 
 MODULE_DESCRIPTION ("Apple Cinema Display driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (appledisplay_init)
 
 module_exit (appledisplay_exit)
 

Macro Definition Documentation

#define ACD_BTN_BRIGHT_DOWN   4

Definition at line 46 of file appledisplay.c.

#define ACD_BTN_BRIGHT_UP   3

Definition at line 45 of file appledisplay.c.

#define ACD_BTN_NONE   0

Definition at line 44 of file appledisplay.c.

#define ACD_MSG_BUFFER_LEN   2

Definition at line 49 of file appledisplay.c.

#define ACD_URB_BUFFER_LEN   2

Definition at line 48 of file appledisplay.c.

#define ACD_USB_BRIGHTNESS   0x0310

Definition at line 42 of file appledisplay.c.

#define ACD_USB_EDID   0x0302

Definition at line 41 of file appledisplay.c.

#define ACD_USB_TIMEOUT   250

Definition at line 39 of file appledisplay.c.

#define APPLE_VENDOR_ID   0x05AC

Definition at line 34 of file appledisplay.c.

#define APPLEDISPLAY_DEVICE (   prod)
Value:
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
USB_DEVICE_ID_MATCH_INT_CLASS | \
USB_DEVICE_ID_MATCH_INT_PROTOCOL, \
.idVendor = APPLE_VENDOR_ID, \
.idProduct = (prod), \

Definition at line 51 of file appledisplay.c.

#define USB_REQ_GET_REPORT   0x01

Definition at line 36 of file appledisplay.c.

#define USB_REQ_SET_REPORT   0x09

Definition at line 37 of file appledisplay.c.

Function Documentation

MODULE_AUTHOR ( "Michael Hanselmann"  )
MODULE_DESCRIPTION ( "Apple Cinema Display driver )
MODULE_DEVICE_TABLE ( usb  ,
appledisplay_table   
)
module_exit ( appledisplay_exit  )
module_init ( appledisplay_init  )
MODULE_LICENSE ( "GPL"  )