Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LELpL-0003LP-Sm for qemu-devel@nongnu.org; Sun, 21 Dec 2008 05:46:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LELpJ-0003JJ-K0 for qemu-devel@nongnu.org; Sun, 21 Dec 2008 05:46:25 -0500 Received: from [199.232.76.173] (port=52533 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LELpJ-0003JB-FV for qemu-devel@nongnu.org; Sun, 21 Dec 2008 05:46:25 -0500 Received: from savannah.gnu.org ([199.232.41.3]:41586 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LELpJ-0006d6-4g for qemu-devel@nongnu.org; Sun, 21 Dec 2008 05:46:25 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LELpI-00022Y-Es for qemu-devel@nongnu.org; Sun, 21 Dec 2008 10:46:24 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LELpI-00022S-3i for qemu-devel@nongnu.org; Sun, 21 Dec 2008 10:46:24 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 21 Dec 2008 10:46:24 +0000 Subject: [Qemu-devel] [6118] add Arbiter Enable Register support to sparc iommu (Robert Reif) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6118 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6118 Author: blueswir1 Date: 2008-12-21 10:46:23 +0000 (Sun, 21 Dec 2008) Log Message: ----------- add Arbiter Enable Register support to sparc iommu (Robert Reif) Modified Paths: -------------- trunk/hw/iommu.c Modified: trunk/hw/iommu.c =================================================================== --- trunk/hw/iommu.c 2008-12-21 01:37:01 UTC (rev 6117) +++ trunk/hw/iommu.c 2008-12-21 10:46:23 UTC (rev 6118) @@ -78,6 +78,19 @@ #define IOMMU_AFAR (0x1004 >> 2) +#define IOMMU_AER (0x1008 >> 2) /* Arbiter Enable Register */ +#define IOMMU_AER_EN_P0_ARB 0x00000001 /* MBus master 0x8 (Always 1) */ +#define IOMMU_AER_EN_P1_ARB 0x00000002 /* MBus master 0x9 */ +#define IOMMU_AER_EN_P2_ARB 0x00000004 /* MBus master 0xa */ +#define IOMMU_AER_EN_P3_ARB 0x00000008 /* MBus master 0xb */ +#define IOMMU_AER_EN_0 0x00010000 /* SBus slot 0 */ +#define IOMMU_AER_EN_1 0x00020000 /* SBus slot 1 */ +#define IOMMU_AER_EN_2 0x00040000 /* SBus slot 2 */ +#define IOMMU_AER_EN_3 0x00080000 /* SBus slot 3 */ +#define IOMMU_AER_EN_F 0x00100000 /* SBus on-board */ +#define IOMMU_AER_SBW 0x80000000 /* S-to-M asynchronous writes */ +#define IOMMU_AER_MASK 0x801f000f + #define IOMMU_SBCFG0 (0x1010 >> 2) /* SBUS configration per-slot */ #define IOMMU_SBCFG1 (0x1014 >> 2) /* SBUS configration per-slot */ #define IOMMU_SBCFG2 (0x1018 >> 2) /* SBUS configration per-slot */ @@ -196,6 +209,9 @@ s->regs[saddr] = val; qemu_irq_lower(s->irq); break; + case IOMMU_AER: + s->regs[saddr] = (val & IOMMU_AER_MASK) | IOMMU_AER_EN_P0_ARB; + break; case IOMMU_AFSR: s->regs[saddr] = (val & IOMMU_AFSR_MASK) | IOMMU_AFSR_RESV; qemu_irq_lower(s->irq); @@ -344,6 +360,7 @@ s->regs[IOMMU_CTRL] = s->version; s->regs[IOMMU_ARBEN] = IOMMU_MID; s->regs[IOMMU_AFSR] = IOMMU_AFSR_RESV; + s->regs[IOMMU_AER] = IOMMU_AER_EN_P0_ARB | IOMMU_AER_EN_P1_ARB; s->regs[IOMMU_MASK_ID] = IOMMU_TS_MASK; qemu_irq_lower(s->irq); }