From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nobuhiro Iwamatsu Date: Mon, 30 Jun 2008 13:39:41 +0900 Subject: [U-Boot-Users] [PATCH][RFC] pci: Divided pci code of the powerpc In-Reply-To: <48576A0A.1070704@renesas.com> References: <48576A0A.1070704@renesas.com> Message-ID: <4868638D.3010608@renesas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, all. Could comment about this patch. Best regards, Nobuhiro Nobuhiro Iwamatsu wrote: > A source code of pci is written mainly on powerpc. > Macro uses a pci source code of powerpc because other architecture > (ex. SuperH) doesn't work. > > I made asm-ppc/pci.h and moved macro of pci. > Other archtecture need to make the following macro in asm-xxx/pci.h > #define pci_phys_to_mem(dev, addr) (addr) > #define pci_mem_to_phys(dev, addr) (addr) > #define pci_phys_to_io(dev, addr) (addr) > #define pci_io_to_phys(dev, addr) (addr) > > Or have to make a function for pci address conversion. > However, I want comment because I do not know the other architecture. > > Signed-off-by: Nobuhiro Iwamatsu