OpenSS7 SS7 for the Common Man |
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |
||||||||||||||||||||||||||
Home | Overview | Status | News | Documentation | Resources | About | |||||||||||||||||||||
File /code/strss7/include/ss7/chi_ioctl.h#ifndef __SS7_CHI_IOCTL_H__ #define __SS7_CHI_IOCTL_H__ #ident "@(#) $Name: $($Revision: 0.8.2.1 $) Copyright (c) 1997-2002 OpenSS7 Corporation." #include <linux/ioctl.h> #define CH_IOC_MAGIC 'c' /* * CONFIGURATION */ typedef struct ch_config { ch_ulong block_size; /* data block size (bits) */ ch_ulong encoding; /* encoding */ ch_ulong sample_size; /* sample size (bits) */ ch_ulong rate; /* clock rate (Hz) */ ch_ulong tx_channels; /* number of tx channels */ ch_ulong rx_channels; /* number of rx channels */ ch_ulong opt_flags; /* options flags */ } ch_config_t; #define CH_IOCGCONFIG _IOR( CH_IOC_MAGIC, 2, ch_config_t ) #define CH_IOCSCONFIG _IOWR( CH_IOC_MAGIC, 3, ch_config_t ) #define CH_IOCTCONFIG _IOWR( CH_IOC_MAGIC, 4, ch_config_t ) #define CH_IOCCCONFIG _IOR( CH_IOC_MAGIC, 5, ch_config_t ) /* * STATE */ typedef struct ch_statem { ch_ulong state; ch_ulong flags; } ch_statem_t; #define CH_IOCGSTATEM _IOR( CH_IOC_MAGIC, 6, ch_statem_t ) #define CH_IOCCMRESET _IOR( CH_IOC_MAGIC, 7, ch_statem_t ) /* * STATISTICS */ typedef struct ch_stats { ch_ulong header; } ch_stats_t; #define CH_IOCGSTATSP _IOR( CH_IOC_MAGIC, 8, ch_stats_t ) #define CH_IOCSSTATSP _IOWR( CH_IOC_MAGIC, 9, ch_stats_t ) #define CH_IOCGSTATS _IOR( CH_IOC_MAGIC, 10, ch_stats_t ) #define CH_IOCCSTATS _IOW( CH_IOC_MAGIC, 11, ch_stats_t ) /* * EVENTS */ typedef struct ch_notify { ch_ulong events; } ch_notify_t; #define CH_IOCGNOTIFY _IOR( CH_IOC_MAGIC, 12, ch_notify_t ) #define CH_IOCSNOTIFY _IOW( CH_IOC_MAGIC, 13, ch_notify_t ) #define CH_IOCCNOTIFY _IOW( CH_IOC_MAGIC, 14, ch_notify_t ) #define CH_IOC_FIRST 0 #define CH_IOC_LAST 14 #define CH_IOC_PRIVATE 32 #endif /* __SS7_CHI_IOCTL_H__ */
|
|||||||||||||||||||||||||||
OpenSS7 SS7 for the Common Man |
Home | Overview | Status | News | Documentation | Resources | About | ||||||||||||||||||||
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |