Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Feb 2002 20:00:02 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Feb 2002 19:56:06 -0500 Received: from lightning.swansea.linux.org.uk ([194.168.151.1]:43536 "EHLO the-village.bc.nu") by vger.kernel.org with ESMTP id ; Thu, 28 Feb 2002 19:52:40 -0500 Subject: Re: [Emu10k1-devel] Re: Emu10k1 SPDIF passthru doesn't work if To: rui.p.m.sousa@clix.pt (Rui Sousa) Date: Fri, 1 Mar 2002 01:07:27 +0000 (GMT) Cc: alan@lxorguk.ukuu.org.uk (Alan Cox), german@piraos.com (German Gomez Garcia), jcm@netcabo.pt (=?ISO-8859-1?Q?Jos=E9?= Carlos Monteiro), linux-kernel@vger.kernel.org, emu10k1-devel@lists.sourceforge.net (emu10k1-devel), steve@math.upatras.gr (Steve Stavropoulos), d.bertrand@ieee.org (Daniel Bertrand), dledford@redhat.com In-Reply-To: from "Rui Sousa" at Feb 28, 2002 08:50:20 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > It's true dma_addr_t does change from u32 to u64 and we do thinks like: > (32 bit pci register) = cpu_to_le32(dma_handle) > > What is the correct way of doing this? > (32 bit pci register) = cpu_to_le32((u32)dma_handle) The cast befor ethe cpu_to_ is safe if its 32bit I/O only. Maybe we should have cpu_to_le_dma_addr_t 8) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/