MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                   ddidmacurwin(9F)



NAME
     ddidmacurwin - report current DMA window offset and size

SYNOPSIS
     #include 
     #include 
     #include 



     int ddidmacurwin(ddidmahandlet handle, offt *offp, uintt *lenp);


INTERFACE LEVEL
     This interface is  obsolete.  ddidmagetwin(9F)  should  be
     used instead.

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


     offp      A pointer to a value which will be filled in  with
               the  current  offset  from  the  beginning  of the
               object that is mapped for DMA.


     lenp      A pointer to a value which will be filled in  with
               the size, in bytes, of the current window onto the
               object that is mapped for DMA.


DESCRIPTION
     The ddidmacurwin() function reports the current DMA window
     offset  and  size.  If a DMA mapping allows partial mapping,
     that is if the DIDMAPARTIAL flag in  the  ddidmareq(9S)
     structure  is set, its current (effective) DMA window offset
     and size can be obtained by a call to ddidmacurwin().

RETURN VALUES
     The ddidmacurwin() function returns:

     DISUCES    The current length and offset  can  be  esta-
                    blished.


     DIFAILURE    Otherwise.


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



SunOS 5.11          Last change: 16 Jan 2006                    1






Kernel Functions for Drivers                   ddidmacurwin(9F)



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



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Stability Level              Obsolete                    
    


SEE ALSO
     attributes(5),    ddidmagetwin(9F),    ddidmamovwin(9F),
     ddidmasetup(9F), ddidmareq(9S)


     Writing Device Drivers




































SunOS 5.11          Last change: 16 Jan 2006                    2



OpenSolaris man pages main menu

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