summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-09-23 21:40:34 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2005-09-23 21:40:34 +0000
commit2659cc85530c18d9e3c86f79ed498433008fead7 (patch)
treeebbce1469192820e4c576c98aa72cc57d117ac3d /sys/dev/pci
parentf28173642f642969fe9c4719140f66e00b56a4da (diff)
addition O2Micro registers needed to make certain chipsets work (atheros
seems to be one of them). from linux via Leonardo Chiquitto Filho <leonardo at iken dot com dot br>
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pccbbreg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/pccbbreg.h b/sys/dev/pci/pccbbreg.h
index f5730f02306..d86c4dba852 100644
--- a/sys/dev/pci/pccbbreg.h
+++ b/sys/dev/pci/pccbbreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbbreg.h,v 1.5 2005/09/19 19:04:19 fgsch Exp $ */
+/* $OpenBSD: pccbbreg.h,v 1.6 2005/09/23 21:40:33 fgsch Exp $ */
/* $NetBSD: pccbbreg.h,v 1.5 2000/06/07 09:02:47 haya Exp $ */
/*
* Copyright (c) 1999 HAYAKAWA Koichi. All rights reserved.
@@ -194,6 +194,14 @@
# define TOPIC100_PMCSR_MASK 0x00000003
# define TOPIC100_PMCSR_D0 0x0
+/*
+ * Addition O2Micro registers
+ */
+#define O2MICRO_RESERVED1 0x94
+#define O2MICRO_RESERVED2 0xD4
+#define O2MICRO_RES_READ_PREFETCH 0x02
+#define O2MICRO_RES_WRITE_BURST 0x08
+
/* socket event register (CB_SOCKET_EVENT) elements */
#define CB_SOCKET_EVENT_CSTS 0x01 /* CARDSTS event occurs */
#define CB_SOCKET_EVENT_CD 0x06 /* CD event occurs */