| 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 |
#ifndef _WCTDM_H |
| 26 |
#define _WCTDM_H |
| 27 |
|
| 28 |
#include <linux/ioctl.h> |
| 29 |
|
| 30 |
#define NUM_REGS 109 |
| 31 |
#define NUM_INDIRECT_REGS 105 |
| 32 |
|
| 33 |
struct wctdm_stats { |
| 34 |
int tipvolt; |
| 35 |
int ringvolt; |
| 36 |
int batvolt; |
| 37 |
}; |
| 38 |
|
| 39 |
struct wctdm_regs { |
| 40 |
unsigned char direct[NUM_REGS]; |
| 41 |
unsigned short indirect[NUM_INDIRECT_REGS]; |
| 42 |
}; |
| 43 |
|
| 44 |
struct wctdm_regop { |
| 45 |
int indirect; |
| 46 |
unsigned char reg; |
| 47 |
unsigned short val; |
| 48 |
}; |
| 49 |
|
| 50 |
struct wctdm_echo_coefs { |
| 51 |
unsigned char acim; |
| 52 |
unsigned char coef1; |
| 53 |
unsigned char coef2; |
| 54 |
unsigned char coef3; |
| 55 |
unsigned char coef4; |
| 56 |
unsigned char coef5; |
| 57 |
unsigned char coef6; |
| 58 |
unsigned char coef7; |
| 59 |
unsigned char coef8; |
| 60 |
}; |
| 61 |
|
| 62 |
#define WCTDM_GET_STATS _IOR (DAHDI_CODE, 60, struct wctdm_stats) |
| 63 |
#define WCTDM_GET_REGS _IOR (DAHDI_CODE, 61, struct wctdm_regs) |
| 64 |
#define WCTDM_SET_REG _IOW (DAHDI_CODE, 62, struct wctdm_regop) |
| 65 |
#define WCTDM_SET_ECHOTUNE _IOW (DAHDI_CODE, 63, struct wctdm_echo_coefs) |
| 66 |
|
| 67 |
|
| 68 |
#endif |