Re: correct use of bus_dmamap_sync

From: Dinesh Nair (dinesh_at_alphaque.com)
Date: 10/27/05

  • Next message: Dinesh Nair: "locking in a device driver (was: use of bus_dmamap_sync)"
    Date: Thu, 27 Oct 2005 13:47:59 +0800
    To: Scott Long <scottl@samsco.org>
    
    

    On 10/27/05 04:16 Scott Long said the following:
    >>> an example would be using (BUS_DMASYNC_POSTREAD|BUS_DMASYNC_PREWRITE)
    >>> which
    >>> would be 0x03 in freebsd 4.x and 0x06 in freebsd 5.x. the gotcha is that
    >>> 0x03 in freebsd 4.x is BUS_DMASYNC_POSTWRITE. so therefore,
    >>> BUS_DMASYNC_POSTREAD|BUS_DMASYNC_PREWRITE will be
    >>> BUS_DMASYNC_POSTWRITE in
    >>> 4.x which in the syscall is actually a no op.
    >>
    >> Yes, that is fugly. Just don't use the | versions for now I would guess.
    >
    > Trying to maintain source compatibility between 4.x and 5.x/6.x will
    > make you encounter a whole lot more problems than just this.

    could you elaborate on what busdma related problems there'd be, between 4.x
    and 5.x/6.x ? do, for example, the inner workings of the bus_dma* syscalls
    work the same on both ?

    -- 
    Regards,                           /\_/\   "All dogs go to heaven."
    dinesh@alphaque.com                (0 0)    http://www.alphaque.com/
    +==========================----oOO--(_)--OOo----==========================+
    | for a in past present future; do                                        |
    |   for b in clients employers associates relatives neighbours pets; do   |
    |   echo "The opinions here in no way reflect the opinions of my $a $b."  |
    | done; done                                                              |
    +=========================================================================+
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Dinesh Nair: "locking in a device driver (was: use of bus_dmamap_sync)"

    Relevant Pages

    • Re: Do I really need to rebuilding *everything*
      ... On Sun, 21 Mar 2004, Mark wrote: ... | for b in clients employers associates relatives neighbours pets; ... To unsubscribe, ...
      (freebsd-questions)
    • Re: Web Editing?
      ... i'm presuming this is an editor of sorts? ... | for b in clients employers associates relatives neighbours pets; ... To unsubscribe, ...
      (freebsd-questions)
    • Re: How to mount a FreeBSD-5.1 partition from FreeBSD-4.9
      ... lives". ... | for b in clients employers associates relatives neighbours pets; ... To unsubscribe, ...
      (freebsd-questions)
    • Re: correct use of bus_dmamap_sync
      ... but that doesn't exist on freebsd 4.x. ... | for b in clients employers associates relatives neighbours pets; ... To unsubscribe, ...
      (freebsd-hackers)
    • Fw: Society Of Genealogists (London)
      ... specific reference to the manuscript being in the SoG collection. ... other manuscripts that would have proved helpful - I say would have, ... encounter, but that doesn't excuse the fact that I blew all of the ... To unsubscribe from the list, please send an email to GEN-MEDIEVAL-request@xxxxxxxxxxxx with the word 'unsubscribe' without the quotes in the subject and the body of the message ...
      (soc.genealogy.medieval)