From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kroah.com (12-231-249-244.client.attbi.com [12.231.249.244]) by dsl2.external.hp.com (Postfix) with SMTP id 5D8564829 for ; Wed, 13 Nov 2002 01:15:34 -0700 (MST) Date: Wed, 13 Nov 2002 00:10:08 -0800 From: Greg KH To: Miles Bader Cc: "J.E.J. Bottomley" , Matthew Wilcox , "Adam J. Richter" , andmike@us.ibm.com, hch@lst.de, linux-kernel@vger.kernel.org, mochel@osdl.org, parisc-linux@lists.parisc-linux.org Subject: Re: [parisc-linux] Untested port of parisc_device to generic device interface Message-ID: <20021113081008.GC2106@kroah.com> References: <20021109060342.GA7798@kroah.com> <200211091533.gA9FXuW02017@localhost.localdomain> <20021113061310.GD2106@kroah.com> <20021113075223.GZ2106@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: On Wed, Nov 13, 2002 at 05:02:39PM +0900, Miles Bader wrote: > Greg KH writes: > > > This this would end up [or have the ability to] invoking a bus-specific > > > routine at some point, right? [so that a truly PCI-specific definition > > > could be still be had] > > > > If that was needed, yes, we should not break that functionality. > > > > Are there any existing archs that need more than just dma_mask moved to > > struct device out of pci_dev? Hm, ppc might need a bit more... > > I can't speak for `real machines,' but on my wierd embedded board, > pci_alloc_consistent allocates from a special area of memory (not > located at 0) that is the only shared memory between PCI devices and the > CPU. pci_alloc_consistent happens to fit this situation quite well, but > I don't think a bitmask is enough to express the situation. What does your pci_alloc_consistent() function need from the pci_dev structure in order to do what you need it to do? Anything other than the dma_mask value? thanks, greg k-h