summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-07-01 12:14:14 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-07-01 12:14:14 +0000
commit1686adb07a9aa765df6c34dab626abf6a242e568 (patch)
treef02e440428fc10746f238c6f62e723a15b22806d /sys/arch
parenta62230c6da7dd86a768dbcd159bb08718244e829 (diff)
Add PDC_IO.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/include/param.h10
-rw-r--r--sys/arch/hppa/include/pdc.h7
2 files changed, 7 insertions, 10 deletions
diff --git a/sys/arch/hppa/include/param.h b/sys/arch/hppa/include/param.h
index bda05751055..06bf6a70c12 100644
--- a/sys/arch/hppa/include/param.h
+++ b/sys/arch/hppa/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.33 2006/08/12 17:54:38 krw Exp $ */
+/* $OpenBSD: param.h,v 1.34 2007/07/01 12:14:13 kettenis Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -110,14 +110,6 @@
#define ISHPMMADDR(v) 0 /* XXX ...jef */
#define HPMMBASEADDR(v) ((unsigned)(v) & ~HPMMMASK)
#endif
-
-#ifndef _LOCORE
-#define CONADDR conaddr
-#define CONUNIT conunit
-#define COM_FREQ 7372800
-extern hppa_hpa_t conaddr;
-extern int conunit;
-#endif
#endif
#define __SWAP_BROKEN
diff --git a/sys/arch/hppa/include/pdc.h b/sys/arch/hppa/include/pdc.h
index e6443ec66dd..f3bfa29f617 100644
--- a/sys/arch/hppa/include/pdc.h
+++ b/sys/arch/hppa/include/pdc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.h,v 1.33 2007/05/21 23:00:19 kettenis Exp $ */
+/* $OpenBSD: pdc.h,v 1.34 2007/07/01 12:14:13 kettenis Exp $ */
/*
* Copyright (c) 1990 mt Xinu, Inc. All rights reserved.
@@ -274,6 +274,11 @@
#define PDC_EEPROM_READ_BYTE 2
#define PDC_EEPROM_WRITE_BYTE 3
+#define PDC_IO 135
+#define PDC_IO_READ_AND_CLEAR_ERRORS 0
+#define PDC_IO_RESET 1
+#define PDC_IO_RESET_DEVICES 2
+
#define PDC_BROADCAST_RESET 136
#define PDC_DO_RESET 0
#define PDC_DO_FIRM_TEST_RESET 1