summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/kernel/pbus.h
diff options
context:
space:
mode:
authorschodet2003-05-01 20:47:49 +0000
committerschodet2003-05-01 20:47:49 +0000
commitee0d232c6247e8570bd2a522de21626c1b00ab75 (patch)
treea7986b8a83e80fe725a4077464938d0610330172 /2003/i/buzz/src/kernel/pbus.h
parent30ea7faee31ad69f3f0886dae8bb58e1fe31a74f (diff)
Import des sources du driver kernel pour le busp.
Diffstat (limited to '2003/i/buzz/src/kernel/pbus.h')
-rw-r--r--2003/i/buzz/src/kernel/pbus.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/2003/i/buzz/src/kernel/pbus.h b/2003/i/buzz/src/kernel/pbus.h
new file mode 100644
index 0000000..7b11499
--- /dev/null
+++ b/2003/i/buzz/src/kernel/pbus.h
@@ -0,0 +1,24 @@
+#ifndef _PBUS_H_
+#define _PBUS_H_
+
+#include <sys/ioctl.h>
+
+struct pbus_io
+{
+ unsigned char addr; /* Address */
+ unsigned char data; /* Data */
+ unsigned char ints; /* IRQ lines */
+};
+
+#define PBUS_DATAMASK 0x00FF
+#define PBUS_ADDRMASK 0x0F00
+#define PBUS_RnW 0x1000
+#define PBUS_CLK 0x2000
+#define PBUS_INTEN 0x4000
+
+#define PBUS_READ _IOWR('R', 1, struct pbus_io)
+#define PBUS_WRITE _IOWR('R', 2, struct pbus_io)
+#define PBUS_INTENABLE _IO('R', 3)
+
+#define CAM_SETFRAMESIZE _IOW('R', 10, unsigned long)
+#endif