Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cr_bllcd.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <linux/fb.h>
#include <linux/backlight.h>
#include <linux/lcd.h>
#include <linux/pci.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  cr_panel
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define CRVML_DEVICE_LPC   0x27B8
 
#define CRVML_REG_GPIOBAR   0x48
 
#define CRVML_REG_GPIOEN   0x4C
 
#define CRVML_GPIOEN_BIT   (1 << 4)
 
#define CRVML_PANEL_PORT   0x38
 
#define CRVML_LVDS_ON   0x00000001
 
#define CRVML_PANEL_ON   0x00000002
 
#define CRVML_BACKLIGHT_OFF   0x00000004
 
#define CRVML_DEVICE_MCH   0x5001
 
#define CRVML_REG_MCHBAR   0x44
 
#define CRVML_REG_MCHEN   0x54
 
#define CRVML_MCHEN_BIT   (1 << 28)
 
#define CRVML_MCHMAP_SIZE   4096
 
#define CRVML_REG_CLOCK   0xc3c
 
#define CRVML_CLOCK_SHIFT   8
 
#define CRVML_CLOCK_MASK   0x00000f00
 

Functions

 module_init (cr_backlight_init)
 
 module_exit (cr_backlight_exit)
 
 MODULE_AUTHOR ("Tungsten Graphics Inc.")
 
 MODULE_DESCRIPTION ("Carillo Ranch Backlight Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CRVML_BACKLIGHT_OFF   0x00000004

Definition at line 54 of file cr_bllcd.c.

#define CRVML_CLOCK_MASK   0x00000f00

Definition at line 64 of file cr_bllcd.c.

#define CRVML_CLOCK_SHIFT   8

Definition at line 63 of file cr_bllcd.c.

#define CRVML_DEVICE_LPC   0x27B8

Definition at line 47 of file cr_bllcd.c.

#define CRVML_DEVICE_MCH   0x5001

Definition at line 57 of file cr_bllcd.c.

#define CRVML_GPIOEN_BIT   (1 << 4)

Definition at line 50 of file cr_bllcd.c.

#define CRVML_LVDS_ON   0x00000001

Definition at line 52 of file cr_bllcd.c.

#define CRVML_MCHEN_BIT   (1 << 28)

Definition at line 60 of file cr_bllcd.c.

#define CRVML_MCHMAP_SIZE   4096

Definition at line 61 of file cr_bllcd.c.

#define CRVML_PANEL_ON   0x00000002

Definition at line 53 of file cr_bllcd.c.

#define CRVML_PANEL_PORT   0x38

Definition at line 51 of file cr_bllcd.c.

#define CRVML_REG_CLOCK   0xc3c

Definition at line 62 of file cr_bllcd.c.

#define CRVML_REG_GPIOBAR   0x48

Definition at line 48 of file cr_bllcd.c.

#define CRVML_REG_GPIOEN   0x4C

Definition at line 49 of file cr_bllcd.c.

#define CRVML_REG_MCHBAR   0x44

Definition at line 58 of file cr_bllcd.c.

#define CRVML_REG_MCHEN   0x54

Definition at line 59 of file cr_bllcd.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 30 of file cr_bllcd.c.

Function Documentation

MODULE_AUTHOR ( "Tungsten Graphics Inc."  )
MODULE_DESCRIPTION ( "Carillo Ranch Backlight Driver"  )
module_exit ( cr_backlight_exit  )
module_init ( cr_backlight_init  )
MODULE_LICENSE ( "GPL"  )