From patchwork Sat Jun 5 21:30:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 54782 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 AAB7FB7D1B for ; Sun, 6 Jun 2010 07:32:47 +1000 (EST) Received: from localhost ([127.0.0.1]:52166 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OL0yx-0001xd-1z for incoming@patchwork.ozlabs.org; Sat, 05 Jun 2010 17:32:43 -0400 Received: from [140.186.70.92] (port=42429 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OL0xV-0001v1-JK for qemu-devel@nongnu.org; Sat, 05 Jun 2010 17:31:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OL0xU-0005k6-Jl for qemu-devel@nongnu.org; Sat, 05 Jun 2010 17:31:13 -0400 Received: from mail-px0-f173.google.com ([209.85.212.173]:46488) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OL0xU-0005hy-Da for qemu-devel@nongnu.org; Sat, 05 Jun 2010 17:31:12 -0400 Received: by mail-px0-f173.google.com with SMTP id 2so749153pxi.4 for ; Sat, 05 Jun 2010 14:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=4hVWDQzDkTgpDHZ02gK5vND6lZ45HfzwybpqJikD1pg=; b=bXltJ5FdFRbwvUlA5KXfTOSLbVrDBNhxMBJwMU0tgEni2qOJZSK8Q7D5JV/EZYdpIH 6btTzHJQJmH3lwSVDMC9zV8Sb+QYv47EsMCqdtmGTUPY1BZYoMxQg3ZykqPNcCvK8+j3 CKo/nFH/TgM/HQZ8HSkhQ4S/MWafT4L3X0q0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=s+e2oUfc4SkAtsni1cEjnC3/e77oLxkZTUwOQ8nZq7Oo3xz+qoqf7d3JOEzxaVtmWp hDcU72t3F6RfAuA+6RvT3GdgXKLiZIXdEpEXM6nioOhKFpul25ylCAoPnY1KIqnUl6yz EM/m/HDz3KKsf91dAj0QnwFgu9hrk6ICcgk3k= Received: by 10.140.251.3 with SMTP id y3mr10219378rvh.227.1275773472049; Sat, 05 Jun 2010 14:31:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.44.12 with HTTP; Sat, 5 Jun 2010 14:30:52 -0700 (PDT) From: Blue Swirl Date: Sat, 5 Jun 2010 21:30:52 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 2/6] apic.h: rearrange 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 Rearrange and add comments to tell where each function is implemented. Signed-off-by: Blue Swirl --- hw/apic.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/apic.h b/hw/apic.h index e1954f4..c92d188 100644 --- a/hw/apic.h +++ b/hw/apic.h @@ -1,7 +1,7 @@ #ifndef APIC_H #define APIC_H -typedef struct IOAPICState IOAPICState; +/* apic.c */ void apic_deliver_irq(uint8_t dest, uint8_t dest_mode, uint8_t delivery_mode, uint8_t vector_num, uint8_t polarity, @@ -10,10 +10,14 @@ int apic_init(CPUState *env); int apic_accept_pic_intr(CPUState *env); void apic_deliver_pic_intr(CPUState *env, int level); int apic_get_interrupt(CPUState *env); -qemu_irq *ioapic_init(void); void apic_reset_irq_delivered(void); int apic_get_irq_delivered(void); +/* ioapic.c */ +typedef struct IOAPICState IOAPICState; +qemu_irq *ioapic_init(void); + +/* pc.c */ int cpu_is_bsp(CPUState *env); #endif