Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
#include <sys/pccard.h> int32_t csx_Parse_CISTPL_FUNCE(client_handle_t ch, tuple_t *tu, cistpl_funce_t *cf, uint32_t fid);
Solaris DDI Specific (Solaris DDI)
Client handle returned from csx_RegisterClient(9F).
Pointer to a tuple_t structure (see tuple(9S)) returned by a call to csx_GetFirstTuple(9F) or csx_GetNextTuple(9F).
Pointer to a cistpl_funce_t structure which contains the parsed CISTPL_FUNCE tuple information upon return from this function.
The function ID code to which this CISTPL_FUNCE tuple refers. See csx_Parse_CISTPL_FUNCID(9F).
This function parses the Function Extension tuple, CISTPL_FUNCE, into a form usable by PC Card drivers.
The CISTPL_FUNCE tuple is used to describe information about a specific PCCard function. The information provided is determined by the Function Identification tuple, CISTPL_FUNCID, that is being extended. Each function has a defined set of extension tuples.
The structure members of cistpl_funce_t are:
uint32_t function; /* type of extended data */ uint32_t subfunction; union { struct serial { uint32_t ua; /* UART in use */ uint32_t uc; /* UART capabilities */ } serial; struct modem { uint32_t fc; /* supported flow control methods */ uint32_t cb; /* size of DCE command buffer */ uint32_t eb; /* size of DCE to DCE buffer */ uint32_t tb; /* size of DTE to DCE buffer */ } modem; struct data_modem { uint32_t ud; /* highest data rate */ uint32_t ms; /* modulation standards */ uint32_t em; /* err correct proto and /* non-CCITT modulation */ uint32_t dc; /* data compression protocols */ uint32_t cm; /* command protocols */ uint32_t ex; /* escape mechanisms */ uint32_t dy; /* standardized data encryption */ uint32_t ef; /* miscellaneous end user features */ uint32_t ncd; /* number of country codes */ uchar_t cd[16]; /* CCITT country code */ } data_modem; struct fax { uint32_t uf; /* highest data rate in DTE/UART */ uint32_t fm; /* CCITT modulation standards */ uint32_t fy; /* standardized data encryption */ uint32_t fs; /* feature selection */ uint32_t ncf; /* number of country codes */ uchar_t cf[16]; /* CCITT country codes */ } fax; struct voice { uint32_t uv; /* highest data rate */ uint32_t nsr; uint32_t sr[16]; /* voice sampling rates (*100) */ uint32_t nss; uint32_t ss[16]; /* voice sample sizes (*10) */ uint32_t nsc; uint32_t sc[16]; /* voice compression methods */ } voice; struct lan { uint32_t tech; /* network technology */ uint32_t speed; /* media bit or baud rate */ uint32_t media; /* network media supported */ uint32_t con; /* open/closed connector standard */ uint32_t id_sz; /* length of lan station id */ uchar_t id[16]; /* station ID */ } lan; } data;
The fields are defined as follows: function
This field identifies the type of extended information provided about a function by the CISTPL_FUNCE tuple. This field is defined as follows: TPLFE_SUB_SERIAL
Serial port interface
Common modem interface
Data modem services
Fax modem services
Voice services
Capabilities of the data modem interface
Capabilities of the fax modem interface
Capabilities of the voice modem interface
Serial port interface for data modem services
Serial port interface for fax modem services
Serial port interface for voice modem services
This is for identifying a sub-category of services provided by a function in the CISTPL_FUNCE tuple. The numeric value of the code is in the range of 1 to 15.
This is the serial port UART identification and is defined as follows: TPLFE_UA_8250
Intel 8250
NS 16450
NS 16550
This identifies the serial port UART capabilities and is defined as follows: TPLFE_UC_PARITY_SPACE
Space parity supported
Mark parity supported
Odd parity supported
Even parity supported
5 bit characters supported
6 bit characters supported
7 bit characters supported
8 bit characters supported
1 stop bit supported
1.5 stop bits supported
2 stop bits supported
This identifies the modem flow control methods and is defined as follows: TPLFE_FC_TX_XONOFF
TPLFE_FC_RX_XONOFF TPLFE_FC_TX_HWTransmit hardware flow control (CTS)
Receiver hardware flow control (RTS)
Transparent flow control
This identifies the modem modulation standards and is defined as follows:
300bps
300bps (V.21)
600/1200bps (V.23)
1200bps (V.22A V.22B)
2400bps (US Bell 212
2400bps (V.22bis)
2400bps leased line (V.26)
2400bps (V.26bis)
4800/2400bps leased line (V.27bis)
9600/7200/4800 leased line (V.29)
Up to 9600bps (V.32)
Up to 14400bps (V.32bis)
Up to 28800 V.FAST
This identifies modem error correction/detection protocols and is defined as follows: TPLFE_EM_MNP
MNP levels 2-4
CCITT LAPM (V.42)
This identifies modem data compression protocols and is defined as follows: TPLFE_DC_V42BI
CCITT compression V.42
MNP compression (uses MNP 2, 3 or 4)
This identifies modem command protocols and is defined as follows: TPLFE_CM_AT1
TPLFE_CM_AT2 TPLFE_CM_AT3 TPLFE_CM_MNP_ATMNP specification AT commands
V.25bis calling commands
V.25bis test procedures
DMCL command mode
This identifies the modem escape mechanism and is defined as follows: TPLFE_EX_BREAK
BREAK support standardized
+++ returns to command mode
User defined escape character
This identifies modem standardized data encryption and is a reserved field for future use and must be set to 0.
This identifies modem miscellaneous features and is defined as follows: TPLFE_EF_CALLERID
Caller ID is supported
This identifies fax modulation standards and is defined as follows: TPLFE_FM_V21C2
300bps (V.21-C2)
4800/2400bps (V.27ter)
9600/7200/4800 leased line (V.29)
14.4K/12K/9600/7200bps (V.17)
4.4K/12K/9600/7200 leased line (V.33)
This identifies the fax feature selection and is defined as follows: TPLFE_FS_T3
Group 2 (T.3) service class
Group 3 (T.4) service class
Group 4 (T.6) service class
Error Correction Mode
Voice requests allowed
Polling support
File transfer support
Password support
This identifies the LAN technology type and is defined as follows: TPLFE_LAN_TECH_ARCNET
Arcnet
Ethernet
Token Ring
Local Talk
ATM
Wireless
This identifies the LAN media type and is defined as follows: TPLFE_LAN_MEDIA_INHERENT
Generic interface
Unshielded twisted pair
Shielded twisted pair
Thin coax
Thick coax
Fiber
Spread spectrum radio 902-928 MHz
Spread spectrum radio 2.4 GHz
Spread spectrum radio 5.4 GHz
Diffuse infra red
Point to point infra red
Successful operation.
Client handle is invalid.
Parser does not know how to parse tuple.
No PC Card in socket.
No Card Information Structure (CIS) on PC Card.
No PCMCIA hardware installed.
This function may be called from user or kernel context.
csx_GetFirstTuple(9F), csx_GetTupleData(9F), csx_Parse_CISTPL_FUNCID(9F), csx_RegisterClient(9F), csx_ValidateCIS(9F), tuple(9S)