From 613ed956297773445ac225da4d8129eb9df73b10 Mon Sep 17 00:00:00 2001 From: Doug Bailey Date: Wed, 21 Jan 2009 15:39:46 +0000 Subject: Change the DAHDI_VMWI ioctl call to pass data via structure. Changed wctdm and wctdm24xxp to handle these calls. (issue #14104) Reported by: alecdavis Patches: mwiioctl_structure_dahdi.diff2.txt uploaded by dbailey (license ) Tested by: alecdavis, dbailey git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5785 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- include/dahdi/user.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'include/dahdi/user.h') diff --git a/include/dahdi/user.h b/include/dahdi/user.h index c7b45c2..a94ef38 100644 --- a/include/dahdi/user.h +++ b/include/dahdi/user.h @@ -966,20 +966,25 @@ struct dahdi_hwgain { #define DAHDI_TC_ALLOCATE _IOW(DAHDI_TC_CODE, 1, struct dahdi_transcoder_formats) #define DAHDI_TC_GETINFO _IOWR(DAHDI_TC_CODE, 2, struct dahdi_transcoder_info) +/* + * VMWI Specification + */ +struct dahdi_vmwi_info { + unsigned int messages; /* Number of messages pending */ + unsigned char fsk; /* default FSK, */ + unsigned char rpas; /* Ring Pulse Alert Signal precedes the FSK spill */ + unsigned char linereverse; /* Line reversal message indicator */ + unsigned char hvdc; /* Line reversal message indicator */ + unsigned char hvac; /* Line reversal message indicator */ +}; + /* * VoiceMail Waiting Indication (VMWI) -- implemented by low-level driver. * Value: number of waiting messages (hence 0: switch messages off). */ -#define DAHDI_VMWI _IOWR(DAHDI_CODE, 94, int) +#define DAHDI_VMWI _IOWR(DAHDI_CODE, 94, struct dahdi_vmwi_info) -#define DAHDI_VMWI_NUMBER_MASK (0xffff) /* Number of messages pending for VMWI */ -#define DAHDI_VMWI_FSK (1 << 16) /* default FSK, no Ring Pulse Alert Signal*/ -#define DAHDI_VMWI_RPAS (1 << 17) /* Ring Pulse Alert Signal then FSK */ -#define DAHDI_VMWI_LREV (1 << 18) /* Line Reversal */ -#define DAHDI_VMWI_HVDC (1 << 19) /* HV 90VDC */ -#define DAHDI_VMWI_HVAC (1 << 20) /* HV 90VAC Neon lamp */ - -/* +/* * Startup or Shutdown a span */ #define DAHDI_STARTUP _IOW(DAHDI_CODE, 99, int) -- cgit v1.2.3