#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/fb.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
#include <linux/of_device.h>
#include <asm/io.h>
#include <asm/fbio.h>
#include "sbuslib.h"
Go to the source code of this file.
#define CG14_CCR_ENABLE 0x04 |
#define CG14_CCR_SELECT 0x02 /* HW/Full screen */ |
#define CG14_FLAG_BLANKED 0x00000001 |
#define CG14_MCR_INTENABLE_MASK 0x80 |
#define CG14_MCR_INTENABLE_SHIFT 7 |
#define CG14_MCR_PIXMODE_16 2 |
#define CG14_MCR_PIXMODE_32 3 |
#define CG14_MCR_PIXMODE_8 0 |
#define CG14_MCR_PIXMODE_MASK 0x30 |
#define CG14_MCR_PIXMODE_SHIFT 4 |
#define CG14_MCR_RESET_MASK 0x01 |
#define CG14_MCR_RESET_SHIFT 0 |
#define CG14_MCR_TMENABLE_MASK 0x02 |
#define CG14_MCR_TMENABLE_SHIFT 1 |
#define CG14_MCR_TMR_MASK 0x0c |
#define CG14_MCR_TMR_SHIFT 2 |
#define CG14_MCR_VIDENABLE_MASK 0x40 |
#define CG14_MCR_VIDENABLE_SHIFT 6 |
#define CG14_MMAP_ENTRIES 16 |
#define CG14_REV_IMPL_MASK 0x0f |
#define CG14_REV_IMPL_SHIFT 0 |
#define CG14_REV_REVISION_MASK 0xf0 |
#define CG14_REV_REVISION_SHIFT 4 |
#define CG14_VBR_FRAMEBASE_MASK 0x00fff000 |
#define CG14_VBR_FRAMEBASE_SHIFT 12 |
#define CG14_VCA_8MB_MASK 0x00002000 |
#define CG14_VCA_8MB_SHIFT 13 |
#define CG14_VCA_CAD_MASK 0x000003ff |
#define CG14_VCA_CAD_SHIFT 0 |
#define CG14_VCA_RAMSPEED_MASK 0x00001000 |
#define CG14_VCA_RAMSPEED_SHIFT 12 |
#define CG14_VCA_VERS_MASK 0x00000c00 |
#define CG14_VCA_VERS_SHIFT 10 |
#define CG14_VCR1_REFRESHENA_MASK 0x00000400 |
#define CG14_VCR1_REFRESHENA_SHIFT 10 |
#define CG14_VCR_REFRESHREQ_MASK 0x000003ff |
#define CG14_VCR_REFRESHREQ_SHIFT 0 |
#define CG14_VMCR1_SETUP_MASK 0x000001ff |
#define CG14_VMCR1_SETUP_SHIFT 0 |
#define CG14_VMCR1_VCONFIG_MASK 0x00000e00 |
#define CG14_VMCR1_VCONFIG_SHIFT 9 |
#define CG14_VMCR2_FBCONFIG_MASK 0x0000000c |
#define CG14_VMCR2_FBCONFIG_SHIFT 2 |
#define CG14_VMCR2_REFRESH_MASK 0x00000001 |
#define CG14_VMCR2_REFRESH_SHIFT 0 |
#define CG14_VMCR2_TESTROWCNT_MASK 0x00000002 |
#define CG14_VMCR2_TESTROWCNT_SHIFT 1 |
MODULE_DESCRIPTION |
( |
"framebuffer driver for CGfourteen chipsets" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
cg14_match |
|
|
) |
| |
module_exit |
( |
cg14_exit |
| ) |
|
module_init |
( |
cg14_init |
| ) |
|