OpenCores
URL https://opencores.org/ocsvn/pci/pci/trunk

Subversion Repositories pci

[/] [pci/] [tags/] [working_demo/] [apps/] [sw/] [driver/] [fb/] [spartan_kint.h] - Diff between revs 8 and 154

Only display areas with differences | Details | Blame | View Log

Rev 8 Rev 154
#include <linux/ioctl.h>
#include <linux/ioctl.h>
 
 
#define SPARTAN_IOC_NUM 'S'
#define SPARTAN_IOC_NUM 'S'
#define SPARTAN_IOC_MAX_NUM 6
#define SPARTAN_IOC_MAX_NUM 6
 
 
#define SPARTAN_IOC_CURRESGET    _IO(SPARTAN_IOC_NUM, 1)            // read current resource - (0 = none)
#define SPARTAN_IOC_CURRESGET    _IO(SPARTAN_IOC_NUM, 1)            // read current resource - (0 = none)
#define SPARTAN_IOC_CURRESSET    _IO(SPARTAN_IOC_NUM, 2)            // set current resource
#define SPARTAN_IOC_CURRESSET    _IO(SPARTAN_IOC_NUM, 2)            // set current resource
#define SPARTAN_IOC_CURBASE      _IOR(SPARTAN_IOC_NUM, 3, base)     // read current resource base address
#define SPARTAN_IOC_CURBASE      _IOR(SPARTAN_IOC_NUM, 3, base)     // read current resource base address
#define SPARTAN_IOC_CURBASEMAP   _IOR(SPARTAN_IOC_NUM, 4, base)     // read current resource remaped base address ( 0 - not remaped)
#define SPARTAN_IOC_CURBASEMAP   _IOR(SPARTAN_IOC_NUM, 4, base)     // read current resource remaped base address ( 0 - not remaped)
#define SPARTAN_IOC_CURBASESIZE  _IOR(SPARTAN_IOC_NUM, 5, base_size)// read current resource size
#define SPARTAN_IOC_CURBASESIZE  _IOR(SPARTAN_IOC_NUM, 5, base_size)// read current resource size
#define SPARTAN_IOC_NUMOFRES     _IO(SPARTAN_IOC_NUM, 6)            // read number of found resources
#define SPARTAN_IOC_NUMOFRES     _IO(SPARTAN_IOC_NUM, 6)            // read number of found resources
#define SPARTAN_IOC_VIDEO_BASE     _IO(SPARTAN_IOC_NUM, 7)            // read video buffer phyisical base address
#define SPARTAN_IOC_VIDEO_BASE     _IO(SPARTAN_IOC_NUM, 7)            // read video buffer phyisical base address
#define SPARTAN_IOC_VIDEO_VBASE     _IO(SPARTAN_IOC_NUM, 8)            // read video buffer virtual base address
#define SPARTAN_IOC_VIDEO_VBASE     _IO(SPARTAN_IOC_NUM, 8)            // read video buffer virtual base address
#define SPARTAN_IOC_VIDEO_SIZE     _IO(SPARTAN_IOC_NUM, 9)            // read video buffer size 
#define SPARTAN_IOC_VIDEO_SIZE     _IO(SPARTAN_IOC_NUM, 9)            // read video buffer size 
#define SPARTAN_IOC_SET_VIDEO_BUFF _IO(SPARTAN_IOC_NUM, 10)
#define SPARTAN_IOC_SET_VIDEO_BUFF _IO(SPARTAN_IOC_NUM, 10)
 
 
 
 
#define SPARTAN_P_IMG_CTRL1_ADDR        0x110
#define SPARTAN_P_IMG_CTRL1_ADDR        0x110
#define SPARTAN_P_BA1_ADDR              0x114
#define SPARTAN_P_BA1_ADDR              0x114
#define SPARTAN_P_AM1_ADDR              0x118
#define SPARTAN_P_AM1_ADDR              0x118
#define SPARTAN_P_TA1_ADDR              0x11c
#define SPARTAN_P_TA1_ADDR              0x11c
 
 
 
 
#define SPARTAN_W_IMG_CTRL1_ADDR        0x184
#define SPARTAN_W_IMG_CTRL1_ADDR        0x184
#define SPARTAN_W_BA1_ADDR              0x188
#define SPARTAN_W_BA1_ADDR              0x188
#define SPARTAN_W_AM1_ADDR              0x18C
#define SPARTAN_W_AM1_ADDR              0x18C
#define SPARTAN_W_TA1_ADDR              0x190
#define SPARTAN_W_TA1_ADDR              0x190
 
 
#define SPARTAN_CRT_CTRL                0x000
#define SPARTAN_CRT_CTRL                0x000
#define SPARTAN_CRT_ADDR                0x004
#define SPARTAN_CRT_ADDR                0x004
#define SPARTAN_CRT_PALETTE_BASE        0x400
#define SPARTAN_CRT_PALETTE_BASE        0x400
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.