Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sta2x11_vip.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/videodev2.h>
#include <linux/kmod.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf-dma-contig.h>
#include "sta2x11_vip.h"

Go to the source code of this file.

Data Structures

struct  sta2x11_vip
 

Macros

#define DRV_NAME   "sta2x11_vip"
 
#define DRV_VERSION   "1.3"
 
#define PCI_DEVICE_ID_STMICRO_VIP   0xCC0D
 
#define MAX_FRAMES   4
 
#define DVP_CTL   0x00
 
#define DVP_TFO   0x04
 
#define DVP_TFS   0x08
 
#define DVP_BFO   0x0C
 
#define DVP_BFS   0x10
 
#define DVP_VTP   0x14
 
#define DVP_VBP   0x18
 
#define DVP_VMP   0x1C
 
#define DVP_ITM   0x98
 
#define DVP_ITS   0x9C
 
#define DVP_STA   0xA0
 
#define DVP_HLFLN   0xA8
 
#define DVP_RGB   0xC0
 
#define DVP_PKZ   0xF0
 
#define DVP_CTL_ENA   0x00000001
 
#define DVP_CTL_RST   0x80000000
 
#define DVP_CTL_DIS   (~0x00040001)
 
#define DVP_IT_VSB   0x00000008
 
#define DVP_IT_VST   0x00000010
 
#define DVP_IT_FIFO   0x00000020
 
#define DVP_HLFLN_SD   0x00000001
 
#define REG_WRITE(vip, reg, value)   iowrite32((value), (vip->iomem)+(reg))
 
#define REG_READ(vip, reg)   ioread32((vip->iomem)+(reg))
 
#define SAVE_COUNT   8
 
#define AUX_COUNT   3
 
#define IRQ_COUNT   1
 

: GPIO pin name

vip_gpio_release - release gpio pin : device : GPIO pin number

 late_initcall_sync (sta2x11_vip_init_module)
 
 MODULE_DESCRIPTION ("STA2X11 Video Input Port driver")
 
 MODULE_AUTHOR ("Wind River")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_SUPPORTED_DEVICE ("sta2x11 video input")
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_DEVICE_TABLE (pci, sta2x11_vip_pci_tbl)
 

Macro Definition Documentation

#define AUX_COUNT   3

Definition at line 91 of file sta2x11_vip.c.

#define DRV_NAME   "sta2x11_vip"

Definition at line 51 of file sta2x11_vip.c.

#define DRV_VERSION   "1.3"

Definition at line 52 of file sta2x11_vip.c.

#define DVP_BFO   0x0C

Definition at line 64 of file sta2x11_vip.c.

#define DVP_BFS   0x10

Definition at line 65 of file sta2x11_vip.c.

#define DVP_CTL   0x00

Definition at line 61 of file sta2x11_vip.c.

#define DVP_CTL_DIS   (~0x00040001)

Definition at line 79 of file sta2x11_vip.c.

#define DVP_CTL_ENA   0x00000001

Definition at line 77 of file sta2x11_vip.c.

#define DVP_CTL_RST   0x80000000

Definition at line 78 of file sta2x11_vip.c.

#define DVP_HLFLN   0xA8

Definition at line 72 of file sta2x11_vip.c.

#define DVP_HLFLN_SD   0x00000001

Definition at line 85 of file sta2x11_vip.c.

#define DVP_IT_FIFO   0x00000020

Definition at line 83 of file sta2x11_vip.c.

#define DVP_IT_VSB   0x00000008

Definition at line 81 of file sta2x11_vip.c.

#define DVP_IT_VST   0x00000010

Definition at line 82 of file sta2x11_vip.c.

#define DVP_ITM   0x98

Definition at line 69 of file sta2x11_vip.c.

#define DVP_ITS   0x9C

Definition at line 70 of file sta2x11_vip.c.

#define DVP_PKZ   0xF0

Definition at line 74 of file sta2x11_vip.c.

#define DVP_RGB   0xC0

Definition at line 73 of file sta2x11_vip.c.

#define DVP_STA   0xA0

Definition at line 71 of file sta2x11_vip.c.

#define DVP_TFO   0x04

Definition at line 62 of file sta2x11_vip.c.

#define DVP_TFS   0x08

Definition at line 63 of file sta2x11_vip.c.

#define DVP_VBP   0x18

Definition at line 67 of file sta2x11_vip.c.

#define DVP_VMP   0x1C

Definition at line 68 of file sta2x11_vip.c.

#define DVP_VTP   0x14

Definition at line 66 of file sta2x11_vip.c.

#define IRQ_COUNT   1

Definition at line 92 of file sta2x11_vip.c.

#define MAX_FRAMES   4

Definition at line 58 of file sta2x11_vip.c.

#define PCI_DEVICE_ID_STMICRO_VIP   0xCC0D

Definition at line 55 of file sta2x11_vip.c.

#define REG_READ (   vip,
  reg 
)    ioread32((vip->iomem)+(reg))

Definition at line 88 of file sta2x11_vip.c.

#define REG_WRITE (   vip,
  reg,
  value 
)    iowrite32((value), (vip->iomem)+(reg))

Definition at line 87 of file sta2x11_vip.c.

#define SAVE_COUNT   8

Definition at line 90 of file sta2x11_vip.c.

Function Documentation

late_initcall_sync ( sta2x11_vip_init_module  )
MODULE_AUTHOR ( "Wind River"  )
MODULE_DESCRIPTION ( "STA2X11 Video Input Port driver )
MODULE_DEVICE_TABLE ( pci  ,
sta2x11_vip_pci_tbl   
)
MODULE_LICENSE ( "GPL v2 )
MODULE_SUPPORTED_DEVICE ( "sta2x11 video input )
MODULE_VERSION ( DRV_VERSION  )