From: Keir Fraser Subject: Re: pcifront for ia64 Date: Thu, 27 Jul 2006 13:12:17 +0100 Message-ID: References: <200607271141.14467.Tristan.Gingold@bull.net> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200607271141.14467.Tristan.Gingold@bull.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tristan Gingold Cc: xen-devel@lists.xensource.com, xen-ia64-devel List-Id: xen-devel@lists.xenproject.org On 27 Jul 2006, at 10:41, Tristan Gingold wrote: > this patch ports pcifont to ia64. pciback compiles without any change. > > I had to make a few change because pcifront use its own structure > (struct pcifront_sd) for sysdata while ia64 wants it own (at least for > pcibios_fixup_bus). My solution is to reuse the ia64 sysdata structure > for pcifront, at the cost of a few ugly #ifdef. > > Comments and ideas are welcome to improve this. > > Also the patch fix a compile-time warning for xenbus.c. > > Using this patch I was able to use an ethernet card in domU. This is > the good news. Move the sysdata initialisation to static inline functions in pcifront.h. That means you only have a single big ifdef in the header, and none in the main C files. With that change this will be fine to check in. -- Keir