1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #undef VOYAGER_DEBUG 20 #undef VOYAGER_CAT_DEBUG 21 #ifdef VOYAGER_DEBUG 22 #define VDEBUG(x) printk x 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #else 25 #define VDEBUG(x) 26 #endif 27 #define VOYAGER_LEVEL5_AND_ABOVE 0x3435 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 #define VOYAGER_LEVEL4 0x3360 30 #define VOYAGER_DINO 0x43 31 #define VOYAGER_MC_SETUP 0x96 32 #define VOYAGER_CAT_CONFIG_PORT 0x97 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define VOYAGER_CAT_DESELECT 0xff 35 #define VOYAGER_SSPB_RELOCATION_PORT 0x98 36 #define VOYAGER_CAT_IRCYC 0x01 37 #define VOYAGER_CAT_DRCYC 0x02 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 #define VOYAGER_CAT_RUN 0x0F 40 #define VOYAGER_CAT_END 0x80 41 #define VOYAGER_CAT_HOLD 0x90 42 #define VOYAGER_CAT_STEP 0xE0 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 #define VOYAGER_CAT_CLEMSON 0xFF 45 #define VOYAGER_CAT_HEADER 0x7F 46 #define VOYAGER_MIN_MODULE 0x10 47 #define VOYAGER_MAX_MODULE 0x1f 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define VOYAGER_ASIC_ID_REG 0x00 50 #define VOYAGER_ASIC_TYPE_REG 0x01 51 #define VOYAGER_AUTO_INC_REG 0x02 52 #define VOYAGER_AUTO_INC 0x04 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define VOYAGER_NO_AUTO_INC 0xfb 55 #define VOYAGER_SUBADDRDATA 0x03 56 #define VOYAGER_SCANPATH 0x05 57 #define VOYAGER_CONNECT_ASIC 0x01 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define VOYAGER_DISCONNECT_ASIC 0xfe 60 #define VOYAGER_SUBADDRLO 0x06 61 #define VOYAGER_SUBADDRHI 0x07 62 #define VOYAGER_SUBMODSELECT 0x08 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define VOYAGER_SUBMODPRESENT 0x09 65 #define VOYAGER_SUBADDR_LO 0xff 66 #define VOYAGER_SUBADDR_HI 0xffff 67 #define VOYAGER_MAX_SCAN_PATH 0x100 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define VOYAGER_MAX_REG_SIZE 4 70 #define VOYAGER_MAX_MODULES 16 71 #define VOYAGER_MAX_ASICS_PER_MODULE 7 72 #define VOYAGER_CAT_ID 0 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define VOYAGER_PSI 0x1a 75 #define VOYAGER_READ_CONFIG 0x1 76 #define VOYAGER_WRITE_CONFIG 0x2 77 #define VOYAGER_BYPASS 0xff 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 typedef struct voyager_asic 80 { 81 __u8 asic_addr; 82 __u8 asic_type; 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 __u8 asic_id; 85 __u8 jtag_id[4]; 86 __u8 asic_location; 87 __u8 bit_location; 88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89 __u8 ireg_length; 90 __u16 subaddr; 91 struct voyager_asic *next; 92 } voyager_asic_t; 93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 typedef struct voyager_module { 95 __u8 module_addr; 96 __u8 scan_path_connected; 97 __u16 ee_size; 98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 __u16 num_asics; 100 __u16 inst_bits; 101 __u16 largest_reg; 102 __u16 smallest_reg; 103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104 voyager_asic_t *asic; 105 struct voyager_module *submodule; 106 struct voyager_module *next; 107 } voyager_module_t; 108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 typedef struct voyager_eeprom_hdr { 110 __u8 module_id[4]; 111 __u8 version_id; 112 __u8 config_id; 113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 114 __u16 boundry_id; 115 __u16 ee_size; 116 __u8 assembly[11]; 117 __u8 assembly_rev; 118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 119 __u8 tracer[4]; 120 __u16 assembly_cksum; 121 __u16 power_consump; 122 __u16 num_asics; 123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 __u16 bist_time; 125 __u16 err_log_offset; 126 __u16 scan_path_offset; 127 __u16 cct_offset; 128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 129 __u16 log_length; 130 __u16 xsum_end; 131 __u8 reserved[4]; 132 __u8 sflag; 133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 134 __u8 part_number[13]; 135 __u8 version[10]; 136 __u8 signature[8]; 137 __u16 eeprom_chksum; 138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 139 __u32 data_stamp_offset; 140 __u8 eflag ; 141 } __attribute__((packed)) voyager_eprom_hdr_t; 142 #define VOYAGER_EPROM_SIZE_OFFSET ((__u16)(&(((voyager_eprom_hdr_t *)0)->ee_size))) 143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 144 #define VOYAGER_XSUM_END_OFFSET 0x2a 145 typedef struct voyager_sp_table { 146 __u8 asic_id; 147 __u8 bypass_flag; 148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 149 __u16 asic_data_offset; 150 __u16 config_data_offset; 151 } __attribute__((packed)) voyager_sp_table_t; 152 typedef struct voyager_jtag_table { 153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 154 __u8 icode[4]; 155 __u8 runbist[4]; 156 __u8 intest[4]; 157 __u8 samp_preld[4]; 158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 159 __u8 ireg_len; 160 } __attribute__((packed)) voyager_jtt_t; 161 typedef struct voyager_asic_data_table { 162 __u8 jtag_id[4]; 163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 164 __u16 length_bsr; 165 __u16 length_bist_reg; 166 __u32 bist_clk; 167 __u16 subaddr_bits; 168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 169 __u16 seed_bits; 170 __u16 sig_bits; 171 __u16 jtag_offset; 172 } __attribute__((packed)) voyager_at_t; 173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 174 #define VOYAGER_WCBIC0 0x41 175 #define VOYAGER_WCBIC1 0x49 176 #define VOYAGER_WCBIC2 0x51 177 #define VOYAGER_WCBIC3 0x59 178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 179 #define VOYAGER_WCBIC4 0x61 180 #define VOYAGER_WCBIC5 0x69 181 #define VOYAGER_WCBIC6 0x71 182 #define VOYAGER_WCBIC7 0x79 183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 184 #define VOYAGER_WCBIC_TOM_L 0x4 185 #define VOYAGER_WCBIC_TOM_H 0x5 186 #define VOYAGER_VMC1 0x81 187 #define VOYAGER_VMC2 0x91 188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 189 #define VOYAGER_VMC3 0xa1 190 #define VOYAGER_VMC4 0xb1 191 #define VOYAGER_VMC_MEMORY_SETUP 0x9 192 #define VMC_Interleaving 0x01 193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 194 #define VMC_4Way 0x02 195 #define VMC_EvenCacheLines 0x04 196 #define VMC_HighLine 0x08 197 #define VMC_Start0_Enable 0x20 198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 199 #define VMC_Start1_Enable 0x40 200 #define VMC_Vremap 0x80 201 #define VOYAGER_VMC_BANK_DENSITY 0xa 202 #define VMC_BANK_EMPTY 0 203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 204 #define VMC_BANK_4MB 1 205 #define VMC_BANK_16MB 2 206 #define VMC_BANK_64MB 3 207 #define VMC_BANK0_MASK 0x03 208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 209 #define VMC_BANK1_MASK 0x0C 210 #define VMC_BANK2_MASK 0x30 211 #define VMC_BANK3_MASK 0xC0 212 #define VOYAGER_MMC_ASIC_ID 1 213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 214 #define VOYAGER_MMC_MEMORY0_MODULE 0x14 215 #define VOYAGER_MMC_MEMORY1_MODULE 0x15 216 #define VOYAGER_MMA_ASIC_ID 2 217 #define VOYAGER_QUAD_BASEBOARD 1 218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 219 #define VOYAGER_QUAD_QDATA0 1 220 #define VOYAGER_QUAD_QDATA1 2 221 #define VOYAGER_QUAD_QABC 3 222 #define VOYAGER_PROCESSOR_PRESENT_MASK 0x88a 223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 224 #define VOYAGER_MEMORY_CLICKMAP 0xa23 225 #define VOYAGER_DUMP_LOCATION 0xb1a 226 #define VOYAGER_SUS_IN_CONTROL_PORT 0x3ff 227 #define VOYAGER_IN_CONTROL_FLAG 0x80 228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 229 #define VOYAGER_PSI_STATUS_REG 0x08 230 #define PSI_DC_FAIL 0x01 231 #define PSI_MON 0x02 232 #define PSI_FAULT 0x04 233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 234 #define PSI_ALARM 0x08 235 #define PSI_CURRENT 0x10 236 #define PSI_DVM 0x20 237 #define PSI_PSCFAULT 0x40 238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 239 #define PSI_STAT_CHG 0x80 240 #define VOYAGER_PSI_SUPPLY_REG 0x8000 241 #define PSI_FAIL_DC 0x01 242 #define PSI_FAIL_AC 0x02 243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244 #define PSI_MON_INT 0x04 245 #define PSI_SWITCH_OFF 0x08 246 #define PSI_HX_OFF 0x10 247 #define PSI_SECURITY 0x20 248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 249 #define PSI_CMOS_BATT_LOW 0x40 250 #define PSI_CMOS_BATT_FAIL 0x80 251 #define PSI_CLR_SWITCH_OFF 0x13 252 #define PSI_CLR_HX_OFF 0x14 253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 254 #define PSI_CLR_CMOS_BATT_FAIL 0x17 255 #define VOYAGER_PSI_MASK 0x8001 256 #define PSI_MASK_MASK 0x10 257 #define VOYAGER_PSI_AC_FAIL_REG 0x8004 258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 259 #define AC_FAIL_STAT_CHANGE 0x80 260 #define VOYAGER_PSI_GENERAL_REG 0x8007 261 #define PSI_SWITCH_ON 0x01 262 #define PSI_SWITCH_ENABLED 0x02 263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 264 #define PSI_ALARM_ENABLED 0x08 265 #define PSI_SECURE_ENABLED 0x10 266 #define PSI_COLD_RESET 0x20 267 #define PSI_COLD_START 0x80 268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 269 #define PSI_POWER_DOWN 0x10 270 #define PSI_SWITCH_DISABLE 0x01 271 #define PSI_SWITCH_ENABLE 0x11 272 #define PSI_CLEAR 0x12 273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 274 #define PSI_ALARM_DISABLE 0x03 275 #define PSI_ALARM_ENABLE 0x13 276 #define PSI_CLEAR_COLD_RESET 0x05 277 #define PSI_SET_COLD_RESET 0x15 278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 279 #define PSI_CLEAR_COLD_START 0x07 280 #define PSI_SET_COLD_START 0x17 281 struct voyager_bios_info { 282 __u8 len; 283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 284 __u8 major; 285 __u8 minor; 286 __u8 debug; 287 __u8 num_classes; 288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 289 __u8 class_1; 290 __u8 class_2; 291 }; 292 #define NUMBER_OF_MC_BUSSES 2 293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294 #define SLOTS_PER_MC_BUS 8 295 #define MAX_CPUS 16 296 #define MAX_PROCESSOR_BOARDS 4 297 #define MAX_CACHE_LEVELS 4 298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 299 #define MAX_SHARED_CPUS 4 300 #define NUMBER_OF_POS_REGS 8 301 typedef struct { 302 __u8 MC_Slot; 303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 304 __u8 POS_Values[NUMBER_OF_POS_REGS]; 305 } __attribute__((packed)) MC_SlotInformation_t; 306 struct QuadDescription { 307 __u8 Type; 308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 309 __u8 StructureVersion; 310 __u32 CPI_BaseAddress; 311 __u32 LARC_BankSize; 312 __u32 LocalMemoryStateBits; 313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 314 __u8 Slot; 315 } __attribute__((packed)); 316 struct ProcBoardInfo { 317 __u8 Type; 318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 319 __u8 StructureVersion; 320 __u8 NumberOfBoards; 321 struct QuadDescription QuadData[MAX_PROCESSOR_BOARDS]; 322 } __attribute__((packed)); 323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 324 struct CacheDescription { 325 __u8 Level; 326 __u32 TotalSize; 327 __u16 LineSize; 328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 329 __u8 Associativity; 330 __u8 CacheType; 331 __u8 WriteType; 332 __u8 Number_CPUs_SharedBy; 333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 334 __u8 Shared_CPUs_Hardware_IDs[MAX_SHARED_CPUS]; 335 } __attribute__((packed)); 336 struct CPU_Description { 337 __u8 CPU_HardwareId; 338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 339 char *FRU_String; 340 __u8 NumberOfCacheLevels; 341 struct CacheDescription CacheLevelData[MAX_CACHE_LEVELS]; 342 } __attribute__((packed)); 343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344 struct CPU_Info { 345 __u8 Type; 346 __u8 StructureVersion; 347 __u8 NumberOf_CPUs; 348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 349 struct CPU_Description CPU_Data[MAX_CPUS]; 350 } __attribute__((packed)); 351 typedef struct { 352 __u8 Mailbox_SUS; 353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 354 __u8 Mailbox_OS; 355 __u8 SUS_MailboxVersion; 356 __u8 OS_MailboxVersion; 357 __u32 OS_Flags; 358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 359 __u32 SUS_Flags; 360 __u32 WatchDogPeriod; 361 __u32 WatchDogCount; 362 __u32 MemoryFor_SUS_ErrorLog; 363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 364 MC_SlotInformation_t MC_SlotInfo[NUMBER_OF_MC_BUSSES*SLOTS_PER_MC_BUS]; 365 struct ProcBoardInfo *BoardData; 366 struct CPU_Info *CPU_Data; 367 } Voyager_KernelSUS_Mbox_t; 368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 369 struct voyager_qic_cpi { 370 struct { 371 __u32 pad1[3]; 372 __u32 cpi; 373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 374 __u32 pad2[4]; 375 } qic_cpi[8]; 376 }; 377 struct voyager_status { 378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 379 __u32 power_fail:1; 380 __u32 switch_off:1; 381 __u32 request_from_kernel:1; 382 }; 383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 384 struct voyager_psi_regs { 385 __u8 cat_id; 386 __u8 cat_dev; 387 __u8 cat_control; 388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 389 __u8 subaddr; 390 __u8 dummy4; 391 __u8 checkbit; 392 __u8 subaddr_low; 393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394 __u8 subaddr_high; 395 __u8 intstatus; 396 __u8 stat1; 397 __u8 stat3; 398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 399 __u8 fault; 400 __u8 tms; 401 __u8 gen; 402 __u8 sysconf; 403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 404 __u8 dummy15; 405 }; 406 struct voyager_psi_subregs { 407 __u8 supply; 408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 409 __u8 mask; 410 __u8 present; 411 __u8 DCfail; 412 __u8 ACfail; 413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 414 __u8 fail; 415 __u8 UPSfail; 416 __u8 genstatus; 417 }; 418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 419 struct voyager_psi { 420 struct voyager_psi_regs regs; 421 struct voyager_psi_subregs subregs; 422 }; 423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 424 struct voyager_SUS { 425 #define VOYAGER_DUMP_BUTTON_NMI 0x1 426 #define VOYAGER_SUS_VALID 0x2 427 #define VOYAGER_SYSINT_COMPLETE 0x3 428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 429 __u8 SUS_mbox; 430 #define VOYAGER_NO_COMMAND 0x0 431 #define VOYAGER_IGNORE_DUMP 0x1 432 #define VOYAGER_DO_DUMP 0x2 433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 434 #define VOYAGER_SYSINT_HANDSHAKE 0x3 435 #define VOYAGER_DO_MEM_DUMP 0x4 436 #define VOYAGER_SYSINT_WAS_RECOVERED 0x5 437 __u8 kernel_mbox; 438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 439 #define VOYAGER_MAILBOX_VERSION 0x10 440 __u8 SUS_version; 441 __u8 kernel_version; 442 #define VOYAGER_OS_HAS_SYSINT 0x1 443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444 #define VOYAGER_OS_IN_PROGRESS 0x2 445 #define VOYAGER_UPDATING_WDPERIOD 0x4 446 __u32 kernel_flags; 447 #define VOYAGER_SUS_BOOTING 0x1 448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 449 #define VOYAGER_SUS_IN_PROGRESS 0x2 450 __u32 SUS_flags; 451 __u32 watchdog_period; 452 __u32 watchdog_count; 453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 454 __u32 SUS_errorlog; 455 }; 456 #define VOYAGER_PSI_READ 0 457 #define VOYAGER_PSI_WRITE 1 458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 459 #define VOYAGER_PSI_SUBREAD 2 460 #define VOYAGER_PSI_SUBWRITE 3 461