Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hpfb.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/delay.h>
#include <linux/init.h>
#include <linux/fb.h>
#include <linux/dio.h>
#include <asm/io.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define TC_NBLANK   0x4080
 
#define TC_WEN   0x4088
 
#define TC_REN   0x408c
 
#define TC_FBEN   0x4090
 
#define TC_PRR   0x40ea
 
#define RR_CLEAR   0x0
 
#define RR_COPY   0x3
 
#define RR_NOOP   0x5
 
#define RR_XOR   0x6
 
#define RR_INVERT   0xa
 
#define RR_COPYINVERTED   0xc
 
#define RR_SET   0xf
 
#define BUSY   0x4044
 
#define WMRR   0x40ef
 
#define SOURCE_X   0x40f2
 
#define SOURCE_Y   0x40f6
 
#define DEST_X   0x40fa
 
#define DEST_Y   0x40fe
 
#define WHEIGHT   0x4106
 
#define WWIDTH   0x4102
 
#define WMOVE   0x409c
 
#define HPFB_FBWMSB   0x05 /* Frame buffer width */
 
#define HPFB_FBWLSB   0x07
 
#define HPFB_FBHMSB   0x09 /* Frame buffer height */
 
#define HPFB_FBHLSB   0x0b
 
#define HPFB_DWMSB   0x0d /* Display width */
 
#define HPFB_DWLSB   0x0f
 
#define HPFB_DHMSB   0x11 /* Display height */
 
#define HPFB_DHLSB   0x13
 
#define HPFB_NUMPLANES   0x5b /* Number of colour planes */
 
#define HPFB_FBOMSB   0x5d /* Frame buffer offset */
 
#define HPFB_FBOLSB   0x5f
 
#define topcat_sid_ok(x)
 
#define INTFBVADDR   0xf0560000
 
#define INTFBPADDR   0x560000
 

Functions

int __init hpfb_init (void)
 
void __exit hpfb_cleanup_module (void)
 
 module_init (hpfb_init)
 
 module_exit (hpfb_cleanup_module)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BUSY   0x4044

Definition at line 49 of file hpfb.c.

#define DEST_X   0x40fa

Definition at line 53 of file hpfb.c.

#define DEST_Y   0x40fe

Definition at line 54 of file hpfb.c.

#define HPFB_DHLSB   0x13

Definition at line 204 of file hpfb.c.

#define HPFB_DHMSB   0x11 /* Display height */

Definition at line 203 of file hpfb.c.

#define HPFB_DWLSB   0x0f

Definition at line 202 of file hpfb.c.

#define HPFB_DWMSB   0x0d /* Display width */

Definition at line 201 of file hpfb.c.

#define HPFB_FBHLSB   0x0b

Definition at line 200 of file hpfb.c.

#define HPFB_FBHMSB   0x09 /* Frame buffer height */

Definition at line 199 of file hpfb.c.

#define HPFB_FBOLSB   0x5f

Definition at line 207 of file hpfb.c.

#define HPFB_FBOMSB   0x5d /* Frame buffer offset */

Definition at line 206 of file hpfb.c.

#define HPFB_FBWLSB   0x07

Definition at line 198 of file hpfb.c.

#define HPFB_FBWMSB   0x05 /* Frame buffer width */

Definition at line 197 of file hpfb.c.

#define HPFB_NUMPLANES   0x5b /* Number of colour planes */

Definition at line 205 of file hpfb.c.

#define INTFBPADDR   0x560000
#define INTFBVADDR   0xf0560000
#define RR_CLEAR   0x0

Definition at line 40 of file hpfb.c.

#define RR_COPY   0x3

Definition at line 41 of file hpfb.c.

#define RR_COPYINVERTED   0xc

Definition at line 45 of file hpfb.c.

#define RR_INVERT   0xa

Definition at line 44 of file hpfb.c.

#define RR_NOOP   0x5

Definition at line 42 of file hpfb.c.

#define RR_SET   0xf

Definition at line 46 of file hpfb.c.

#define RR_XOR   0x6

Definition at line 43 of file hpfb.c.

#define SOURCE_X   0x40f2

Definition at line 51 of file hpfb.c.

#define SOURCE_Y   0x40f6

Definition at line 52 of file hpfb.c.

#define TC_FBEN   0x4090

Definition at line 36 of file hpfb.c.

#define TC_NBLANK   0x4080

Definition at line 33 of file hpfb.c.

#define TC_PRR   0x40ea

Definition at line 37 of file hpfb.c.

#define TC_REN   0x408c

Definition at line 35 of file hpfb.c.

#define TC_WEN   0x4088

Definition at line 34 of file hpfb.c.

#define topcat_sid_ok (   x)
Value:
(((x) == DIO_ID2_LRCATSEYE) || ((x) == DIO_ID2_HRCCATSEYE) \
|| ((x) == DIO_ID2_HRMCATSEYE) || ((x) == DIO_ID2_TOPCAT))

Definition at line 324 of file hpfb.c.

#define WHEIGHT   0x4106

Definition at line 55 of file hpfb.c.

#define WMOVE   0x409c

Definition at line 57 of file hpfb.c.

#define WMRR   0x40ef

Definition at line 50 of file hpfb.c.

#define WWIDTH   0x4102

Definition at line 56 of file hpfb.c.

Function Documentation

void __exit hpfb_cleanup_module ( void  )

Definition at line 423 of file hpfb.c.

int __init hpfb_init ( void  )

Definition at line 379 of file hpfb.c.

module_exit ( hpfb_cleanup_module  )
module_init ( hpfb_init  )
MODULE_LICENSE ( "GPL"  )