Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Straggler from last: add bus_user.h t...
details: https://anonhg.NetBSD.org/src/rev/df76e5bdc95b
branches: trunk
changeset: 768251:df76e5bdc95b
user: dyoung <dyoung%NetBSD.org@localhost>
date: Fri Aug 12 22:23:12 2011 +0000
description:
Straggler from last: add bus_user.h to the repository.
diffstat:
sys/arch/alpha/include/bus_user.h | 40 +++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diffs (44 lines):
diff -r a7758f250ed1 -r df76e5bdc95b sys/arch/alpha/include/bus_user.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/alpha/include/bus_user.h Fri Aug 12 22:23:12 2011 +0000
@@ -0,0 +1,40 @@
+/* $NetBSD: bus_user.h,v 1.1 2011/08/12 22:23:12 dyoung Exp $ */
+/*
+ * XXX This file is a stopgap intended to keep NetBSD/alpha buildable
+ * XXX while developers figure out whether/how to expose to userland
+ * XXX the bus_space(9) and pci(9) facilities used by libalpha (which
+ * XXX is used by X11).
+ * XXX
+ * XXX Do NOT add new definitions to this file.
+ */
+#ifndef _ALPHA_BUS_USER_H_
+#define _ALPHA_BUS_USER_H_
+
+#include <sys/types.h>
+
+/*
+ * Addresses (in bus space).
+ */
+typedef u_long bus_addr_t;
+typedef u_long bus_size_t;
+
+/*
+ * Translation of an Alpha bus address; INTERNAL USE ONLY.
+ */
+struct alpha_bus_space_translation {
+ bus_addr_t abst_bus_start; /* start of bus window */
+ bus_addr_t abst_bus_end; /* end of bus window */
+ paddr_t abst_sys_start; /* start of sysBus window */
+ paddr_t abst_sys_end; /* end of sysBus window */
+ int abst_addr_shift;/* address shift */
+ int abst_size_shift;/* size shift */
+ int abst_flags; /* flags; see below */
+};
+
+#define ABST_BWX 0x01 /* use BWX to access the bus */
+#define ABST_DENSE 0x02 /* space is dense */
+
+#define BUS_SPACE_MAP_LINEAR 0x02
+#define BUS_SPACE_MAP_PREFETCHABLE 0x04
+
+#endif /* _ALPHA_BUS_USER_H_ */
Home |
Main Index |
Thread Index |
Old Index