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

Subversion Repositories pci

[/] [pci/] [tags/] [rel_11/] [apps/] [sw/] [driver/] [spartan_kint.h] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 mihad
#include <linux/ioctl.h>
2
 
3
#define SPARTAN_IOC_NUM 'S'
4 103 mihad
#define SPARTAN_IOC_MAX_NUM 11
5 21 mihad
 
6
#define SPARTAN_IOC_CURRESGET    _IO(SPARTAN_IOC_NUM, 1)            // read current resource - (0 = none)
7
#define SPARTAN_IOC_CURRESSET    _IO(SPARTAN_IOC_NUM, 2)            // set current resource
8
#define SPARTAN_IOC_CURBASE      _IOR(SPARTAN_IOC_NUM, 3, base)     // read current resource base address
9
#define SPARTAN_IOC_CURBASEMAP   _IOR(SPARTAN_IOC_NUM, 4, base)     // read current resource remaped base address ( 0 - not remaped)
10
#define SPARTAN_IOC_CURBASESIZE  _IOR(SPARTAN_IOC_NUM, 5, base_size)// read current resource size
11
#define SPARTAN_IOC_NUMOFRES     _IO(SPARTAN_IOC_NUM, 6)            // read number of found resources
12
#define SPARTAN_IOC_VIDEO_BASE     _IOR(SPARTAN_IOC_NUM, 7, base)            // read video buffer phyisical base address
13
#define SPARTAN_IOC_VIDEO_VBASE     _IOR(SPARTAN_IOC_NUM, 8, base)            // read video buffer virtual base address
14
#define SPARTAN_IOC_VIDEO_SIZE     _IOR(SPARTAN_IOC_NUM, 9, base_size)            // read video buffer size     
15 103 mihad
#define SPARTAN_IOC_SET_VIDEO_BUFF _IO(SPARTAN_IOC_NUM, 10)                // fill video buffer
16
#define SPARTAN_IOC_GET_VIDEO_BUFF _IO(SPARTAN_IOC_NUM, 11)                // copy video buffer to user space
17 21 mihad
 
18
 
19
#define SPARTAN_P_IMG_CTRL1_ADDR        0x110
20
#define SPARTAN_P_BA1_ADDR              0x114
21
#define SPARTAN_P_AM1_ADDR              0x118
22
#define SPARTAN_P_TA1_ADDR              0x11c
23
 
24
 
25
#define SPARTAN_W_IMG_CTRL1_ADDR        0x184
26
#define SPARTAN_W_BA1_ADDR              0x188
27
#define SPARTAN_W_AM1_ADDR              0x18C
28
#define SPARTAN_W_TA1_ADDR              0x190
29
 
30
#define SPARTAN_CRT_CTRL                0x000
31
#define SPARTAN_CRT_ADD                 0x004
32
#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.