Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: Add constants for various PDC firmware calls

PDC_DEBUG, PDC_ALLOC and PDC_SCSI_PARMS were missing.
Add PDC_MODEL_GET_INSTALL_KERNEL and PDC_NVOLATILE_* subfunctions.
PDC_CONFIG is call #17, not 16. Luckily it's nowhere referenced yet.

Signed-off-by: Helge Deller <deller@gmx.de>

+18 -2
+18 -2
arch/parisc/include/uapi/asm/pdc.h
··· 61 61 #define PDC_MODEL_GET_BOOT__OP 8 /* returns boot test options */ 62 62 #define PDC_MODEL_SET_BOOT__OP 9 /* set boot test options */ 63 63 #define PDC_MODEL_GET_PLATFORM_INFO 10 /* returns platform info */ 64 + #define PDC_MODEL_GET_INSTALL_KERNEL 11 /* returns kernel for installation */ 64 65 65 66 #define PA89_INSTRUCTION_SET 0x4 /* capabilities returned */ 66 67 #define PA90_INSTRUCTION_SET 0x8 ··· 111 110 #define PDC_STABLE_INITIALIZE 4 112 111 113 112 #define PDC_NVOLATILE 11 /* often not implemented */ 113 + #define PDC_NVOLATILE_READ 0 114 + #define PDC_NVOLATILE_WRITE 1 115 + #define PDC_NVOLATILE_RETURN_SIZE 2 116 + #define PDC_NVOLATILE_VERIFY_CONTENTS 3 117 + #define PDC_NVOLATILE_INITIALIZE 4 114 118 115 119 #define PDC_ADD_VALID 12 /* Memory validation PDC call */ 116 120 #define PDC_ADD_VALID_VERIFY 0 /* Make PDC_ADD_VALID verify region */ 121 + 122 + #define PDC_DEBUG 14 /* Obsolete */ 117 123 118 124 #define PDC_INSTR 15 /* get instr to invoke PDCE_CHECK() */ 119 125 120 126 #define PDC_PROC 16 /* (sprockets) */ 121 127 122 - #define PDC_CONFIG 16 /* (sprockets) */ 128 + #define PDC_CONFIG 17 /* (sprockets) */ 123 129 #define PDC_CONFIG_DECONFIG 0 124 130 #define PDC_CONFIG_DRECONFIG 1 125 131 #define PDC_CONFIG_DRETURN_CONFIG 2 ··· 176 168 #define PDC_SOFT_POWER_INFO 0 /* return info about the soft power switch */ 177 169 #define PDC_SOFT_POWER_ENABLE 1 /* enable/disable soft power switch */ 178 170 179 - #define PDC_CRASH_PREP 25 /* Prepare system for crash dump */ 171 + #define PDC_ALLOC 24 /* allocate static storage for PDC & IODC */ 172 + 173 + #define PDC_CRASH_PREP 25 /* Prepare system for crash dump */ 174 + #define PDC_CRASH_DUMP 0 /* Do platform specific preparations for dump */ 175 + #define PDC_CRASH_LOG_CEC_ERROR 1 /* Dump hardware registers */ 176 + 177 + #define PDC_SCSI_PARMS 26 /* Get and set SCSI parameters */ 178 + #define PDC_SCSI_GET_PARMS 0 /* Get SCSI parameters for I/O device */ 179 + #define PDC_SCSI_SET_PARMS 1 /* Set SCSI parameters for I/O device */ 180 180 181 181 /* HVERSION dependent */ 182 182