From patchwork Wed Jan 6 02:39:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Isaku Yamahata X-Patchwork-Id: 42266 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 05F6BB6EEE for ; Wed, 6 Jan 2010 14:19:39 +1100 (EST) Received: from localhost ([127.0.0.1]:53037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSMQM-0008FC-1O for incoming@patchwork.ozlabs.org; Tue, 05 Jan 2010 22:19:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NSLoi-0004Qe-6i for qemu-devel@nongnu.org; Tue, 05 Jan 2010 21:40:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NSLoS-0004Gi-Vd for qemu-devel@nongnu.org; Tue, 05 Jan 2010 21:40:00 -0500 Received: from [199.232.76.173] (port=54786 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NSLoR-0004GR-Rr for qemu-devel@nongnu.org; Tue, 05 Jan 2010 21:39:55 -0500 Received: from mail.valinux.co.jp ([210.128.90.3]:60932) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NSLoR-0003kz-2y for qemu-devel@nongnu.org; Tue, 05 Jan 2010 21:39:55 -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 78A0A182A0; Wed, 6 Jan 2010 11:39:45 +0900 (JST) Received: (nullmailer pid 28764 invoked by uid 1000); Wed, 06 Jan 2010 02:39:52 -0000 From: Isaku Yamahata To: qemu-devel@nongnu.org, kraxel@redhat.com, aurelien@aurel32.net Date: Wed, 6 Jan 2010 11:39:43 +0900 Message-Id: <1262745591-28697-20-git-send-email-yamahata@valinux.co.jp> X-Mailer: git-send-email 1.6.5.4 In-Reply-To: <1262745591-28697-1-git-send-email-yamahata@valinux.co.jp> References: <1262745591-28697-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 V12 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 Acked-by: Gerd Hoffmann --- 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);