From patchwork Mon Jan 31 17:25:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Cohen X-Patchwork-Id: 520381 X-Patchwork-Delegate: hiroshi.doyu@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0VHPlPj019362 for ; Mon, 31 Jan 2011 17:25:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756226Ab1AaRZd (ORCPT ); Mon, 31 Jan 2011 12:25:33 -0500 Received: from smtp.nokia.com ([147.243.128.26]:64871 "EHLO mgw-da02.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756222Ab1AaRZc (ORCPT ); Mon, 31 Jan 2011 12:25:32 -0500 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da02.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p0VHPTTV021901; Mon, 31 Jan 2011 19:25:30 +0200 Received: from dhcppc2.europe.nokia.com ([essapo-nirac253244.europe.nokia.com [10.162.253.244]]) by mgw-da02.nokia.com with RELAY id p0VHPBcJ021692 ; Mon, 31 Jan 2011 19:25:15 +0200 From: David Cohen To: linux-omap@vger.kernel.org Cc: tony@atomide.com, David Cohen Subject: [PATCH 1/2] OMAP: Add generic IOMMU errors code Date: Mon, 31 Jan 2011 19:25:07 +0200 Message-Id: <1296494708-17569-2-git-send-email-david.cohen@nokia.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1296494708-17569-1-git-send-email-david.cohen@nokia.com> References: <1296494708-17569-1-git-send-email-david.cohen@nokia.com> X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 31 Jan 2011 17:25:48 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/iommu.h b/arch/arm/plat-omap/include/plat/iommu.h index 69230d6..c653fd7 100644 --- a/arch/arm/plat-omap/include/plat/iommu.h +++ b/arch/arm/plat-omap/include/plat/iommu.h @@ -109,6 +109,13 @@ struct iommu_platform_data { u32 da_end; }; +/* IOMMU errors */ +#define IOMMU_ERR_TLB_MISS (1 << 0) +#define IOMMU_ERR_TRANS_FAULT (1 << 1) +#define IOMMU_ERR_EMU_MISS (1 << 2) +#define IOMMU_ERR_TBLWALK_FAULT (1 << 3) +#define IOMMU_ERR_MULTIHIT_FAULT (1 << 4) + #if defined(CONFIG_ARCH_OMAP1) #error "iommu for this processor not implemented yet" #else