Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/nvidia add more AFI BAR register offsets
details: https://anonhg.NetBSD.org/src/rev/380977bff6de
branches: trunk
changeset: 341619:380977bff6de
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Nov 14 01:38:58 2015 +0000
description:
add more AFI BAR register offsets
diffstat:
sys/arch/arm/nvidia/tegra_pciereg.h | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r 9b4edfe11a39 -r 380977bff6de sys/arch/arm/nvidia/tegra_pciereg.h
--- a/sys/arch/arm/nvidia/tegra_pciereg.h Sat Nov 14 01:31:08 2015 +0000
+++ b/sys/arch/arm/nvidia/tegra_pciereg.h Sat Nov 14 01:38:58 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_pciereg.h,v 1.2 2015/10/15 09:06:04 jmcneill Exp $ */
+/* $NetBSD: tegra_pciereg.h,v 1.3 2015/11/14 01:38:58 jakllsch Exp $ */
/*-
* Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,6 +30,20 @@
#define _ARM_TEGRA_PCIEREG_H
/* AFI */
+#define AFI_AXI_NBAR 9
+
+#define AFI_AXI_BARi_SZ(i) ((i) < 6 ? \
+ 0x000 + ((i) - 0) * 0x04 : \
+ 0x134 + ((i) - 6) * 0x04)
+
+#define AFI_AXI_BARi_START(i) ((i) < 6 ? \
+ 0x018 + ((i) - 0) * 0x04 : \
+ 0x140 + ((i) - 6) * 0x04)
+
+#define AFI_FPCI_BARi(i) ((i) < 6 ? \
+ 0x030 + ((i) - 0) * 0x04 : \
+ 0x14c + ((i) - 6) * 0x04)
+
#define AFI_MSI_BAR_SZ_REG 0x60
#define AFI_MSI_FPCI_BAR_ST_REG 0x64
#define AFI_MSI_AXI_BAR_ST_REG 0x68
Home |
Main Index |
Thread Index |
Old Index