source: drsdaq/VME/struck/sis1100/V2.02/dev/pci/vertex_map.h@ 23

Last change on this file since 23 was 22, checked in by ogrimm, 16 years ago
First commit of drsdaq program
File size: 2.7 KB
Line 
1/* $ZEL: vertex_map.h,v 1.2 2004/05/27 23:10:48 wuestner Exp $ */
2
3/*
4 * Copyright (c) 2004
5 * Peter Wuestner. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions, and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#ifndef _vertex_map_h_
30#define _vertex_map_h_
31
32struct vertex_reg {
33 u_int32_t ident; /* 0x000 */
34 u_int32_t sc; /* 0x004 */
35 u_int32_t optical_cr; /* 0x008 */
36 u_int32_t dsp_sc; /* 0x008 */
37 u_int32_t dummy;
38};
39
40/* bits in in_out */
41#define vertex_io_flat_out1 (1<<0)
42#define vertex_io_flat_out2 (1<<1)
43#define vertex_io_flat_out3 (1<<2)
44#define vertex_io_flat_out4 (1<<3)
45#define vertex_io_lemo_out1 (1<<4)
46#define vertex_io_lemo_out2 (1<<5)
47#define vertex_io_lemo_out3 (1<<6)
48/* clear is (io_*_out?)<<16 */
49#define vertex_io_flat_in1 (1<<16)
50#define vertex_io_flat_in2 (1<<17)
51#define vertex_io_flat_in3 (1<<18)
52#define vertex_io_flat_in4 (1<<19)
53#define vertex_io_lemo_in1 (1<<20)
54#define vertex_io_lemo_in2 (1<<21)
55#define vertex_io_lemo_in3 (1<<22)
56
57/* bits in dsp_sc */
58#define vertex_dsp_run (1<<8)
59#define vertex_dsp_boot_eprom (1<<9)
60#define vertex_dsp_boot_ctrl (1<<11)
61
62#define vertex_dsp_available (1<<24)
63#define vertex_dsp_flag0 (1<<28)
64#define vertex_dsp_flag1 (1<<29)
65#define vertex_dsp_flag2 (1<<30)
66#define vertex_dsp_flag3 (1<<31)
67
68/* error codes */
69#define vertex_sis3100_re_berr 0x211 /* Bus Error */
70#define vertex_sis3100_re_retr 0x212 /* Retry */
71#define vertex_sis3100_re_atimeout 0x214 /* Arbitration timeout */
72
73#endif
Note: See TracBrowser for help on using the repository browser.