Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
au1200fb.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ctype.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-au1x00/au1200fb.h>
#include "au1200fb.h"

Go to the source code of this file.

Data Structures

struct  au1200_lcd_global_regs_t
 
struct  au1200_lcd_window_regs_t
 
struct  au1200_lcd_iodata_t
 
struct  au1200fb_device
 
struct  window_settings
 
struct  panel_settings
 

Macros

#define DRIVER_NAME   "au1200fb"
 
#define DRIVER_DESC   "LCD controller driver for AU1200 processors"
 
#define DEBUG   0
 
#define print_err(f, arg...)   printk(KERN_ERR DRIVER_NAME ": " f "\n", ## arg)
 
#define print_warn(f, arg...)   printk(KERN_WARNING DRIVER_NAME ": " f "\n", ## arg)
 
#define print_info(f, arg...)   printk(KERN_INFO DRIVER_NAME ": " f "\n", ## arg)
 
#define print_dbg(f, arg...)   do {} while (0)
 
#define AU1200_LCD_FB_IOCTL   0x46FF
 
#define AU1200_LCD_SET_SCREEN   1
 
#define AU1200_LCD_GET_SCREEN   2
 
#define AU1200_LCD_SET_WINDOW   3
 
#define AU1200_LCD_GET_WINDOW   4
 
#define AU1200_LCD_SET_PANEL   5
 
#define AU1200_LCD_GET_PANEL   6
 
#define SCREEN_SIZE   (1<< 1)
 
#define SCREEN_BACKCOLOR   (1<< 2)
 
#define SCREEN_BRIGHTNESS   (1<< 3)
 
#define SCREEN_COLORKEY   (1<< 4)
 
#define SCREEN_MASK   (1<< 5)
 
#define WIN_POSITION   (1<< 0)
 
#define WIN_ALPHA_COLOR   (1<< 1)
 
#define WIN_ALPHA_MODE   (1<< 2)
 
#define WIN_PRIORITY   (1<< 3)
 
#define WIN_CHANNEL   (1<< 4)
 
#define WIN_BUFFER_FORMAT   (1<< 5)
 
#define WIN_COLOR_ORDER   (1<< 6)
 
#define WIN_PIXEL_ORDER   (1<< 7)
 
#define WIN_SIZE   (1<< 8)
 
#define WIN_COLORKEY_MODE   (1<< 9)
 
#define WIN_DOUBLE_BUFFER_MODE   (1<< 10)
 
#define WIN_RAM_ARRAY_MODE   (1<< 11)
 
#define WIN_BUFFER_SCALE   (1<< 12)
 
#define WIN_ENABLE   (1<< 13)
 
#define LCD_CONTROL_DEFAULT_PO   LCD_CONTROL_PO_00
 
#define LCD_CONTROL_DEFAULT_SBPPF   LCD_CONTROL_SBPPF_565
 
#define AU1200_LCD_MAX_XRES   1280
 
#define AU1200_LCD_MAX_YRES   1024
 
#define AU1200_LCD_MAX_BPP   32
 
#define AU1200_LCD_MAX_CLK   96000000 /* fixme: this needs to go away ? */
 
#define AU1200_LCD_NBR_PALETTE_ENTRIES   256
 
#define AU1200FB_NBR_VIDEO_BUFFERS   1
 
#define MAX_DEVICE_COUNT   4
 
#define DEFAULT_WINDOW_INDEX   2
 
#define LCD_WINCTRL1_PO_16BPP   LCD_WINCTRL1_PO_01
 
#define Xres   min_xres
 
#define Yres   min_yres
 
#define NUM_PANELS   (ARRAY_SIZE(known_lcd_panels))
 
#define panel_is_color(panel)   ((panel->mode_screen & LCD_SCREEN_PT) <= LCD_SCREEN_PT_CDSTN)
 
#define AU1200FB_PMOPS   NULL
 

Functions

 module_init (au1200fb_init)
 
 module_exit (au1200fb_cleanup)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AU1200_LCD_FB_IOCTL   0x46FF

Definition at line 66 of file au1200fb.c.

#define AU1200_LCD_GET_PANEL   6

Definition at line 73 of file au1200fb.c.

#define AU1200_LCD_GET_SCREEN   2

Definition at line 69 of file au1200fb.c.

#define AU1200_LCD_GET_WINDOW   4

Definition at line 71 of file au1200fb.c.

#define AU1200_LCD_MAX_BPP   32

Definition at line 160 of file au1200fb.c.

#define AU1200_LCD_MAX_CLK   96000000 /* fixme: this needs to go away ? */

Definition at line 161 of file au1200fb.c.

#define AU1200_LCD_MAX_XRES   1280

Definition at line 158 of file au1200fb.c.

#define AU1200_LCD_MAX_YRES   1024

Definition at line 159 of file au1200fb.c.

#define AU1200_LCD_NBR_PALETTE_ENTRIES   256

Definition at line 162 of file au1200fb.c.

#define AU1200_LCD_SET_PANEL   5

Definition at line 72 of file au1200fb.c.

#define AU1200_LCD_SET_SCREEN   1

Definition at line 68 of file au1200fb.c.

#define AU1200_LCD_SET_WINDOW   3

Definition at line 70 of file au1200fb.c.

#define AU1200FB_NBR_VIDEO_BUFFERS   1

Definition at line 165 of file au1200fb.c.

#define AU1200FB_PMOPS   NULL

Definition at line 1869 of file au1200fb.c.

#define DEBUG   0

Definition at line 53 of file au1200fb.c.

#define DEFAULT_WINDOW_INDEX   2

Definition at line 171 of file au1200fb.c.

#define DRIVER_DESC   "LCD controller driver for AU1200 processors"

Definition at line 51 of file au1200fb.c.

#define DRIVER_NAME   "au1200fb"

Definition at line 50 of file au1200fb.c.

#define LCD_CONTROL_DEFAULT_PO   LCD_CONTROL_PO_00

Definition at line 140 of file au1200fb.c.

#define LCD_CONTROL_DEFAULT_SBPPF   LCD_CONTROL_SBPPF_565

Definition at line 142 of file au1200fb.c.

#define LCD_WINCTRL1_PO_16BPP   LCD_WINCTRL1_PO_01

Definition at line 203 of file au1200fb.c.

#define MAX_DEVICE_COUNT   4

Definition at line 168 of file au1200fb.c.

#define NUM_PANELS   (ARRAY_SIZE(known_lcd_panels))

Definition at line 657 of file au1200fb.c.

#define panel_is_color (   panel)    ((panel->mode_screen & LCD_SCREEN_PT) <= LCD_SCREEN_PT_CDSTN)

Definition at line 968 of file au1200fb.c.

#define print_dbg (   f,
  arg... 
)    do {} while (0)

Definition at line 62 of file au1200fb.c.

#define print_err (   f,
  arg... 
)    printk(KERN_ERR DRIVER_NAME ": " f "\n", ## arg)

Definition at line 55 of file au1200fb.c.

#define print_info (   f,
  arg... 
)    printk(KERN_INFO DRIVER_NAME ": " f "\n", ## arg)

Definition at line 57 of file au1200fb.c.

#define print_warn (   f,
  arg... 
)    printk(KERN_WARNING DRIVER_NAME ": " f "\n", ## arg)

Definition at line 56 of file au1200fb.c.

#define SCREEN_BACKCOLOR   (1<< 2)

Definition at line 76 of file au1200fb.c.

#define SCREEN_BRIGHTNESS   (1<< 3)

Definition at line 77 of file au1200fb.c.

#define SCREEN_COLORKEY   (1<< 4)

Definition at line 78 of file au1200fb.c.

#define SCREEN_MASK   (1<< 5)

Definition at line 79 of file au1200fb.c.

#define SCREEN_SIZE   (1<< 1)

Definition at line 75 of file au1200fb.c.

#define WIN_ALPHA_COLOR   (1<< 1)

Definition at line 95 of file au1200fb.c.

#define WIN_ALPHA_MODE   (1<< 2)

Definition at line 96 of file au1200fb.c.

#define WIN_BUFFER_FORMAT   (1<< 5)

Definition at line 99 of file au1200fb.c.

#define WIN_BUFFER_SCALE   (1<< 12)

Definition at line 106 of file au1200fb.c.

#define WIN_CHANNEL   (1<< 4)

Definition at line 98 of file au1200fb.c.

#define WIN_COLOR_ORDER   (1<< 6)

Definition at line 100 of file au1200fb.c.

#define WIN_COLORKEY_MODE   (1<< 9)

Definition at line 103 of file au1200fb.c.

#define WIN_DOUBLE_BUFFER_MODE   (1<< 10)

Definition at line 104 of file au1200fb.c.

#define WIN_ENABLE   (1<< 13)

Definition at line 107 of file au1200fb.c.

#define WIN_PIXEL_ORDER   (1<< 7)

Definition at line 101 of file au1200fb.c.

#define WIN_POSITION   (1<< 0)

Definition at line 94 of file au1200fb.c.

#define WIN_PRIORITY   (1<< 3)

Definition at line 97 of file au1200fb.c.

#define WIN_RAM_ARRAY_MODE   (1<< 11)

Definition at line 105 of file au1200fb.c.

#define WIN_SIZE   (1<< 8)

Definition at line 102 of file au1200fb.c.

#define Xres   min_xres

Definition at line 336 of file au1200fb.c.

#define Yres   min_yres

Definition at line 337 of file au1200fb.c.

Function Documentation

MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( au1200fb_cleanup  )
module_init ( au1200fb_init  )
MODULE_LICENSE ( "GPL"  )