HP UX 11i v1 I/O Cards manual

Models: UX 11i v1 I/O Cards

1 298
Download 298 pages 31.75 Kb
Page 183
Image 183

ZCOM C I/F Library Routines

ZCONFIG (3X)

Response Data The response data structure consists of the header fields and a “union” data portion for completion response:

/* Configuration Response */

 

typedef struct {

 

 

zcfghdr_type

header;

/* Header Information */

union {

 

 

struct {

 

 

int32

error;

/* Return ZCOM error */

} ctlret;

struct {

int32

error;

/* Return ZCOM error */

} sysret;

 

 

struct {

 

 

uint32

iftno;

/* Interface card number */

int32

error;

/* Return ZCOM error */

} cardret;

 

 

struct {

 

 

uint32

iftno;

/* Interface card number */

uint32

portno;

/* Port number */

int32

status;

/* Return status */

} portret;

 

 

struct {

 

 

zaddr_type

zaddr;

/* Terminal ZLU */

int32

error;

/* Return ZCOM error */

} termret;

 

 

struct {

 

 

uint32

iftno;

/* Interface card number */

uint32

portno;

/* Port number */

uint32

subchno;

/* Subchannel number */

int32

status;

/* Return status */

} portscret;

 

 

} data;

} zcfgret_type;

The header is the same as in the configuration data. Its fields are returned without change for the caller to identify the response.

The union field data contains response data returned from the specified configuration. The relevant sub-field to be used depends on header.config.

Refer to the individual configuration sections for more information on response data.

Chapter 4

183

Page 183
Image 183
HP UX 11i v1 I/O Cards manual