Go to the documentation of this file. 1 #ifndef _UAPI_PARISC_PDC_H
2 #define _UAPI_PARISC_PDC_H
10 #define PDC_REQ_ERR_1 2
11 #define PDC_REQ_ERR_0 1
13 #define PDC_BAD_PROC -1
14 #define PDC_BAD_OPTION -2
17 #define PDC_NE_CELL_MOD -7
18 #define PDC_INVALID_ARG -10
19 #define PDC_BUS_POW_WARN -12
20 #define PDC_NOT_NARROW -17
26 #define PDC_POW_FAIL 1
27 #define PDC_POW_FAIL_PREPARE 0
30 #define PDC_CHASSIS_DISP 0
31 #define PDC_CHASSIS_WARN 1
32 #define PDC_CHASSIS_DISPWARN 2
33 #define PDC_RETURN_CHASSIS_INFO 128
36 #define PDC_PIM_HPMC 0
37 #define PDC_PIM_RETURN_SIZE 1
38 #define PDC_PIM_LPMC 2
39 #define PDC_PIM_SOFT_BOOT 3
43 #define PDC_MODEL_INFO 0
44 #define PDC_MODEL_BOOTID 1
45 #define PDC_MODEL_VERSIONS 2
46 #define PDC_MODEL_SYSMODEL 3
47 #define PDC_MODEL_ENSPEC 4
48 #define PDC_MODEL_DISPEC 5
49 #define PDC_MODEL_CPU_ID 6
50 #define PDC_MODEL_CAPABILITIES 7
52 #define PDC_MODEL_OS64 (1 << 0)
53 #define PDC_MODEL_OS32 (1 << 1)
54 #define PDC_MODEL_IOPDIR_FDC (1 << 2)
55 #define PDC_MODEL_NVA_MASK (3 << 4)
56 #define PDC_MODEL_NVA_SUPPORTED (0 << 4)
57 #define PDC_MODEL_NVA_SLOW (1 << 4)
58 #define PDC_MODEL_NVA_UNSUPPORTED (3 << 4)
59 #define PDC_MODEL_GET_BOOT__OP 8
60 #define PDC_MODEL_SET_BOOT__OP 9
62 #define PA89_INSTRUCTION_SET 0x4
63 #define PA90_INSTRUCTION_SET 0x8
66 #define PDC_CACHE_INFO 0
67 #define PDC_CACHE_SET_COH 1
68 #define PDC_CACHE_RET_SPID 2
71 #define PDC_HPA_PROCESSOR 0
72 #define PDC_HPA_MODULES 1
75 #define PDC_COPROC_CFG 0
78 #define PDC_IODC_READ 0
80 #define PDC_IODC_RI_DATA_BYTES 0
82 #define PDC_IODC_RI_INIT 3
83 #define PDC_IODC_RI_IO 4
84 #define PDC_IODC_RI_SPA 5
85 #define PDC_IODC_RI_CONFIG 6
87 #define PDC_IODC_RI_TEST 8
88 #define PDC_IODC_RI_TLB 9
89 #define PDC_IODC_NINIT 2
90 #define PDC_IODC_DINIT 3
91 #define PDC_IODC_MEMERR 4
92 #define PDC_IODC_INDEX_DATA 0
93 #define PDC_IODC_BUS_ERROR -4
94 #define PDC_IODC_INVALID_INDEX -5
95 #define PDC_IODC_COUNT -6
98 #define PDC_TOD_READ 0
99 #define PDC_TOD_WRITE 1
102 #define PDC_STABLE 10
103 #define PDC_STABLE_READ 0
104 #define PDC_STABLE_WRITE 1
105 #define PDC_STABLE_RETURN_SIZE 2
106 #define PDC_STABLE_VERIFY_CONTENTS 3
107 #define PDC_STABLE_INITIALIZE 4
109 #define PDC_NVOLATILE 11
111 #define PDC_ADD_VALID 12
112 #define PDC_ADD_VALID_VERIFY 0
118 #define PDC_CONFIG 16
119 #define PDC_CONFIG_DECONFIG 0
120 #define PDC_CONFIG_DRECONFIG 1
121 #define PDC_CONFIG_DRETURN_CONFIG 2
123 #define PDC_BLOCK_TLB 18
124 #define PDC_BTLB_INFO 0
125 #define PDC_BTLB_INSERT 1
126 #define PDC_BTLB_PURGE 2
127 #define PDC_BTLB_PURGE_ALL 3
130 #define PDC_TLB_INFO 0
131 #define PDC_TLB_SETUP 1
134 #define PDC_MEM_MEMINFO 0
135 #define PDC_MEM_ADD_PAGE 1
136 #define PDC_MEM_CLEAR_PDT 2
137 #define PDC_MEM_READ_PDT 3
138 #define PDC_MEM_RESET_CLEAR 4
139 #define PDC_MEM_GOODMEM 5
140 #define PDC_MEM_TABLE 128
141 #define PDC_MEM_RETURN_ADDRESS_TABLE PDC_MEM_TABLE
142 #define PDC_MEM_GET_MEMORY_SYSTEM_TABLES_SIZE 131
143 #define PDC_MEM_GET_MEMORY_SYSTEM_TABLES 132
144 #define PDC_MEM_GET_PHYSICAL_LOCATION_FROM_MEMORY_ADDRESS 133
146 #define PDC_MEM_RET_SBE_REPLACED 5
147 #define PDC_MEM_RET_DUPLICATE_ENTRY 4
148 #define PDC_MEM_RET_BUF_SIZE_SMALL 1
149 #define PDC_MEM_RET_PDT_FULL -11
150 #define PDC_MEM_RET_INVALID_PHYSICAL_LOCATION ~0ULL
153 #define PDC_PSW_MASK 0
154 #define PDC_PSW_GET_DEFAULTS 1
155 #define PDC_PSW_SET_DEFAULTS 2
156 #define PDC_PSW_ENDIAN_BIT 1
157 #define PDC_PSW_WIDE_BIT 2
159 #define PDC_SYSTEM_MAP 22
160 #define PDC_FIND_MODULE 0
161 #define PDC_FIND_ADDRESS 1
162 #define PDC_TRANSLATE_PATH 2
164 #define PDC_SOFT_POWER 23
165 #define PDC_SOFT_POWER_INFO 0
166 #define PDC_SOFT_POWER_ENABLE 1
172 #define PDC_MEM_MAP 128
173 #define PDC_MEM_MAP_HPA 0
175 #define PDC_EEPROM 129
176 #define PDC_EEPROM_READ_WORD 0
177 #define PDC_EEPROM_WRITE_WORD 1
178 #define PDC_EEPROM_READ_BYTE 2
179 #define PDC_EEPROM_WRITE_BYTE 3
180 #define PDC_EEPROM_EEPROM_PASSWORD -1000
183 #define PDC_NVM_READ_WORD 0
184 #define PDC_NVM_WRITE_WORD 1
185 #define PDC_NVM_READ_BYTE 2
186 #define PDC_NVM_WRITE_BYTE 3
188 #define PDC_SEED_ERROR 132
191 #define PDC_IO_READ_AND_CLEAR_ERRORS 0
192 #define PDC_IO_RESET 1
193 #define PDC_IO_RESET_DEVICES 2
195 #define PDC_IO_USB_SUSPEND 0xC000000000000000
196 #define PDC_IO_EEPROM_IO_ERR_TABLE_FULL -5
197 #define PDC_IO_NO_SUSPEND -6
199 #define PDC_BROADCAST_RESET 136
200 #define PDC_DO_RESET 0
201 #define PDC_DO_FIRM_TEST_RESET 1
202 #define PDC_BR_RECONFIGURATION 2
203 #define PDC_FIRM_TEST_MAGIC 0xab9ec36fUL
205 #define PDC_LAN_STATION_ID 138
206 #define PDC_LAN_STATION_ID_READ 0
208 #define PDC_LAN_STATION_ID_SIZE 6
210 #define PDC_CHECK_RANGES 139
212 #define PDC_NV_SECTIONS 141
214 #define PDC_PERFORMANCE 142
216 #define PDC_SYSTEM_INFO 143
217 #define PDC_SYSINFO_RETURN_INFO_SIZE 0
218 #define PDC_SYSINFO_RRETURN_SYS_INFO 1
219 #define PDC_SYSINFO_RRETURN_ERRORS 2
220 #define PDC_SYSINFO_RRETURN_WARNINGS 3
221 #define PDC_SYSINFO_RETURN_REVISIONS 4
222 #define PDC_SYSINFO_RRETURN_DIAGNOSE 5
223 #define PDC_SYSINFO_RRETURN_HV_DIAGNOSE 1005
226 #define PDC_RDR_READ_BUFFER 0
227 #define PDC_RDR_READ_SINGLE 1
228 #define PDC_RDR_WRITE_SINGLE 2
230 #define PDC_INTRIGUE 145
231 #define PDC_INTRIGUE_WRITE_BUFFER 0
232 #define PDC_INTRIGUE_GET_SCRATCH_BUFSIZE 1
233 #define PDC_INTRIGUE_START_CPU_COUNTERS 2
234 #define PDC_INTRIGUE_STOP_CPU_COUNTERS 3
240 #define PDC_PCI_INDEX 147
241 #define PDC_PCI_INTERFACE_INFO 0
242 #define PDC_PCI_SLOT_INFO 1
243 #define PDC_PCI_INFLIGHT_BYTES 2
244 #define PDC_PCI_READ_CONFIG 3
245 #define PDC_PCI_WRITE_CONFIG 4
246 #define PDC_PCI_READ_PCI_IO 5
247 #define PDC_PCI_WRITE_PCI_IO 6
248 #define PDC_PCI_READ_CONFIG_DELAY 7
249 #define PDC_PCI_UPDATE_CONFIG_DELAY 8
250 #define PDC_PCI_PCI_PATH_TO_PCI_HPA 9
251 #define PDC_PCI_PCI_HPA_TO_PCI_PATH 10
252 #define PDC_PCI_PCI_PATH_TO_PCI_BUS 11
253 #define PDC_PCI_PCI_RESERVED 12
254 #define PDC_PCI_PCI_INT_ROUTE_SIZE 13
255 #define PDC_PCI_GET_INT_TBL_SIZE PDC_PCI_PCI_INT_ROUTE_SIZE
256 #define PDC_PCI_PCI_INT_ROUTE 14
257 #define PDC_PCI_GET_INT_TBL PDC_PCI_PCI_INT_ROUTE
258 #define PDC_PCI_READ_MON_TYPE 15
259 #define PDC_PCI_WRITE_MON_TYPE 16
263 #define PDC_INITIATOR 163
264 #define PDC_GET_INITIATOR 0
265 #define PDC_SET_INITIATOR 1
266 #define PDC_DELETE_INITIATOR 2
267 #define PDC_RETURN_TABLE_SIZE 3
268 #define PDC_RETURN_TABLE 4
271 #define PDC_LINK_PCI_ENTRY_POINTS 0
272 #define PDC_LINK_USB_ENTRY_POINTS 1
287 #define ENTRY_INIT_SRCH_FRST 2
288 #define ENTRY_INIT_SRCH_NEXT 3
289 #define ENTRY_INIT_MOD_DEV 4
290 #define ENTRY_INIT_DEV 5
291 #define ENTRY_INIT_MOD 6
292 #define ENTRY_INIT_MSG 9
295 #define ENTRY_IO_BOOTIN 0
296 #define ENTRY_IO_BOOTOUT 1
297 #define ENTRY_IO_CIN 2
298 #define ENTRY_IO_COUT 3
299 #define ENTRY_IO_CLOSE 4
300 #define ENTRY_IO_GETMSG 9
301 #define ENTRY_IO_BBLOCK_IN 16
302 #define ENTRY_IO_BBLOCK_OUT 17
315 #define OS_ID_MPEXL 2
318 #define OS_ID_NOVEL 5
319 #define OS_ID_LINUX 6
333 #define BOOT_CONSOLE_HPA_OFFSET 0x3c0
334 #define BOOT_CONSOLE_SPA_OFFSET 0x3c4
335 #define BOOT_CONSOLE_PATH_OFFSET 0x3a8
338 #define NUM_PDC_RESULT 32
340 #if !defined(__ASSEMBLY__)
342 #include <linux/types.h>
346 #define PF_AUTOBOOT 0x80
347 #define PF_AUTOSEARCH 0x40
348 #define PF_TIMER 0x0F