summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/pdc.h40
1 files changed, 24 insertions, 16 deletions
diff --git a/sys/arch/hppa/include/pdc.h b/sys/arch/hppa/include/pdc.h
index c263f73836c..0e285910cd8 100644
--- a/sys/arch/hppa/include/pdc.h
+++ b/sys/arch/hppa/include/pdc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.h,v 1.26 2003/08/20 22:51:07 mickey Exp $ */
+/* $OpenBSD: pdc.h,v 1.27 2003/10/31 18:46:04 mickey Exp $ */
/*
* Copyright (c) 1990 mt Xinu, Inc. All rights reserved.
@@ -67,11 +67,11 @@
* | |
* MEM_FREE +--------------------+
* | |
- * | Console IODC |
+ * | Console IODC |
* | |
* MEM_FREE+64k +--------------------+
* | |
- * | Boot Device IODC |
+ * | Boot Device IODC |
* | |
* IPL_START +--------------------+
* | |
@@ -210,9 +210,9 @@
#define PDC_BLOCK_TLB 18 /* Manage Block TLB entries (BTLB) */
#define PDC_BTLB_DEFAULT 0 /* Return BTLB configuration info */
-#define PDC_BTLB_INSERT 1 /* Insert a BTLB entry */
-#define PDC_BTLB_PURGE 2 /* Purge a BTLB entry */
-#define PDC_BTLB_PURGE_ALL 3 /* Purge all BTLB entries */
+#define PDC_BTLB_INSERT 1 /* Insert a BTLB entry */
+#define PDC_BTLB_PURGE 2 /* Purge a BTLB entry */
+#define PDC_BTLB_PURGE_ALL 3 /* Purge all BTLB entries */
#define PDC_TLB 19 /* Manage Hardware TLB handling */
#define PDC_TLB_INFO 0 /* Return HW-TLB configuration info */
@@ -230,30 +230,30 @@
#define PDC_SYSMAP 22 /* map system modules */
#define PDC_SYSMAP_FIND 0 /* find module by index */
-#define PDC_SYSMAP_ADDR 1
-#define PDC_SYSMAP_HPA 2 /* same as PDC_MEMMAP_HPA */
+#define PDC_SYSMAP_ADDR 1 /* fetch list of addresses */
+#define PDC_SYSMAP_HPA 2 /* get hpa from devpath */
#define PDC_SOFT_POWER 23 /* support for soft power switch */
#define PDC_SOFT_POWER_INFO 0 /* get info about soft power switch */
#define PDC_SOFT_POWER_ENABLE 1 /* enable/disable soft power switch */
-#define PDC_PAT_IO 71 /* online services for IO modules */
+#define PDC_PAT_IO 71 /* online services for IO modules */
#define PDC_PAT_IO_GET_PCI_RTSZ 15
#define PDC_PAT_IO_GET_PCI_RT 16
-#define PDC_MEMMAP 128 /* hp700: return page information */
+#define PDC_MEMMAP 128 /* hp700: return page information */
#define PDC_MEMMAP_HPA 0 /* map module # to HPA */
-#define PDC_EEPROM 129 /* Hversion dependent */
+#define PDC_EEPROM 129 /* Hversion dependent */
#define PDC_EEPROM_READ_WORD 0
#define PDC_EEPROM_WRITE_WORD 1
#define PDC_EEPROM_READ_BYTE 2
#define PDC_EEPROM_WRITE_BYTE 3
-#define PDC_LAN_STATION_ID 138 /* Hversion dependent mechanism for */
-#define PDC_LAN_STATION_ID_READ 0 /* getting the lan station address */
+#define PDC_LAN_STATION_ID 138 /* Hversion dependent mechanism for */
+#define PDC_LAN_STATION_ID_READ 0 /* getting the lan station address */
-#define PDC_PCI_INDEX 147 /* PCI rt access */
+#define PDC_PCI_INDEX 147 /* PCI rt access */
#define PDC_PCI_GET_INT_TBL_SZ 13
#define PDC_PCI_GET_INT_TBL 14
@@ -448,7 +448,7 @@ struct pdc_btlb { /* PDC_BLOCK_TLB */
u_int max_size; /* Max size in pages */
struct btlb_info finfo; /* Fixed range info */
struct btlb_info vinfo; /* Variable range info */
- u_int filler[28];
+ u_int filler[28];
};
struct pdc_hwtlb { /* PDC_TLB */
@@ -475,6 +475,14 @@ struct pdc_sysmap_addrs { /* PDC_SYSMAP_ADDR */
u_int filler[30];
};
+struct pdc_sysmap_hpa { /* PDC_SYSMAP_HPA */
+ u_int hpa;
+ u_int size;
+ u_int naddrs;
+ u_int mod;
+ u_int filler[28];
+};
+
struct pdc_pat_io_num { /* PDC_PAT_IO */
u_int num;
u_int filler[31];
@@ -508,7 +516,7 @@ struct pdc_lan_station_id { /* PDC_LAN_STATION_ID */
* Interesting values for Hex1-Hex4 and the resulting LED displays:
*
* FnFF CnFF:
- * 0 - - - - - Counts in binary from 0x0 - 0xF
+ * 0 - - - - - Counts in binary from 0x0 - 0xF
* 2 o - - - - for corresponding values of `n'.
* 4 o o - - -
* 6 o o o - -