#ifndef __astro_io_h__ #define __astro_io_h__ struct astro_ioctlreq { void* data; int size; int usec_delay; }; #define ASTRO_IOC ('a' << 8) #define astro_read_csr (ASTRO_IOC | 0x000) #define astro_read_acr (ASTRO_IOC | 0x001) #define astro_read_bcr (ASTRO_IOC | 0x002) #define astro_reset (ASTRO_IOC | 0x109) #define astro_write_csr (ASTRO_IOC | 0x100) #define astro_write_acr (ASTRO_IOC | 0x101) #define astro_write_bcr (ASTRO_IOC | 0x102) #define astro_write_unused (ASTRO_IOC | 0x103) #define astro_write_ww (ASTRO_IOC | 0x104) /* I/O control commands. -- Old version */ #define ASTRO_GET_CSR 0x0 #define ASTRO_GET_AR 0x1 #define ASTRO_GET_BCR 0x2 #define ASTRO_SET_CSR 0x100 #define ASTRO_SET_AR 0x101 #define ASTRO_SET_BCR 0x102 #define ASTRO_WRITE_UNUSED_REG 0x103 #define ASTRO_SET_WW 0x104 #define ASTRO_WRITE_DCHAN 0x105 #define ASTRO_WRITE_ECHAN 0x106 #define ASTRO_SET_TIMEOUT 0x107 #define ASTRO_RESET 0x109 #endif /* !__astro_io_h__ */