OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/include/ss7/dl_ioctl.h


File /code/strss7/include/ss7/dl_ioctl.h



#ifndef __DL_IOCTL_H__
#define __DL_IOCTL_H__

#define DL_IOC_MAGIC 'd'

typedef struct dl_iochdr {
	ulong type;				/* object type */
	ulong id;				/* object id */
	ulong cmd;				/* command or argument */
} dl_iochdr_t;

typedef struct dl_proto {
	ulong pvar;
	ulong popt;
} dl_proto_t;

/*
 *  Options
 */
#define DL_IOCGOPTIONS	 _IOR(	DL_IOC_MAGIC,	 0,	dl_iochdr_t	)
#define DL_IOCSOPTIONS	 _IOW(	DL_IOC_MAGIC,	 1,	dl_iochdr_t	)

/*
 *  Configuration
 */
#define DL_GET	    0
#define DL_ADD	    1
#define DL_CHA	    2
#define DL_DEL	    3

#define DL_IOCGCONFIG	_IOWR(	DL_IOC_MAGIC,	 2,	dl_iochdr_t	)
#define DL_IOCSCONFIG	_IOWR(	DL_IOC_MAGIC,	 3,	dl_iochdr_t	)
#define DL_IOCTCONFIG	_IOWR(	DL_IOC_MAGIC,	 4,	dl_iochdr_t	)
#define DL_IOCCCONFIG	_IOWR(	DL_IOC_MAGIC,	 5,	dl_iochdr_t	)

/*
 *  State
 */
#define DL_IOCGSTATEM	_IOWR(	DL_IOC_MAGIC,	 6,	dl_iochdr_t	)
#define DL_IOCCMRESET	_IOWR(	DL_IOC_MAGIC,	 7,	dl_iochdr_t	)

/*
 *  Statistics
 */
#define DL_IOCGSTATSP	_IOWR(	DL_IOC_MAGIC,	 8,	dl_iochdr_t	)
#define DL_IOCSSTATSP	_IOWR(	DL_IOC_MAGIC,	 9,	dl_iochdr_t	)
#define DL_IOCGSTATS	_IOWR(	DL_IOC_MAGIC,	10,	dl_iochdr_t	)
#define DL_IOCCSTATS	_IOWR(	DL_IOC_MAGIC,	11,	dl_iochdr_t	)

/*
 *  Notifications
 */
#define DL_IOCGNOTIFY	 _IOR(	DL_IOC_MAGIC,	12,	dl_iochdr_t	)
#define DL_IOCSNOTIFY	 _IOW(	DL_IOC_MAGIC,	13,	dl_iochdr_t	)
#define DL_IOCCNOTIFY	 _IOW(	DL_IOC_MAGIC,	14,	dl_iochdr_t	)

/*
 *  Management
 */
#define DL_IOCCMGMT	_IOWR(	DL_IOC_MAGIC,	15,	dl_iochdr_t	)

/*
 *  Pass-through IOCTLs
 */
#define DL_IOCCPASS	_IOWR(	DL_IOC_MAGIC,	16,	dl_iochdr_t	)

#define DL_IOC_FIRST	 0
#define DL_IOC_LAST	16
#define DL_IOC_PRIVATE	32

#endif				/* __DL_IOCTL_H__ */


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/include/ss7/dl_ioctl.h

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: