From patchwork Thu Dec 24 08:09:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 41744 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CE6CEB7BF8 for ; Thu, 24 Dec 2009 19:30:15 +1100 (EST) Received: from localhost ([127.0.0.1]:54599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNj5H-0003H8-8R for incoming@patchwork.ozlabs.org; Thu, 24 Dec 2009 03:30:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNilP-000236-96 for qemu-devel@nongnu.org; Thu, 24 Dec 2009 03:09:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNilE-0001vb-NT for qemu-devel@nongnu.org; Thu, 24 Dec 2009 03:09:32 -0500 Received: from [199.232.76.173] (port=42919 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNilE-0001uy-0G for qemu-devel@nongnu.org; Thu, 24 Dec 2009 03:09:28 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:39719) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NNilD-0004Uj-KT for qemu-devel@nongnu.org; Thu, 24 Dec 2009 03:09:27 -0500 Received: from ps.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with SMTP id 2310A106AB9; Thu, 24 Dec 2009 17:09:22 +0900 (JST) Received: (nullmailer pid 22821 invoked by uid 1000); Thu, 24 Dec 2009 08:09:20 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org, kraxel@redhat.com Date: Thu, 24 Dec 2009 17:09:12 +0900 Message-Id: <1261642160-22754-20-git-send-email-yamahata@valinux.co.jp> X-Mailer: git-send-email 1.6.5.4 In-Reply-To: <1261642160-22754-1-git-send-email-yamahata@valinux.co.jp> References: <1261642160-22754-1-git-send-email-yamahata@valinux.co.jp> X-Virus-Scanned: clamav-milter 0.95.2 at va-mail.local.valinux.co.jp X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: yamahata@valinux.co.jp Subject: [Qemu-devel] [PATCH V10 19/27] pc: move rtc declarations from pc.h into a dedicated header file. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Move rtc_xxx declarations from pc.h into mc146818rtc.h. Signed-off-by: Isaku Yamahata --- hw/mc146818rtc.h | 10 ++++++++++ hw/pc.h | 10 ++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 hw/mc146818rtc.h diff --git a/hw/mc146818rtc.h b/hw/mc146818rtc.h new file mode 100644 index 0000000..7211dae --- /dev/null +++ b/hw/mc146818rtc.h @@ -0,0 +1,10 @@ +#ifndef MC146818RTC_H +#define MC146818RTC_H + +typedef struct RTCState RTCState; + +RTCState *rtc_init(int base_year); +void rtc_set_memory(RTCState *s, int addr, int val); +void rtc_set_date(RTCState *s, const struct tm *tm); + +#endif /* !MC146818RTC_H */ diff --git a/hw/pc.h b/hw/pc.h index 7b7639c..b748615 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -3,6 +3,7 @@ #include "qemu-common.h" #include "isa.h" +#include "mc146818rtc.h" /* PC-style peripherals (also used by other machines). */ @@ -88,16 +89,9 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq, target_phys_addr_t base, ram_addr_t size, target_phys_addr_t mask); -/* mc146818rtc.c */ - -typedef struct RTCState RTCState; - -RTCState *rtc_init(int base_year); -void rtc_set_memory(RTCState *s, int addr, int val); -void rtc_set_date(RTCState *s, const struct tm *tm); +/* pc.c */ void cmos_set_s3_resume_fn(void *opaque, int n, int level); -/* pc.c */ extern int fd_bootchk; void pc_register_ferr_irq(qemu_irq irq);