MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                 csxConvertSpeed(9F)



NAME
     csxConvertSpeed - convert device speeds

SYNOPSIS
     #include 



     int32t csxConvertSpeed(convertspeedt *cs);


INTERFACE LEVEL
     Solaris DI Specific (Solaris DI)

PARAMETERS
     cs     Pointer to a convertspeedt structure.


DESCRIPTION
     This function is a Solaris-specific extension that  provides
     a  method  for  clients  to  convert from one type of device
     speed representation to another, that is, from devspeed for-
     mat to nS and vice versa.

STRUCTURE MEMBERS
     The structure members of convertspeedt are:

       uint32t     Attributes;
       uint32t     nS;
       uint32t     devspeed;



     The fields are defined as follows:

     Attributes     This is a bit-mapped  field  that  identifies
                    the type of speed conversion to be performed.
                    The field is defined as follows:

                    CONVERTNSTODEVSPED    Converts   nS    to
                                              devspeed format


                    CONVERTDEVSPEDTONS    Converts   devspeed
                                              format to nS



     nS             If CONVERTNSTODEVSPED is set,  the  value
                    in  the  nS  field is converted to a devspeed
                    format and returned in the devspeed field.




SunOS 5.11          Last change: 19 Jul 1996                    1






Kernel Functions for Drivers                 csxConvertSpeed(9F)



     devspeed       If CONVERTDEVSPEDTONS is set,  the  value
                    in  the  devspeed field is converted to an nS
                    value and returned in the nS field.


RETURN VALUES
     CSUCES                  Successful operation.


     CSBADSPED                Invalid nS or devspeed.


     CSBADATRIBUTE            Bad Attributes value.


     CSUNSUPORTEDFUNCTION     No PCMCIA hardware installed.


CONTEXT
     This function may be called from user or kernel context.

SEE ALSO
     csxModifyWindow(9F), csxRequestWindow(9F)


     PC Card 95 Standard, PCMCIA/JEIDA





























SunOS 5.11          Last change: 19 Jul 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™