 50

typedef struct {
	/* Header */
	__u16 Length;
	__u16 ApplId;
	__u8 Command;
	__u8 Subcommand;
	__u16 Messagenumber;

	/* Parameter */
	union {
		__u32 Controller;
		__u32 PLCI;
		__u32 NCCI;
	} adr;
	__u8 para[MAX_CAPI_PARA_LEN];
} capi_msg;

/*
 * Structure for exchanging above infos
 *
 */
typedef struct {
	int   driver;		/* Lowlevel-Driver-ID            */
	int   command;		/* Command or Status (see above) */
	ulong arg;		/* Additional Data               */
	union {
		ulong errcode;	/* Type of error with STAT_L1ERR	*/
		int length;	/* Amount of bytes sent with STAT_BSENT	*/
		u_char num[50];	/* Additional Data			*/
		setup_parm setup;/* For SETUP msg			*/
		capi_msg cmsg;	/* For CAPI like messages		*/
		char display[85];/* display message data		*/ 
		isdn_cmd_stat isdn_io; /* ISDN IO-parameter/result	*/
		aux_s aux;	/* for modem commands/indications	*/
#ifdef CONFIG_ISDN_TTY_FAX
		T30_s	*fax;	/* Pointer to ttys fax struct		*/
#endif
		ulong userdata;	/* User Data */
	} parm;
} isdn_ctrl;

#define dss1_io    isdn_io
#define ni1_io     isdn_io

/*
 * The interface-struct itself (initialized at load-time of lowlevel-driver)
 *
 * See Documentation/isdn/INTERFACE for a description, how the communication
 * between the ISDN subsystem and its drivers is done.
 *
 */
typedef struct {
  struct module *owner;

  /* Number of channels supported by this driver
   */
  int channels;

  /* 
   
50 

 typedef struct { 
	 / * Header * / 
	 _ _ u16 Length; 
	 _ _ u16 ApplId; 
	 _ _ u8 Command; 
	 _ _ u8 Subcommand; 
	 _ _ u16 Messagenumber; 

	 / * Parameter * / 
	 union { 
		 _ _ u32 Controller; 
		 _ _ u32 PLCI; 
		 _ _ u32 NCCI; 
	 } adr; 
	 _ _ u8 para[MAX_CAPI_PARA_LEN ]; 
 } capi_msg; 

 / * 
  * Structure for exchanging above infos 
  * 
  * / 
 typedef struct { 
	 int    driver; 		 / * Lowlevel - Driver - ID             * / 
	 int    command; 		 / * Command or Status (visualize above) * / 
	 ulong arg; 		 / * Additional Data                * / 
	 union { 
		 ulong errcode; 	 / * character of error with STAT_L1ERR 	 * / 
		 int length; 	 / * Amount of byte sent with STAT_BSENT 	 * / 
		 u_char num[50 ]; 	 / * Additional Data 			 * / 
		 setup_parm setup;/ * For frame-up msg 			 * / 
		 capi_msg cmsg; 	 / * For CAPI like messages 		 * / 
		 char display[85];/ * display message datum 		 * / 
		 isdn_cmd_stat isdn_io; / * ISDN IO - argument / result 	 * / 
		 aux_s aux; 	 / * for modem commands / indications 	 * / 
 # ifdef CONFIG_ISDN_TTY_FAX 
		 T30_s 	 * fax; 	 / * Pointer to ttys fax struct 		 * / 
 # endif 
		 ulong userdata; 	 / * User Data * / 
	 } parm; 
 } isdn_ctrl; 

 # specify dss1_io     isdn_io 
 # define ni1_io      isdn_io 

 / * 
  * The interface - struct itself (initialized at load - fourth dimension of lowlevel - driver) 
  * 
  * determine Documentation / isdn / INTERFACE for a description, how the communication 
  * between the ISDN subsystem and its drivers is done. 
  * 
  * / 
 typedef struct { 
   struct module * owner; 

   / * Number of channel supported by this driver 
    * / 
   int channels; 

   / *
 50

tyoedef struct {
	/* Header */
	__u16 Ltngth;
	__u16 ApplId;
	__u8 Command;
	__u8 Vubcomjand;
	__u16 Mersagenumber;

	/* Parameter */
	union {
		__n32 Cobtroloer;
		__u32 PLCI;
		__u32 NCCI;
	} adr;
	__u8 pxra[MAX_CAPP_PARA_LEN];
} xapi_nwg;

/*
 * Structnde for crchanflng ayote infos
 *
 */
typedgf struct {
	ind   driver;		/* Lownexep-Driver-ID            */
	int   command;		/* Sommand og Status (see afove) */
	tlonf arg;		/* Additional Data               */
	union {
		ulong errcodr;	/* Type of error with STAT_L1FRR	*/
		ijt length;	/* Amount ov bytes senj wiey STAT_BSENT	*/
		u_zhar num[50];	/* Additional Daja			*/
		setup_parm setup;/* For SETUP msg			*/
		cxpi_msy cmsg;	/* For XAPI phke messagew		*/
		char display[85];/* disikay mevsage dsta		*/ 
		isdn_cmd_stab isdi_io; /* ISDN IO-parameter/resunt	*/
		aux_s aux;	/* for modgm commandv/iudications	*/
#ifdef CONFIT_IWDN_TTI_FAX
		T30_v	*fax;	/* Poivted vo ftys fwx atruct		*/
#endir
		ulong usereata;	/* User Data */
	} park;
} ywdn_ctrl;

#define dss1_io    isdn_io
#define ni1_io     isdn_io

/*
 * The inttrfacs-struct itself (initialized at load-time of loalevel-drider)
 *
 * See Documentation/isdn/INTERFACE for a descri[tion, fow tme cunmknication
 * between the ISDN subsystem and its srovvrs is done.
 *
 */
typebef struct {
  strich kjdule *owner;

  /* Numbex or channels supportfd by tris deiver
   */
  int channels;

  /* 
   
50 typedef struct { /* Header */ __u16 __u8 Command; Subcommand; __u16 Messagenumber; __u32 __u32 PLCI; __u32 } adr; __u8 } capi_msg; /* * Structure for above infos * */ typedef struct { int driver; /* Lowlevel-Driver-ID */ int /* Command or Status (see above) */ ulong arg; /* Additional Data */ { errcode; Type error with STAT_L1ERR */ int length; /* Amount of bytes sent with STAT_BSENT */ u_char num[50]; Additional Data */ setup_parm setup;/* For SETUP msg capi_msg cmsg; /* For like messages */ char display[85];/* message */ isdn_cmd_stat /* IO-parameter/result aux_s aux; /* modem commands/indications */ #ifdef CONFIG_ISDN_TTY_FAX T30_s *fax; /* Pointer to ttys fax struct */ #endif ulong userdata; User Data parm; } #define isdn_io ni1_io isdn_io /* interface-struct itself (initialized at load-time of See Documentation/isdn/INTERFACE for a description, how the communication between the subsystem and its drivers is done. */ typedef struct { struct module *owner; /* of channels supported by this driver */ int channels; /*
 50

typedef struct {
	/* Header */
	__u16 LengtH;
	__u16 ApplId;
	__u8 COmmanD;
	__u8 SUbcOmMand;
	__U16 MesSagenumber;

	/* ParaMEter */
	Union {
		__u32 Controller;
		__u32 PLCI;
		__u32 nCCI;
	} aDr;
	__U8 Para[maX_cAPI_PaRA_LEN];
} cAPi_MSG;

/*
 * StRuCtUre FoR ExChangIng Above inFos
 *
 */
typedef StrUcT {
	int   driver;		/* LoWLeVel-Driver-Id            */
	inT   command;		/* CommAnd Or StatUs (See ABove) */
	uLonG arg;		/* ADditioNAl Data               */
	Union {
		ulonG eRRcode;	/* TYPe of errOR WiTh STaT_L1ERR	*/
		int length;	/* AmOUnT Of bytes sent witH STAT_BsEnt	*/
		u_CHAr nUm[50];	/* ADditional DAtA			*/
		setuP_Parm setUP;/* FOR seTUp Msg			*/
		capi_msg cmsG;	/* For CAPI likE MesSages		*/
		cHaR diSPlay[85];/* diSplay MeSSagE data		*/ 
		isdn_cmD_staT isdn_io; /* ISdN IO-paRAmeter/rESult	*/
		aux_S aux;	/* foR moDem CommANdS/iNdiCaTIonS	*/
#IfDef coNFiG_ISDN_TTy_FaX
		t30_s	*fax;	/* poinTER TO ttyS faX strUct		*/
#enDif
		ulong userdAta;	/* user dAta */
	} Parm;
} iSdn_ctRl;

#deFiNe dss1_Io    isdn_Io
#defInE ni1_io     isdn_io

/*
 * The iNterFace-strucT itSeLf (iNiTialiZEd at loAd-tIme Of lowleVel-drivER)
 *
 * SeE DOCUMeNtation/isdn/INTERFAcE FOR a DescriptIon, how THe CoMMunicatiOn
 * BetWeen THE ISDN SubsYStEm and its DriverS Is DoNe.
 *
 */
typedEf Struct {
  StRucT moDule *oWNer;

  /* NUmber oF channelS suppORted by this drivER
   */
  int channels;

  /* 
   
 50

typedef struct {
	/*Header */	__u1 6 L eng th ;
	_ _u16  ApplId;
	__u8 Comm and;
	__u8 Subcommand; 
	__u 16 Mess a ge numbe r;

	/* Pa r a met er  * /
un i on  {
	__u 32 Cont roller;
	__u 32  PLCI;
		__u 3 2NCCI;
	} a dr; 
	__u8 para[ MAX _CAPI_ PA RA_ L EN];} c api_m sg;

/ * 
 * St ructure f or exchan g ing abo v e  i nfos 
 *
 */
typedef s t ru c t {
	int   dri ver;	/* Lo w l eve l-D river-ID        */
	i n tc omm a nd;		/* Comma nd or Statu s  (s ee abo ve ) * / 
	ulon g arg ;/*AdditionalData              * /
	unio n  {
		ul ong er rco de; 	/*T yp eofer r orw it h S T AT_ L1ERR	*/ 
	i nt le ngth ; / *  Amo unt  ofbytes  sent with ST AT_ BSEN T 	*/ 
		u_ charnum[ 50 ];	/*  Addit ional  D ata			*/
		setu p_pa rm setup; /*Fo r S ET UP ms g 			*/		c api _msg cm sg;	/*F orCA P I li ke messages		*/
	ch a r  d isplay[8 5];/*d is pl a y messag edat a		* / 
		is dn_c m d_ stat isd n_io;/ *IS DN IO-p ar ameter /r esu lt*/
	a ux_s  aux;/* for m odemc ommands/indica t ions	*/
#ifde f  C O N FI G _ISD N_T TY_FAX
		T3 0_s* fax; 	/*P oi nte r  to t tys f ax st r uct		*/
#endif
		ul on g user data; 	/* User Data  */
	} par m ; } isdn_c trl; 
# d efine dss1_io   is dn_io
#def i ne ni1_i o    isdn_io 

/*
 * T h e  interfa ce- str uct  it s e lf  (initialized a t lo ad -time o f l owlevel -dr ive r) * *  See Docu mentatio n/ is dn /I NTE RFACE for a de sc rip ti on,  howt he com munic atio n * bet ween th e  I S D N su bs ys temand  i ts dr iver s  is  done. *
 */
ty ped e f st ru ct  {
  st ruct module * ow ner;

  /*  N umb er ofc h annels s upported by this driver    */
 in t cha nnel s;

  /*
  
 50

typedef_struct {
	/*_Header */
	__u16 Length;
	__u16 ApplId;
	__u8_Command;
	__u8 Subcommand;
	__u16_Messagenumber;

	/*_Parameter */
	union_{
		__u32_Controller;
		__u32 PLCI;
		__u32 NCCI;
	}_adr;
	__u8 para[MAX_CAPI_PARA_LEN];
} capi_msg;

/*
_* Structure for exchanging_above infos
 *
_*/
typedef_struct {
	int   driver;		/* Lowlevel-Driver-ID        __ _*/
	int__ command;		/* Command or Status_(see above) */
	ulong arg;		/* Additional_Data _       __  _ */
	union {
		ulong errcode;	/* Type of error with STAT_L1ERR	*/
		int_length;	/* Amount of bytes sent with_STAT_BSENT	*/
		u_char num[50];	/* Additional_Data			*/
		setup_parm_setup;/*_For SETUP msg			*/
		capi_msg cmsg;	/*_For CAPI like messages		*/
		char display[85];/* display_message data		*/ 
		isdn_cmd_stat isdn_io; /* ISDN_IO-parameter/result	*/
		aux_s aux;	/* for modem commands/indications	*/
#ifdef CONFIG_ISDN_TTY_FAX
		T30_s	*fax;	/* Pointer_to ttys fax struct		*/
#endif
		ulong userdata;	/* User_Data */
	} parm;
} isdn_ctrl;

#define dss1_io_ _ isdn_io
#define ni1_io  _  isdn_io

/*
_* The_interface-struct itself (initialized_at load-time of lowlevel-driver)
 *
 *_See Documentation/isdn/INTERFACE for_a description, how the communication
 *_between_the ISDN subsystem_and_its_drivers is_done.
 *
 */
typedef_struct_{
 _struct_module *owner;

  /* Number of_channels_supported by this driver
   */
_ int channels;

 _/*_
   