2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH CSX_EVENT2TEXT 9F "Jul 19, 1996"
8 csx_Event2Text \- convert events to text strings
12 #include <sys/pccard.h>
16 \fBint32_t\fR \fBcsx_Event2Text\fR(\fBevent2text_t *\fR\fIev\fR);
22 Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR
30 Pointer to an \fBevent2text_t\fR structure.
36 This function is a Solaris-specific extension that provides a method for
37 clients to convert Card Services events to text strings.
41 The structure members of \fBevent2text_t\fR are:
45 event_t event; /*the event code*/
46 char text[CS_EVENT_MAX_BUFSIZE] /*the event code*/
53 The fields are defined as follows:
60 The text for the event code in the \fBevent\fR field is returned in the
70 The text string describing the name of the event.
77 \fB\fBCS_SUCCESS\fR\fR
86 \fB\fBCS_UNSUPPORTED_FUNCTION\fR\fR
89 No \fBPCMCIA \fRhardware installed.
95 This function may be called from user or kernel context.
98 \fBExample 1 \fR: Using \fBcsx_Event2Text()\fR
102 xx_event(event_t event, int priority, event_callback_args_t *eca)
104 event2text_t event2text;
106 event2text.event = event;
107 csx_Event2Text(&event2text);
108 cmn_err(CE_CONT, "event %s (0x%x)", event2text.text, (int)event);
116 \fBcsx_event_handler\fR(9E), \fBcsx_Error2Text\fR(9F)
119 \fIPC Card 95 Standard, PCMCIA/JEIDA\fR