linux-mips
[Top] [All Lists]

Re: IDE DMA mode in Big endian for mips

To: nemoto@toshiba-tops.co.jp (Atsushi Nemoto)
Subject: Re: IDE DMA mode in Big endian for mips
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Sun, 21 Oct 2001 17:50:00 +0100 (BST)
Cc: hli@quicklogic.com, linux-mips@oss.sgi.com
In-reply-to: <20011017.113842.41627007.nemoto@toshiba-tops.co.jp> from "Atsushi Nemoto" at Oct 17, 2001 11:38:42 AM
Sender: owner-linux-mips@oss.sgi.com
>                               return 1;       /* try PIO instead of DMA */
> +#if defined(__mips__) && defined(__BIG_ENDIAN) /* XXX mips only? */
> +                     outl(cpu_to_le32(hwif->dmatable_dma), dma_base + 4); /* 
> PRD table */
> +#else
>                       outl(hwif->dmatable_dma, dma_base + 4); /* PRD table */
> +#endif

You should actually just be able to delete the #if stuff. On an LE machine
cpu_to_le32() is a null operation


<Prev in Thread] Current Thread [Next in Thread>