ZCOM C I/F Library Routines

ZCONFIG (3X)

unsigned int set0_2

: 4;

/* Reserved, must be 0

*/

unsigned int pmode

: 4;

/* Port mode */

 

unsigned int set0_3

: 12;

/* Reserved, must be 0

*/

} e1t1_bits;

 

int32 pcval;

/* Must be signed, -1 means bad config */

uint8 pconfig[4];

/* 4 configuration bytes */ } zpconf_type;

3.While clearing a terminal (Terminal Configuration action ZcDSC_CLEAR_TERM), the terminal unacknowledged transmit queue is also flushed. If the terminal has pending transactions to the interface card, it will cause write completion mismatch errors to be logged. It is not critical if caused by a terminal clear operation. The driver error messages complaining about write completion errors may be safely ignored.

RETURN VALUE zconfig returns 0 if the configuration request is accepted. A non-zeroZCOM error is returned if there is a problem with the request. See /opt/acc/include/zcom/zcomsys.h for the list of ZCOM error codes and their meanings.

For immediate configuration requests, a zero return indicates the request is complete and rdata should be checked for any configuration problem. A non-zero return value means the request is rejected and no valid data is returned in rdata.

EXAMPLE

#include <zcom/zcomsys.h>

#include <zcom/zcomcall.h>

int32ierr;

zaddr_type zaddr;

uint32 node; zconfig_type cdata; zcfgret_type rdata;

cdata.header.config = ZCOM_ZCONFIG_PORT; cdata.header.action = ZcDSC_ALL_PARMS; cdata.header.tag1 = 1; cdata.header.tag2 = 2; cdata.data.setport.iftno = 0; cdata.data.setport.portno = 4; cdata.data.setport.rcode = 2; cdata.data.setport.cnfg.pcval = 0x07178000;

if

(ierr = \fBzconfig\fR (&zaddr, 0, node, &cdata, &rdata)) {

/* error return code

*/

} else {

/* good return code */ }

 

224

Chapter 4

Page 224
Image 224
HP Advanced Communications Controllers (ACC) manual 224