Technical data
SunOS 5.5 Ioctl Requests isdnio(7I)
ISDN data format The isdn_format_t type is meant to be a complete description of the various data modes
and rates available on an ISDN interface. Several macros are available for setting the for-
mat fields. The isdn_format_t structure is shown below:
/∗ ISDN channel data format ∗/
typedef enum {
ISDN_MODE_NOTSPEC, /∗ Not specified ∗/
ISDN_MODE_HDLC, /∗ HDLC framing and error ∗/
/∗ checking ∗/
ISDN_MODE_TRANSPARENT /∗ Transparent mode ∗/
} isdn_mode_t;
/∗ Audio encoding types (from audioio.h) ∗/
#define AUDIO_ENCODING_NONE (0) /∗ no encoding∗/
#define AUDIO_ENCODING_ULAW (1) /∗ mu-law ∗/
#define AUDIO_ENCODING_ALAW (2) /∗ A-law ∗/
#define AUDIO_ENCODING_LINEAR (3) /∗ Linear PCM ∗/
typedef struct isdn_format {
isdn_mode_t mode;
unsigned int sample_rate; /∗ sample frames/sec∗/
unsigned int channels; /∗ # interleaved chans ∗/
unsigned int precision; /∗ bits per sample ∗/
unsigned int encoding; /∗ data encoding ∗/
} isdn_format_t;
/∗
∗ These macros set the fields pointed
∗ to by the macro argument (isdn_format_t∗)fp in preparation
∗ for the ISDN_SET_FORMAT ioctl.
∗/
ISDN_SET_FORMAT_BRI_D(fp) /∗ BRI D-channel ∗/
ISDN_SET_FORMAT_PRI_D(fp) /∗ PRI D-channel ∗/
ISDN_SET_FORMAT_HDLC_B64(fp) /∗ BRI B-ch @ 56kbps ∗/
ISDN_SET_FORMAT_HDLC_B56(fp) /∗ BRI B-ch @ 64kbps ∗/
ISDN_SET_FORMAT_VOICE_ULAW(fp) /∗ BRI B-ch voice ∗/
ISDN_SET_FORMAT_VOICE_ALAW(fp) /∗ BRI B-ch voice ∗/
ISDN_SET_FORMAT_BRI_H(fp) /∗ BRI H-channel ∗/
ISDN Datapath
Types
Every STREAMS stream that carries data to or from the ISDN serial interfaces is
classified as a channel-stream datapath. A possible ISDN channel-stream datapath dev-
ice name for a TE could be /dev/isdn/0/te/b1.
On some hardware implementations, it is possible to route the data from hardware chan-
nel to hardware channel completely within the chip or controller. This is classified as a
channel-channel datapath. There does not need to be any open file descriptor for either
channel in this configuration. Only when data enters the host and utilizes a STREAMS
stream is this classified as an ISDN channel-stream datapath.
ISDN Management
Stream
A management stream is a STREAMS stream that exists solely for control purposes and is
not intended to carry data to or from the ISDN serial interfaces. A possible management
device name for a TE could be /dev/isdn/0/te/mgt.
modified 7 Apr 1994 7I-161










