summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/dev/bonitoreg.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-05 20:51:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-05 20:51:23 +0000
commit5dd3a9bf5326194c7328b0da0eb256cdb3056ee9 (patch)
tree9105413cd2b1455b29a571a6c4252de50fe37f19 /sys/arch/loongson/dev/bonitoreg.h
parenta0e63efdb88447db80c33fccc16f89ad6b0723dc (diff)
Blind support for the EMTEC Gdium Liberty netbook. Per-platform configuration
is moved to specific files, and a pointer to the key configuration structure is now kept in struct sys_config. bonito(4) interrupt handling is split, to allow PCI+Legacy interrupt systems (Lemote Yeelong) and PCI-only Legacy-free systems (Gdium) to coexist peacefully.
Diffstat (limited to 'sys/arch/loongson/dev/bonitoreg.h')
-rw-r--r--sys/arch/loongson/dev/bonitoreg.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/loongson/dev/bonitoreg.h b/sys/arch/loongson/dev/bonitoreg.h
index 0ece5e21c19..23b5097cc18 100644
--- a/sys/arch/loongson/dev/bonitoreg.h
+++ b/sys/arch/loongson/dev/bonitoreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bonitoreg.h,v 1.2 2010/01/31 19:12:12 miod Exp $ */
+/* $OpenBSD: bonitoreg.h,v 1.3 2010/02/05 20:51:22 miod Exp $ */
/* $NetBSD: bonitoreg.h,v 1.6 2005/12/24 20:07:19 perry Exp $ */
/*
@@ -70,6 +70,10 @@
#define BONITO_PCI_REG(x) BONITO(BONITO_PCICONFIGBASE + (x))
+#define BONITO_REV_FPGA(x) ((x) & 0x80)
+#define BONITO_REV_MAJOR(x) (((x) >> 4) & 0x7)
+#define BONITO_REV_MINOR(x) ((x) & 0xf)
+
/* Controller configuration */
#define LOONGSON_PONCFG BONITO(BONITO_REGBASE + 0x00)
@@ -90,7 +94,7 @@
/* ICU Configuration Regs - r/w */
#define BONITO_INTEDGE BONITO(BONITO_REGBASE + 0x24)
-/* INTSTEER is not implemented */
+#define BONITO_INTSTEER BONITO(BONITO_REGBASE + 0x28)
#define BONITO_INTPOL BONITO(BONITO_REGBASE + 0x2c)
/* ICU Enable Regs - INTEN and INTISR are read only */