summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-04-27 14:46:26 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-04-27 14:46:26 +0000
commit48447e8aeb505229ae7b3d42e2fecc56e6658a17 (patch)
tree55960837e2a8a6f6a9bc637bc0e7edb2fe08ab89
parent630660d7b52dc94cc09f34d86fa9769393252230 (diff)
add a section to define the nx memory layout
-rw-r--r--sys/dev/pci/if_nxreg.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nxreg.h b/sys/dev/pci/if_nxreg.h
index 6df81592faa..72d71516524 100644
--- a/sys/dev/pci/if_nxreg.h
+++ b/sys/dev/pci/if_nxreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nxreg.h,v 1.1 2007/04/16 16:21:11 reyk Exp $ */
+/* $OpenBSD: if_nxreg.h,v 1.2 2007/04/27 14:46:25 reyk Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -112,6 +112,16 @@ struct nx_statusdesc {
} __packed;
/*
+ * Memory layout
+ */
+
+#define NXPCIMEM_SIZE_128MB 0x08000000 /* 128MB size */
+#define NXPCIMEM_SIZE_32MB 0x02000000 /* 32MB size */
+
+#define NXPCIMAP_DIRECT_CRB 0x04400000
+#define NXPCIMAP_CRB 0x06000000
+
+/*
* PCI Express Registers
*/