Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
arv.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/videodev2.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-fh.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include <asm/m32r.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  ar
 

Macros

#define DEBUG(n, args...)
 
#define CHECK_LOST   0
 
#define USE_INT   0 /* Don't modify */
 
#define VERSION   "0.0.5"
 
#define ar_inl(addr)   inl((unsigned long)(addr))
 
#define ar_outl(val, addr)   outl((unsigned long)(val), (unsigned long)(addr))
 
#define AR_WIDTH_VGA   640
 
#define AR_HEIGHT_VGA   480
 
#define AR_WIDTH_QVGA   320
 
#define AR_HEIGHT_QVGA   240
 
#define MIN_AR_WIDTH   AR_WIDTH_QVGA
 
#define MIN_AR_HEIGHT   AR_HEIGHT_QVGA
 
#define MAX_AR_WIDTH   AR_WIDTH_VGA
 
#define MAX_AR_HEIGHT   AR_HEIGHT_VGA
 
#define AR_BITS_PER_PIXEL   16
 
#define AR_BYTES_PER_PIXEL   (AR_BITS_PER_PIXEL / 8)
 
#define AR_LINE_BYTES_VGA   (AR_WIDTH_VGA * AR_BYTES_PER_PIXEL)
 
#define AR_LINE_BYTES_QVGA   (AR_WIDTH_QVGA * AR_BYTES_PER_PIXEL)
 
#define MAX_AR_LINE_BYTES   AR_LINE_BYTES_VGA
 
#define AR_FRAME_BYTES_VGA   (AR_WIDTH_VGA * AR_HEIGHT_VGA * AR_BYTES_PER_PIXEL)
 
#define AR_FRAME_BYTES_QVGA   (AR_WIDTH_QVGA * AR_HEIGHT_QVGA * AR_BYTES_PER_PIXEL)
 
#define MAX_AR_FRAME_BYTES   (MAX_AR_WIDTH * MAX_AR_HEIGHT * AR_BYTES_PER_PIXEL)
 
#define AR_MAX_FRAME   15
 
#define AR_SIZE_VGA   0
 
#define AR_SIZE_QVGA   1
 
#define AR_MODE_INTERLACE   0
 
#define AR_MODE_NORMAL   1
 
#define DEFAULT_FREQ   50 /* 50 or 75 (MHz) is available as BCLK */
 
#define ALIGN4(x)   ((((int)(x)) & 0x3) == 0)
 

Functions

 module_param (freq, int, 0)
 
 module_param (vga, int, 0)
 
 module_param (vga_interlace, int, 0)
 
 module_init (ar_init_module)
 
 module_exit (ar_cleanup_module)
 
 MODULE_AUTHOR ("Takeo Takahashi <[email protected]>")
 
 MODULE_DESCRIPTION ("Colour AR M64278(VGA) for Video4Linux")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (VERSION)
 

Variables

struct cpuinfo_m32r boot_cpu_data
 

Macro Definition Documentation

#define ALIGN4 (   x)    ((((int)(x)) & 0x3) == 0)

Definition at line 731 of file arv.c.

#define AR_BITS_PER_PIXEL   16

Definition at line 83 of file arv.c.

#define AR_BYTES_PER_PIXEL   (AR_BITS_PER_PIXEL / 8)

Definition at line 84 of file arv.c.

#define AR_FRAME_BYTES_QVGA   (AR_WIDTH_QVGA * AR_HEIGHT_QVGA * AR_BYTES_PER_PIXEL)

Definition at line 94 of file arv.c.

#define AR_FRAME_BYTES_VGA   (AR_WIDTH_VGA * AR_HEIGHT_VGA * AR_BYTES_PER_PIXEL)

Definition at line 92 of file arv.c.

#define AR_HEIGHT_QVGA   240

Definition at line 76 of file arv.c.

#define AR_HEIGHT_VGA   480

Definition at line 74 of file arv.c.

#define ar_inl (   addr)    inl((unsigned long)(addr))

Definition at line 59 of file arv.c.

#define AR_LINE_BYTES_QVGA   (AR_WIDTH_QVGA * AR_BYTES_PER_PIXEL)

Definition at line 88 of file arv.c.

#define AR_LINE_BYTES_VGA   (AR_WIDTH_VGA * AR_BYTES_PER_PIXEL)

Definition at line 87 of file arv.c.

#define AR_MAX_FRAME   15

Definition at line 99 of file arv.c.

#define AR_MODE_INTERLACE   0

Definition at line 106 of file arv.c.

#define AR_MODE_NORMAL   1

Definition at line 107 of file arv.c.

#define ar_outl (   val,
  addr 
)    outl((unsigned long)(val), (unsigned long)(addr))

Definition at line 60 of file arv.c.

#define AR_SIZE_QVGA   1

Definition at line 103 of file arv.c.

#define AR_SIZE_VGA   0

Definition at line 102 of file arv.c.

#define AR_WIDTH_QVGA   320

Definition at line 75 of file arv.c.

#define AR_WIDTH_VGA   640

Definition at line 73 of file arv.c.

#define CHECK_LOST   0

Definition at line 48 of file arv.c.

#define DEBUG (   n,
  args... 
)

Definition at line 47 of file arv.c.

#define DEFAULT_FREQ   50 /* 50 or 75 (MHz) is available as BCLK */

Definition at line 132 of file arv.c.

#define MAX_AR_FRAME_BYTES   (MAX_AR_WIDTH * MAX_AR_HEIGHT * AR_BYTES_PER_PIXEL)

Definition at line 96 of file arv.c.

#define MAX_AR_HEIGHT   AR_HEIGHT_VGA

Definition at line 80 of file arv.c.

#define MAX_AR_LINE_BYTES   AR_LINE_BYTES_VGA

Definition at line 89 of file arv.c.

#define MAX_AR_WIDTH   AR_WIDTH_VGA

Definition at line 79 of file arv.c.

#define MIN_AR_HEIGHT   AR_HEIGHT_QVGA

Definition at line 78 of file arv.c.

#define MIN_AR_WIDTH   AR_WIDTH_QVGA

Definition at line 77 of file arv.c.

#define USE_INT   0 /* Don't modify */

Definition at line 55 of file arv.c.

#define VERSION   "0.0.5"

Definition at line 57 of file arv.c.

Function Documentation

MODULE_AUTHOR ( "Takeo Takahashi <[email protected]>"  )
MODULE_DESCRIPTION ( "Colour AR M64278(VGA) for Video4Linux"  )
module_exit ( ar_cleanup_module  )
module_init ( ar_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( freq  ,
int  ,
 
)
module_param ( vga  ,
int  ,
 
)
module_param ( vga_interlace  ,
int  ,
 
)
MODULE_VERSION ( VERSION  )

Variable Documentation

struct cpuinfo_m32r boot_cpu_data

Definition at line 38 of file setup.c.