|
|
#include <sys/types.h> #include <sys/scoisdn.h>typedef struct isdnBproto { isdnB1proto_t B1proto; isdnB2proto_t B2proto; isdnB3proto_t B3proto;
struct isdnB1config { isdnWord_t rate; isdnWord_t dataBits; isdnWord_t parity; isdnWord_t stopBits; } B1config;
struct isdnB2config { isdnByte_t addrA; isdnByte_t addrB; isdnModMode_t moduloMode; isdnByte_t windowSize;
struct { void *dummy; /* only with protocol 2, XID response */ } xid; } B2config;
union isdnB3config { struct /* Used for protocols 1, 2, 3 */ { isdnWord_t lic; isdnWord_t hic; isdnWord_t ltc; isdnWord_t htc; isdnWord_t loc; isdnWord_t hoc; isdnWord_t moduloMode; isdnWord_t windowSize; } P123;
struct /* Used for protocol 4 */ { isdnWord_t resolution; isdnWord_t format; struct { void *dummy; /* ID of the calling station */ } station_id; struct { void *dummy; /* headline sent on each fax page */ } headline; } FAX; } B3config;} isdnBproto_t;
These structures are used by:
ISDN_CONNECT.ISDN_REQ(D7isdn)
ISDN_CONNECT.ISDN_RESP(D7isdn)
ISDN_SELECT_B_PROTOCOL.ISDN_REQ(D7isdn)
B1proto
B2proto
B3proto
B1config
B2config
B3config
``SCO ISDN adapter drivers'' in Developing MDI network adapter drivers.