Port-ofppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Pegasos dmesg



   I wrote:
   > How about this patch?
   
   Ugh, I checked a wrong source..
   ---
   Izumi Tsutsui
   
   
   Index: auvia.c
   ===================================================================
   RCS file: /cvsroot/src/sys/dev/pci/auvia.c,v
   retrieving revision 1.61
   diff -u -r1.61 auvia.c
   --- auvia.c  9 Dec 2007 20:28:06 -0000       1.61
   +++ auvia.c  14 Jan 2008 06:12:10 -0000
   @@ -975,13 +975,13 @@
        op = ch->sc_dma_ops;
    
        while (l) {
   -            op->ptr = s;
   +            op->ptr = htole32(s);
                l = l - blksize;
                if (!l) {
                        /* if last block */
   -                    op->flags = AUVIA_DMAOP_EOL | blksize;
   +                    op->flags = htole32(AUVIA_DMAOP_EOL | blksize);
                } else {
   -                    op->flags = AUVIA_DMAOP_FLAG | blksize;
   +                    op->flags = htole32(AUVIA_DMAOP_FLAG | blksize);
                }
                s += blksize;
                op++;
   


this works great!  thanks!  please commit..


.mrg.



Home | Main Index | Thread Index | Old Index