Last change
on this file since 23 was 22, checked in by ogrimm, 16 years ago |
First commit of drsdaq program
|
File size:
1.6 KB
|
Line | |
---|
1 | SIS3100_SETVMESPACE:
|
---|
2 |
|
---|
3 | struct vmespace {
|
---|
4 | int32_t am; /* address modifier */
|
---|
5 | u_int32_t datasize;/* datasize in bytes (?) */
|
---|
6 | int swap; /* 1: swap words 0: don't swap -1: not changed */
|
---|
7 | int mapit; /* not used */
|
---|
8 | ssize_t mindmalen; /*
|
---|
9 | 0: never use DMA;
|
---|
10 | 1: always use DMA;
|
---|
11 | -1: not changed
|
---|
12 | >0: use DMA if size > mindmalen
|
---|
13 | */
|
---|
14 | };
|
---|
15 |
|
---|
16 |
|
---|
17 | SIS3100_VME_PROBE (u_int32_t addr):
|
---|
18 | performes a VME read with default parameters (set via SETVMESPACE) at
|
---|
19 | address addr.
|
---|
20 | return values:
|
---|
21 | ENXIO: remote device not present/remote device is not VME
|
---|
22 | EIO: address not accessible (probably bus error)
|
---|
23 |
|
---|
24 | SIS3100_VME_READ (struct sis1100_vme_req req)
|
---|
25 | performes a VME read with parameters defined by req.
|
---|
26 | return values:
|
---|
27 | ENXIO: remote device not present/remote device is not VME
|
---|
28 | returned structure:
|
---|
29 | error: errorcode from remote (or local) interface
|
---|
30 | data: if (error==0)
|
---|
31 | value red
|
---|
32 | else
|
---|
33 | undefined
|
---|
34 |
|
---|
35 | SIS3100_VME_WRITE (struct sis1100_vme_req req)
|
---|
36 | performes a VME write with parameters defined by req.
|
---|
37 | return values:
|
---|
38 | ENXIO: remote device not present/remote device is not VME
|
---|
39 | returned structure:
|
---|
40 | error: errorcode from remote (or local) interface
|
---|
41 |
|
---|
42 | case SIS3100_WRITE_PIPE (struct sis1100_writepipe)
|
---|
43 | performes several VME writes in a pipeline
|
---|
44 | return values:
|
---|
45 | EINVAL: list too long (96 entries are allowed)
|
---|
46 | ENXIO: remote device not present/remote device is not VME
|
---|
47 | EFAULT: *data is not accessible
|
---|
Note:
See
TracBrowser
for help on using the repository browser.