Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 13 Nov 2002 03:23:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 13 Nov 2002 03:23:38 -0500 Received: from 12-231-249-244.client.attbi.com ([12.231.249.244]:61969 "HELO kroah.com") by vger.kernel.org with SMTP id ; Wed, 13 Nov 2002 03:23:38 -0500 Date: Wed, 13 Nov 2002 00:25:10 -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: <20021113082510.GA3064@kroah.com> References: <20021109060342.GA7798@kroah.com> <200211091533.gA9FXuW02017@localhost.localdomain> <20021113061310.GD2106@kroah.com> <20021113075223.GZ2106@kroah.com> <20021113081008.GC2106@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1347 Lines: 27 On Wed, Nov 13, 2002 at 05:26:34PM +0900, Miles Bader wrote: > Greg KH writes: > > > 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? > > Currently, it ignores the pci_dev argument entirely (I've never had a > device that needed the mask, so I haven't bothered with it). It just > allocates a block from the special memory region and returns the result. So merely renaming that function to dev_alloc_consistent(), changing the first paramater to be a struct device, and proving a macro for all of the pci drivers for the old pci_alloc_consistent() name would work just fine for you? greg k-h - 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/