re: Pegasos dmesg

matthew green <[email protected]>
Newsgroups gmane.os.netbsd.ports.ofppc
Message-ID <[email protected]>
   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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.