From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46588 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPvMO-0002xu-73 for qemu-devel@nongnu.org; Tue, 07 Dec 2010 06:06:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPvLS-0007bn-Ln for qemu-devel@nongnu.org; Tue, 07 Dec 2010 06:05:27 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:53499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPvLS-0007bc-86 for qemu-devel@nongnu.org; Tue, 07 Dec 2010 06:04:30 -0500 Message-ID: <4CFE14BC.2080308@adacore.com> Date: Tue, 07 Dec 2010 12:04:28 +0100 From: Fabien Chouteau MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 4/6] [RFC] Header file for the GRLIB components. References: <5c4895c6f9c6ebd80262c494563726dd59a7ff93.1291397462.git.chouteau@adacore.com> <3ecbaf8fc01bebd2b2f2fb2c709642b2a1db7ff0.1291397462.git.chouteau@adacore.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On 12/06/2010 06:31 PM, Blue Swirl wrote: > On Mon, Dec 6, 2010 at 9:26 AM, Fabien Chouteau wrote: >> >> Signed-off-by: Fabien Chouteau >> --- >> hw/grlib.h | 27 +++++++++++++++++++++++++++ >> 1 files changed, 27 insertions(+), 0 deletions(-) >> >> diff --git a/hw/grlib.h b/hw/grlib.h >> new file mode 100644 >> index 0000000..eab7974 >> --- /dev/null >> +++ b/hw/grlib.h >> @@ -0,0 +1,27 @@ >> +#ifndef _GRLIB_H_ >> +#define _GRLIB_H_ >> + >> +#include "qdev.h" >> + >> +/* IRQMP */ >> + >> +DeviceState *grlib_irqmp_create(target_phys_addr_t base, >> + CPUState *env, >> + qemu_irq **cpu_irqs, >> + uint32_t nr_irqs); >> + >> +/* GPTimer */ >> + >> +DeviceState *grlib_gptimer_create(target_phys_addr_t base, >> + uint32_t nr_timers, >> + uint32_t freq, >> + qemu_irq *cpu_irqs, >> + int base_irq); >> + >> +/* APB UART */ >> + >> +DeviceState *grlib_apbuart_create(target_phys_addr_t base, >> + CharDriverState *serial, >> + qemu_irq irq); >> + > > The file should not be needed when you move the functions to leon3.c. These functions can be used to create more machines with GrLib components, that's why they are implemented in the grlib_* files. -- Fabien Chouteau