summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/indi/apogee/ApogeeLinux.h
blob: d17e7bde5f9f2e4c33e64a34d13f316b06431244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 
#ifndef APOGEELINUX_H
#define APOGEELINUX_H

#define APISA_READ_USHORT	_IOR('a', 0x01, unsigned int)
#define APISA_READ_LINE 	_IOR('a', 0x02, unsigned int)
#define APISA_WRITE_USHORT	_IOW('a', 0x03, unsigned int)

#define APPPI_READ_USHORT	_IOR('a', 0x01, unsigned int)
#define APPPI_READ_LINE 	_IOR('a', 0x02, unsigned int)
#define APPPI_WRITE_USHORT	_IOW('a', 0x03, unsigned int)

#define APPCI_READ_USHORT	_IOR('a', 0x01, unsigned int)
#define APPCI_READ_LINE 	_IOR('a', 0x02, unsigned int)
#define APPCI_WRITE_USHORT	_IOW('a', 0x03, unsigned int)

#define APUSB_READ_USHORT	_IOR('a', 0x01, unsigned int)
#define APUSB_WRITE_USHORT	_IOW('a', 0x02, unsigned int)
#define APUSB_USB_STATUS 	_IOR('a', 0x03, unsigned int)
#define APUSB_PRIME_USB_DOWNLOAD	_IOR('a', 0x04, unsigned int)
#define APUSB_STOP_USB_IMAGE	_IOR('a', 0x05, unsigned int)
#define APUSB_READ_USB_IMAGE	_IOR('a', 0x06, unsigned int)
#define APUSB_USB_RESET		_IOR('a', 0x07, unsigned int)
#define APUSB_READ_USB_SERIAL	_IOR('a', 0x08, unsigned int)
#define APUSB_WRITE_USB_SERIAL	_IOR('a', 0x09, unsigned int)
#define APUSB_USB_SET_SERIAL	_IOR('a', 0x0A, unsigned int)
#define APUSB_USB_REQUEST	_IOR('a', 0x0B, unsigned int)
#define APUSB_READ_STATUS	_IOR('a', 0x0C, unsigned int)

#define appci_major_number 60
#define apppi_major_number 61
#define apisa_major_number 62

struct apIOparam                  // IOCTL data
  {
  unsigned int reg;
  unsigned long param1, param2;
  };

#define APOGEE_PCI_DEVICE "/dev/appci"
#define APOGEE_PPI_DEVICE "/dev/apppi"
#define APOGEE_ISA_DEVICE "/dev/apisa"
#define APOGEE_USB_DEVICE "/dev/usb/alta"

#endif