/[VMELinux]/vmeutils/unilib.h
ViewVC logotype

Contents of /vmeutils/unilib.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Jun 18 14:57:44 2001 UTC (18 years, 11 months ago) by astro
Branch: MAIN
CVS Tags: vmelinux-1_1_2, Linux2_4_x
Changes since 1.1: +2 -5 lines
File MIME type: text/plain
Changed the device number from 70 to 221 as assigned by the Linux authorities.
1 //------------------------------------------------------------------------------
2 //title: VME Debugger for XVME-655
3 //version: Linux 0.0
4 //date: February 1998
5 //programmer: Michael Wyrick
6 //project: VMELinux Project in association with Chesapeake Research
7 //------------------------------------------------------------------------------
8 // Purpose:
9 // Docs:
10 //------------------------------------------------------------------------------
11 // $Id: unilib.h,v 1.2 2001/06/18 14:57:44 astro Exp $
12 //------------------------------------------------------------------------------
13
14 #define VME_CR_CSR 0x00
15 #define VME_A16 0x01
16 #define VME_A24 0x02
17 #define VME_A32 0x03
18
19 #define VME_PRG_DATA 0x04
20 #define VME_SUP_USR 0x08
21
22 #define VME_CYCLE 0x10
23
24 #define VME_SIZE 0x60
25 #define VME_SIZE_8 0x00
26 #define VME_SIZE_16 0x20
27 #define VME_SIZE_32 0x40
28 #define VME_SIZE_64 0x60
29
30 #define MODE_PROGRAMMED 0x01
31 #define MODE_DMA 0x02
32
33 extern int vme_handle;
34 extern int pci_size;
35 extern unsigned int pci_base_addr;
36 extern unsigned int pci_bound_addr;
37 extern unsigned int vme_base_addr;
38
39 //----------------------------------------------------------------------------
40 // Prototypes
41 //----------------------------------------------------------------------------
42 int init_vmelib(void);
43 void shutdown_vmelib(void);
44 void vmemap(unsigned int addr,int count,char space);
45 void vmesize(int size);
46
47 unsigned int ReadUniReg(int reg);
48 void WriteUniReg(int reg, unsigned int v);
49
50 unsigned char rb(int addr, int *error);
51 unsigned short rw(int addr, int *error);
52 unsigned int rl(int addr, int *error);
53
54 void wb(int addr,unsigned char v, int *error);
55 void ww(int addr,unsigned short v, int *error);
56 void wl(int addr,unsigned int v, int *error);
57
58

  ViewVC Help
Powered by ViewVC 1.2-dev