]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
parisc: Add constants for various PDC firmware calls
authorHelge Deller <deller@gmx.de>
Mon, 11 Feb 2019 20:28:29 +0000 (21:28 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 21 Feb 2019 19:37:13 +0000 (20:37 +0100)
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>
arch/parisc/include/uapi/asm/pdc.h

index cdab708516b4184c2a6905dc314345052393fb7f..15211723ebf543dba726d33b47c6565e7f48698a 100644 (file)
@@ -61,6 +61,7 @@
 #define PDC_MODEL_GET_BOOT__OP 8       /* returns boot test options    */
 #define PDC_MODEL_SET_BOOT__OP 9       /* set boot test options        */
 #define PDC_MODEL_GET_PLATFORM_INFO 10 /* returns platform info        */
+#define PDC_MODEL_GET_INSTALL_KERNEL 11        /* returns kernel for installation */
 
 #define PA89_INSTRUCTION_SET   0x4     /* capabilities returned        */
 #define PA90_INSTRUCTION_SET   0x8
 #define PDC_STABLE_INITIALIZE  4
 
 #define PDC_NVOLATILE  11              /* often not implemented        */
+#define PDC_NVOLATILE_READ     0
+#define PDC_NVOLATILE_WRITE    1
+#define PDC_NVOLATILE_RETURN_SIZE 2
+#define PDC_NVOLATILE_VERIFY_CONTENTS 3
+#define PDC_NVOLATILE_INITIALIZE 4
 
 #define PDC_ADD_VALID  12              /* Memory validation PDC call   */
 #define PDC_ADD_VALID_VERIFY   0       /* Make PDC_ADD_VALID verify region */
 
+#define PDC_DEBUG      14              /* Obsolete                     */
+
 #define PDC_INSTR      15              /* get instr to invoke PDCE_CHECK() */
 
 #define PDC_PROC       16              /* (sprockets)                  */
 
-#define PDC_CONFIG     16              /* (sprockets)                  */
+#define PDC_CONFIG     17              /* (sprockets)                  */
 #define PDC_CONFIG_DECONFIG    0
 #define PDC_CONFIG_DRECONFIG   1
 #define PDC_CONFIG_DRETURN_CONFIG 2
 #define PDC_SOFT_POWER_INFO    0       /* return info about the soft power switch */
 #define PDC_SOFT_POWER_ENABLE  1       /* enable/disable soft power switch */
 
-#define PDC_CRASH_PREP 25              /* Prepare system for crash dump */
+#define PDC_ALLOC      24              /* allocate static storage for PDC & IODC */
+
+#define PDC_CRASH_PREP 25              /* Prepare system for crash dump */
+#define PDC_CRASH_DUMP         0       /* Do platform specific preparations for dump */
+#define PDC_CRASH_LOG_CEC_ERROR 1      /* Dump hardware registers      */
+
+#define PDC_SCSI_PARMS 26              /* Get and set SCSI parameters  */
+#define PDC_SCSI_GET_PARMS     0       /* Get SCSI parameters for I/O device */
+#define PDC_SCSI_SET_PARMS     1       /* Set SCSI parameters for I/O device */
 
 /* HVERSION dependent */