Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ps3fb.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/interrupt.h>
#include <linux/console.h>
#include <linux/ioctl.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/uaccess.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <asm/cell-regs.h>
#include <asm/lv1call.h>
#include <asm/ps3av.h>
#include <asm/ps3fb.h>
#include <asm/ps3.h>
#include <asm/ps3gpu.h>

Go to the source code of this file.

Data Structures

struct  display_head
 
struct  gpu_irq
 
struct  gpu_driver_info
 
struct  ps3fb_priv
 
struct  ps3fb_par
 

Macros

#define DEVICE_NAME   "ps3fb"
 
#define GPU_CMD_BUF_SIZE   (2 * 1024 * 1024)
 
#define GPU_FB_START   (64 * 1024)
 
#define GPU_IOIF   (0x0d000000UL)
 
#define GPU_ALIGN_UP(x)   _ALIGN_UP((x), 64)
 
#define GPU_MAX_LINE_LENGTH   (65536 - 64)
 
#define GPU_INTR_STATUS_VSYNC_0   0 /* vsync on head A */
 
#define GPU_INTR_STATUS_VSYNC_1   1 /* vsync on head B */
 
#define GPU_INTR_STATUS_FLIP_0   3 /* flip head A */
 
#define GPU_INTR_STATUS_FLIP_1   4 /* flip head B */
 
#define GPU_INTR_STATUS_QUEUE_0   5 /* queue head A */
 
#define GPU_INTR_STATUS_QUEUE_1   6 /* queue head B */
 
#define GPU_DRIVER_INFO_VERSION   0x211
 
#define FIRST_NATIVE_MODE_INDEX   10
 
#define HEAD_A
 
#define HEAD_B
 
#define BPP   4 /* number of bytes per pixel */
 

Functions

 module_param (ps3fb_mode, int, 0)
 
 module_init (ps3fb_init)
 
 module_exit (ps3fb_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("PS3 GPU Frame Buffer Driver")
 
 MODULE_AUTHOR ("Sony Computer Entertainment Inc.")
 
 MODULE_ALIAS (PS3_MODULE_ALIAS_GPU_FB)
 

Macro Definition Documentation

#define BPP   4 /* number of bytes per pixel */

Definition at line 256 of file ps3fb.c.

#define DEVICE_NAME   "ps3fb"

Definition at line 42 of file ps3fb.c.

#define FIRST_NATIVE_MODE_INDEX   10

Definition at line 137 of file ps3fb.c.

#define GPU_ALIGN_UP (   x)    _ALIGN_UP((x), 64)

Definition at line 47 of file ps3fb.c.

#define GPU_CMD_BUF_SIZE   (2 * 1024 * 1024)

Definition at line 44 of file ps3fb.c.

#define GPU_DRIVER_INFO_VERSION   0x211

Definition at line 57 of file ps3fb.c.

#define GPU_FB_START   (64 * 1024)

Definition at line 45 of file ps3fb.c.

#define GPU_INTR_STATUS_FLIP_0   3 /* flip head A */

Definition at line 52 of file ps3fb.c.

#define GPU_INTR_STATUS_FLIP_1   4 /* flip head B */

Definition at line 53 of file ps3fb.c.

#define GPU_INTR_STATUS_QUEUE_0   5 /* queue head A */

Definition at line 54 of file ps3fb.c.

#define GPU_INTR_STATUS_QUEUE_1   6 /* queue head B */

Definition at line 55 of file ps3fb.c.

#define GPU_INTR_STATUS_VSYNC_0   0 /* vsync on head A */

Definition at line 50 of file ps3fb.c.

#define GPU_INTR_STATUS_VSYNC_1   1 /* vsync on head B */

Definition at line 51 of file ps3fb.c.

#define GPU_IOIF   (0x0d000000UL)

Definition at line 46 of file ps3fb.c.

#define GPU_MAX_LINE_LENGTH   (65536 - 64)

Definition at line 48 of file ps3fb.c.

#define HEAD_A

Definition at line 253 of file ps3fb.c.

#define HEAD_B

Definition at line 254 of file ps3fb.c.

Function Documentation

MODULE_ALIAS ( PS3_MODULE_ALIAS_GPU_FB  )
MODULE_AUTHOR ( "Sony Computer Entertainment Inc."  )
MODULE_DESCRIPTION ( "PS3 GPU Frame Buffer Driver"  )
module_exit ( ps3fb_exit  )
module_init ( ps3fb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( ps3fb_mode  ,
int  ,
 
)