Kernel Functions for Drivers csxParseCISTPLGEOMETRY(9F)
NAME
csxParseCISTPLGEOMETRY - parse the Geometry tuple
SYNOPSIS
#include
int32t csxParseCISTPLGEOMETRY(clienthandlet ch, tuplet *tu,
cistplgeometryt *pt);
INTERFACE LEVEL
Solaris DI Specific (Solaris DI)
PARAMETERS
ch Client handle returned from csxRegisterClient(9F).
tu Pointer to a tuplet structure (see tuple(9S))
returned by a call to csxGetFirstTuple(9F) or
csxGetNextTuple(9F).
pt Pointer to a cistplgeometryt structure which con-
tains the parsed CISTPLGEOMETRY tuple information
upon return from this function.
DESCRIPTION
This function parses the Geometry tuple, CISTPLGEOMETRY,
into a form usable by PC Card drivers.
The CISTPLGEOMETRY tuple indicates the geometry of a disk-
like device.
STRUCTURE MEMBERS
The structure members of cistplgeometryt are:
uint32t spt;
uint32t tpc;
uint32t ncyl;
The fields are defined as follows:
spt This field indicates the number of sectors per
track.
SunOS 5.11 Last change: 24 Jan 1997 1
Kernel Functions for Drivers csxParseCISTPLGEOMETRY(9F)
tpc This field indicates the number of tracks per
cylinder.
ncyl This field indicates the number of cylinders.
RETURN VALUES
CSUCES Successful operation.
CSBADHANDLE Client handle is invalid.
CSUNKNOWNTUPLE Parser does not know how to parse
tuple.
CSNOCARD No PC Card in socket.
CSNOCIS No Card Information Structure
(CIS) on PC Card.
CSUNSUPORTEDFUNCTION No PCMCIA hardware installed.
CONTEXT
This function may be called from user or kernel context.
SEE ALSO
csxGetFirstTuple(9F), csxGetTupleData(9F),
csxRegisterClient(9F), csxValidateCIS(9F), tuple(9S)
PC Card 95 Standard, PCMCIA/JEIDA
SunOS 5.11 Last change: 24 Jan 1997 2
|