Last change
on this file since 23 was 22, checked in by ogrimm, 16 years ago |
First commit of drsdaq program
|
File size:
560 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * $ZEL$
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "test_3100.h"
|
---|
6 |
|
---|
7 | static int
|
---|
8 | check_RESET(struct path* path)
|
---|
9 | {
|
---|
10 | if (path->type!=sis1100_subdev_remote) return 0;
|
---|
11 | #ifdef SIS1100_REMOTE_RESET
|
---|
12 | if (ioctl(path->p, SIS1100_REMOTE_RESET, &path->mapsize)<0) {
|
---|
13 | printf("ioctl(%s, SIS3100_RESET): %s\n",
|
---|
14 | path->name, strerror(errno));
|
---|
15 | return -1;
|
---|
16 | }
|
---|
17 | #else
|
---|
18 | if (ioctl(path->p, SIS3100_RESET, &path->mapsize)<0) {
|
---|
19 | printf("ioctl(%s, SIS3100_RESET): %s\n",
|
---|
20 | path->name, strerror(errno));
|
---|
21 | return -1;
|
---|
22 | }
|
---|
23 | #endif
|
---|
24 | return 0;
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.