Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
auo_k1901fb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/list.h>
#include <linux/firmware.h>
#include <linux/gpio.h>
#include <linux/pm_runtime.h>
#include <video/auo_k190xfb.h>
#include "auo_k190x.h"

Go to the source code of this file.

Macros

#define AUOK1901_CMD_LUT_INTERFACE   0x0005
 
#define AUOK1901_CMD_DMA_START   0x1001
 
#define AUOK1901_CMD_CURSOR_START   0x1007
 
#define AUOK1901_CMD_CURSOR_STOP   AUOK190X_CMD_DATA_STOP
 
#define AUOK1901_CMD_DDMA_START   0x1009
 
#define AUOK1901_INIT_GATE_PULSE_LOW   (0 << 14)
 
#define AUOK1901_INIT_GATE_PULSE_HIGH   (1 << 14)
 
#define AUOK1901_INIT_SINGLE_GATE   (0 << 13)
 
#define AUOK1901_INIT_DOUBLE_GATE   (1 << 13)
 
#define AUOK1901_INIT_FORMAT2   (1 << 7)
 
#define AUOK1901_INIT_FORMAT3   ((1 << 7) | (1 << 6))
 
#define AUOK1901_INIT_FORMAT4   (1 << 8)
 
#define AUOK1901_INIT_FORMAT5   ((1 << 8) | (1 << 6))
 
#define AUOK1901_INIT_FORMAT6   ((1 << 8) | (1 << 7))
 
#define AUOK1901_INIT_FORMAT7   ((1 << 8) | (1 << 7) | (1 << 6))
 
#define AUOK1901_INIT_RESOLUTION(_res)
 
#define AUOK1901_DMA_ROTATE90(_rot)   ((_rot & 1) << 13)
 
#define AUOK1901_DDMA_ROTATE180(_rot)   ((~_rot & 2) << 10)
 

Functions

 module_platform_driver (auok1901fb_driver)
 
 MODULE_DESCRIPTION ("framebuffer driver for the AUO-K1901 EPD controller")
 
 MODULE_AUTHOR ("Heiko Stuebner <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AUOK1901_CMD_CURSOR_START   0x1007

Definition at line 59 of file auo_k1901fb.c.

#define AUOK1901_CMD_CURSOR_STOP   AUOK190X_CMD_DATA_STOP

Definition at line 60 of file auo_k1901fb.c.

#define AUOK1901_CMD_DDMA_START   0x1009

Definition at line 61 of file auo_k1901fb.c.

#define AUOK1901_CMD_DMA_START   0x1001

Definition at line 58 of file auo_k1901fb.c.

#define AUOK1901_CMD_LUT_INTERFACE   0x0005

Definition at line 57 of file auo_k1901fb.c.

#define AUOK1901_DDMA_ROTATE180 (   _rot)    ((~_rot & 2) << 10)

Definition at line 100 of file auo_k1901fb.c.

#define AUOK1901_DMA_ROTATE90 (   _rot)    ((_rot & 1) << 13)

Definition at line 95 of file auo_k1901fb.c.

#define AUOK1901_INIT_DOUBLE_GATE   (1 << 13)

Definition at line 66 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT2   (1 << 7)

Definition at line 79 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT3   ((1 << 7) | (1 << 6))

Definition at line 80 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT4   (1 << 8)

Definition at line 81 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT5   ((1 << 8) | (1 << 6))

Definition at line 82 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT6   ((1 << 8) | (1 << 7))

Definition at line 83 of file auo_k1901fb.c.

#define AUOK1901_INIT_FORMAT7   ((1 << 8) | (1 << 7) | (1 << 6))

Definition at line 84 of file auo_k1901fb.c.

#define AUOK1901_INIT_GATE_PULSE_HIGH   (1 << 14)

Definition at line 64 of file auo_k1901fb.c.

#define AUOK1901_INIT_GATE_PULSE_LOW   (0 << 14)

Definition at line 63 of file auo_k1901fb.c.

#define AUOK1901_INIT_RESOLUTION (   _res)
Value:
(((_res & (1 << 4)) << 6) \
| ((_res & 0xf) << 2))

Definition at line 89 of file auo_k1901fb.c.

#define AUOK1901_INIT_SINGLE_GATE   (0 << 13)

Definition at line 65 of file auo_k1901fb.c.

Function Documentation

MODULE_AUTHOR ( "Heiko Stuebner <[email protected]>"  )
MODULE_DESCRIPTION ( "framebuffer driver for the AUO-K1901 EPD controller )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( auok1901fb_driver  )