From patchwork Tue Jan 8 18:41:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 1947261 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1D7BFDF23A for ; Tue, 8 Jan 2013 18:41:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757069Ab3AHSlr (ORCPT ); Tue, 8 Jan 2013 13:41:47 -0500 Received: from mail-vc0-f173.google.com ([209.85.220.173]:55227 "EHLO mail-vc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756998Ab3AHSlq (ORCPT ); Tue, 8 Jan 2013 13:41:46 -0500 Received: by mail-vc0-f173.google.com with SMTP id f13so731773vcb.4 for ; Tue, 08 Jan 2013 10:41:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=GyBMcTvEmW/CoXicbcYuE8NkqC5XKK1+/AYQrwJj2Kw=; b=ct9FEEDbfTulMhhQ0DRulBNLHWEhPMUVdvPWJAdEuNuMG8sXGy09kQfk365swuxrsh lkDFgVsv/F/T3K4DF/grhDtXUtUJG4OSJwm+jMxbXWDXCtOPyj5z5NlwlEGTwGHleh4o 8wcr6q9anYat2K/3DJwCJcPEeNTHSc8YXMm2FhQTgKrH5HqcvRYtwpGXUP8upBxbFVQ+ T2hVYcg36K2tPqhg5w+dAzN5/QzWG9lFO44XqQ8L7PxulEHgUR1Bw7cxSL+Yepb5wsBz kAgAtQG2OPOI0CdDWYkih/9c2WPanF8SbFeMdE0uNoNuxBqtmWxJS3BNyypOU5KK+v5q w9+Q== X-Received: by 10.52.90.18 with SMTP id bs18mr75029066vdb.89.1357670505887; Tue, 08 Jan 2013 10:41:45 -0800 (PST) Received: from [127.0.1.1] (pool-72-80-83-148.nycmny.fios.verizon.net. [72.80.83.148]) by mx.google.com with ESMTPS id sk8sm54257038vdb.13.2013.01.08.10.41.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Jan 2013 10:41:45 -0800 (PST) Subject: [PATCH v5 03/12] ARM: gic: define GICH offsets for VGIC support To: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu From: Christoffer Dall Cc: Marc Zyngier Date: Tue, 08 Jan 2013 13:41:44 -0500 Message-ID: <20130108184144.46558.11556.stgit@ubuntu> In-Reply-To: <20130108184116.46558.3558.stgit@ubuntu> References: <20130108184116.46558.3558.stgit@ubuntu> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQnLebHnvf0l/BcFbsJ+YeB8b7t1T5DEKbPlZkbTWj6gZwKGZo0DEiRTuDqE1db1MeGL36v0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Marc Zyngier The GICH_* constants are defined by the GIC HW spec, and even though they only be used by KVM to begin with, define them generically in gic.h. Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/include/asm/hardware/gic.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/include/asm/hardware/gic.h b/arch/arm/include/asm/hardware/gic.h index 4b1ce6c..dd1add1 100644 --- a/arch/arm/include/asm/hardware/gic.h +++ b/arch/arm/include/asm/hardware/gic.h @@ -32,6 +32,31 @@ #define GIC_DIST_CONFIG 0xc00 #define GIC_DIST_SOFTINT 0xf00 +#define GICH_HCR 0x0 +#define GICH_VTR 0x4 +#define GICH_VMCR 0x8 +#define GICH_MISR 0x10 +#define GICH_EISR0 0x20 +#define GICH_EISR1 0x24 +#define GICH_ELRSR0 0x30 +#define GICH_ELRSR1 0x34 +#define GICH_APR 0xf0 +#define GICH_LR0 0x100 + +#define GICH_HCR_EN (1 << 0) +#define GICH_HCR_UIE (1 << 1) + +#define GICH_LR_VIRTUALID (0x3ff << 0) +#define GICH_LR_PHYSID_CPUID_SHIFT (10) +#define GICH_LR_PHYSID_CPUID (7 << GICH_LR_PHYSID_CPUID_SHIFT) +#define GICH_LR_STATE (3 << 28) +#define GICH_LR_PENDING_BIT (1 << 28) +#define GICH_LR_ACTIVE_BIT (1 << 29) +#define GICH_LR_EOI (1 << 19) + +#define GICH_MISR_EOI (1 << 0) +#define GICH_MISR_U (1 << 1) + #ifndef __ASSEMBLY__ #include struct device_node;