From patchwork Sat Feb 12 10:42:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Cohen X-Patchwork-Id: 551651 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 p1CAgwqV017488 for ; Sat, 12 Feb 2011 10:43:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756285Ab1BLKnO (ORCPT ); Sat, 12 Feb 2011 05:43:14 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:58548 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753542Ab1BLKnE (ORCPT ); Sat, 12 Feb 2011 05:43:04 -0500 Received: by ewy5 with SMTP id 5so1719512ewy.19 for ; Sat, 12 Feb 2011 02:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=w5YDWDuhk4f1Fo63uWgAL3Z3Ezm8Bp/8qRreuPvE1v0=; b=cvvlLMWg8xu9i7oGrm0YIB330KCyioODQK71WU1x77YINpWlZDJdYxuZloUtiVmo7e JwCvEB8xFdgHf8zb4Eu5Z3zgz47icDW+dRwjJHleTyXaCFgNoWp02ap/y9brX8piI234 DtjvIRDKRzEY6IddFU7B4XhFzUzI//uyfEnJc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=SUG5BOqZNu0JTH2Upc8h23QROKFuq3EV7RJKiiRblSzH03b9ab6C+MjdaQnTohJdsr IdKx+uP7ervv1gOKIWZhKt2s8weeZ8BbxQTBw5OjG9fGD+POmtL2zpxMXttc4bXW2kEa +GR5hTIwFkEkJztYclDUlYlHK+AP8NkHYAiGk= Received: by 10.213.34.208 with SMTP id m16mr1548935ebd.65.1297507382943; Sat, 12 Feb 2011 02:43:02 -0800 (PST) Received: from localhost.localdomain (a91-152-85-108.elisa-laajakaista.fi [91.152.85.108]) by mx.google.com with ESMTPS id u1sm305065eeh.10.2011.02.12.02.43.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Feb 2011 02:43:01 -0800 (PST) From: David Cohen To: Hiroshi.DOYU@nokia.com Cc: linux-omap@vger.kernel.org, David Cohen Subject: [RFC/PATCH 1/3] OMAP: IOMMU: Add generic IOMMU errors code Date: Sat, 12 Feb 2011 12:42:51 +0200 Message-Id: <1297507373-1520-2-git-send-email-dacohen@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1297507373-1520-1-git-send-email-dacohen@gmail.com> References: <1297507373-1520-1-git-send-email-dacohen@gmail.com> 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]); Sat, 12 Feb 2011 10:43:54 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/iommu.h b/arch/arm/plat-omap/include/plat/iommu.h index 69230d6..71f369d 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 OMAP_IOMMU_ERR_TLB_MISS (1 << 0) +#define OMAP_IOMMU_ERR_TRANS_FAULT (1 << 1) +#define OMAP_IOMMU_ERR_EMU_MISS (1 << 2) +#define OMAP_IOMMU_ERR_TBLWALK_FAULT (1 << 3) +#define OMAP_IOMMU_ERR_MULTIHIT_FAULT (1 << 4) + #if defined(CONFIG_ARCH_OMAP1) #error "iommu for this processor not implemented yet" #else