DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

ConfigurationInfo(D4pccard)


ConfigurationInfo -- information about the specified socket and PC Card configuration

Syntax

   #include <sys/lcs.h>
   #include <sys/lss.h>
   

Description

The ConfigurationInfo structure returns information about the configuration of the specified socket and the function of the PC Card in the socket.

Structure definition

The ConfigurationInfo structure contains the following members:
   unsigned short  	usSocket;
   unsigned short  	usAttributes;
   unsigned char		ucVcc;
   unsigned char   	ucVpp1;
   unsigned char   	ucVpp2;
   unsigned char   	ucIntType;
   unsigned long   	ulConfigBase;
   unsigned char   	ucStatus;
   unsigned char   	ucPin;
   unsigned char   	ucCopy;
   unsigned char   	ucOption;
   unsigned char   	ucPresent;
   unsigned char   	ucFirstDevType;
   unsigned char   	ucFuncCode;
   unsigned char   	ucSysInitMask;
   unsigned short  	usManufCode;
   unsigned short  	usManufInfo;
   unsigned char   	ucCardValues;
   unsigned char   	ucAssignedIRQ;
   unsigned short  	usIRQAttributes;
   unsigned short  	usBasePort1;
   unsigned char   	ucNumPort1;
   unsigned short  	usAttributes1;
   unsigned short  	usBasePort2;
   unsigned char   	ucNumPort2;
   unsigned short  	usAttributes2;
   unsigned char   	ucIOAddrLines;
   unsigned char   	ucExtendedStatus;
   unsigned short  	usDMAAttributes;
   unsigned char   	ucAssignedChannel;
   unsigned char   	ucNumIOWnds;
   unsigned char   	ucNumMemWnds;

Structure members

The members are defined as:

usSocket
Logical socket

usAttributes
Bit 0 always 1; bit 1 set to 1 for CardBus, set for 16-bit card; bit 8 set to 1 for valid client.

ucVcc
Vcc setting

Vpp1
Vpp1 setting

Vpp2
Vpp2 setting

ucIntType
Memory or memory plus I/O.

u1ConfigBase
Base address of configuration registers on card.

ucStatus
Card status register setting.

ucPin
Card pin register setting.

ucCopy
Card socket copy register setting.

ucOption
Card option register setting

ucPresent
Card configuration registers that are present.

ucFirstDevType
Read from card device ID tuple.

ucFuncCode
Read from card function ID tuple.

ucSysInitMask
Read from card function ID tuple.

usManufCode
Read from card manufacturer ID tuple.

usManufInfo
Read from card manufacturer ID tuple.

ucCardValues
Valid card register values.

usAssignedIRQ
Card's IRQ assigned by CardServices.

usIRQAttributes
IRQ attributes. Valid values are:


usBasePort1
base port address for range

usNumPort1
number of contiguous ports

usAttributes1
bit-mapped.

usBasePort2
Range base port address.

ucNumPort2
Count of contiguous ports.

usAttributes2
See usAttributes above.

ucIOAddrLines
16-bit card I/O address line count.

ucExtendedStatus
Setting for extended status register.

usDMAAttributes
Bit mapped.
   bit 1	bit 0	Share Mode
       0	    0	DMA not shared
       0	    1	time-multiplexed sharing
       1	    0	dynamically shared
       1	    1	reserved
   

bit 3 bit 2 DMA request signal 0 0 reserved 0 1 DREQ# uses IOIS16# 1 0 DREQ# uses IOIS16# 1 1 DREQ# uses INPACK# bit 4 DMA data width 0 8 bits 1 16 bits

Bits 5, 6, and 7 are not used.

ucAssignedChannel
BCD 0-15; top 4 bits insignificant.

ucNumIOWnds
Count of I/O windows for logical socket

ucNumMemWnds
Count of memory windows.

Usage

Hardware applicability

All

Version applicability

pccard: 1, 2, 3

References

GetConfigurationInfo(D3pccard)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005