MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                 ddidmadevalign(9F)



NAME
     ddidmadevalign - find DMA mapping  alignment  and  minimum
     transfer size

SYNOPSIS
     #include 
     #include 
     #include 



     int ddidmadevalign(ddidmahandlet handle, uintt *alignment,
          uintt *minxfr);


INTERFACE LEVEL
     Solaris  DI  specific  (Solaris  DI).  This  interface  is
     obsolete.

PARAMETERS
     handle       The DMAhandle filled in by a successful call to
                  ddidmasetup(9F).


     alignment    A pointer to an unsigned integer to  be  filled
                  in with the minimum required alignment for DMA.
                  The alignment is guaranteed to be  a  power  of
                  two.


     minxfr       A pointer to an unsigned integer to  be  filled
                  in  with  the  minimum  effective transfer size
                  (see ddiiomin(9F),  ddidmalimsparc(9S)  and
                  ddidmalimx86(9S)).  This  also is guaranteed
                  to be a power of two.


DESCRIPTION
     The ddidmadevalign() Function determines after a  success-
     ful DMA mapping (see ddidmasetup(9F)) the minimum required
     data alignment and minimum DMA transfer size.

RETURN VALUES
     The ddidmadevalign() function returns:

     DISUCES    The alignment and  minxfr  values  have  been
                    filled.


     DIFAILURE    The handle was illegal.





SunOS 5.11          Last change: 04 Apr 2006                    1






Kernel Functions for Drivers                 ddidmadevalign(9F)



CONTEXT
     The ddidmadevalign() function can  be  called  from  user,
     interrupt, or kernel context.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Obsolete                    
    


SEE ALSO
     ddidmasetup(9F),   ddiiomin(9F),   ddidmalimsparc(9S),
     ddidmalimx86(9S), ddidmareq(9S)


     Writing Device Drivers
































SunOS 5.11          Last change: 04 Apr 2006                    2



OpenSolaris man pages main menu

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