DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

ISDN_GETPROFILE(7isdn)


ISDN_GETPROFILE -- return protocol-specific capabilities for an ISDN device

Synopsis

   #include <sys/stream.h>
   #include <sys/mdi.h>
   #include <sys/scoisdn.h>
   

typedef union isdn_profile { struct { isdnBfU8_t CtrlNr; /* Controller number */ } request;

struct { isdnU16_t CtlrCnt; /* number of installed controllers */ isdnU16_t BchanCnt; /* number of supported B-channels */

/* Global Options */ isdnBfU32_t g_IntCtlr :1, /* internal controller supported */ g_ExtEqpt :1, /* external equipment supported */ g_Handset :1, /* Handset supported */ g_DTMF :1, /* DTMF supported */ :0; /* Reserved */

/* B1 protocols support; Physical layer and framing */ isdnBfU32_t b1_HDLC64 :1, /* 64 kBit/s with HDLC framing */ b1_Trans64 :1, /* 64 kBit/s bit transparent */ b1_V110asy :1, /* V.110 asynchronous start/stop */ b1_V110sync :1, /* V.110 synchronous HDLC */ b1_T30 :1, /* T.30 modem for fax group 3 */ b1_HDLCi64 :1, /* 64 kBit/s inverted HDLC */ b1_Trans56 :1, /* 56 kBit/s bit transparent */ :0; /* Reserved */

/* B2 protocol support; Data link layer protocol */ isdnBfU32_t b2_ISO7776 :1, /* ISO 7776 (X.75 SLP) */ b2_Trans :1, /* Transparent */ b2_SDLC :1, /* SDLC */ b2_LAPD :1, /* LAPD Q.921 for D channel X.25 */ b2_T30 :1, /* T.30 for fax group 3 */ b2_PPP :1, /* Point to Point Protocol */ b2_TransNE :1, /* Transparent ignoring errors */ :0; /* Reserved */

/* B3 protocol support; Network layer protocol */ isdnBfU32_t b3_Trans :1, /* Transparent */ b3_T90NL :1, /* T.90NL w/ compatibility to T.70NL */ b3_ISO8208 :1, /* ISO 8208 (X.25 DTE-DTE) */ b3_X25DCE :1, /* X.25 DCE */ b3_T30 :1, /* T.30 for fax group 3 */ :0; /* Reserved */

isdnU32_t isdn_reserved[6]; isdnU32_t mfgr_specific[5]; } reply; unsigned char buf[64];

} isdn_profile_t;

Description

This ioctl requests that the ISDN driver return the protocol-specific capabilities of the adapter it controls. This will appear as an M_IOCTL(D7str) message with an associated M_DATA(D7str) block. Specifically, the ISDN driver returns the number of adapters is controls or protocol-specific capabilities of the adapter. The protocol-specific capabilities include the isdnBproto(D4isdn) protocols supported.

Parameters

If CtrlNr (controller number) is 0, only CtrlNr (number of installed controllers) is passed to the application. Otherwise, appropriate values should be given for each parameter.

Data returned

The ISDN driver returns the appropriate information to the application in the reply structure. The data is one of the following:

M_IOCACK(D7str)
Acknowledge successful completion of the operation. Set ioc_rval set to zero and ioc_count set to the size of the isdn_profile structure returned in the associated M_DATA(D7str).

M_IOCNAK(D7str)
Acknowledge unsuccessful completion of the operation. Set ioc_count to zero, ioc_rval to -1, and ioc_error set to EINVAL if CtrlNr is invalid. For other error conditions, set ioc_error to an appropriate value from errnos(D5).

References

Intro(7isdn), isdnBproto(D4isdn)
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
HDK 7.1.0b - 15 March 2000