aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-parisc')
-rw-r--r--include/asm-parisc/pdc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-parisc/pdc.h b/include/asm-parisc/pdc.h
index 33bff615d6e1..7a21f106ade6 100644
--- a/include/asm-parisc/pdc.h
+++ b/include/asm-parisc/pdc.h
@@ -284,6 +284,19 @@ typedef struct {
284#define OS_ID_NOVEL 5 /* NOVELL OS */ 284#define OS_ID_NOVEL 5 /* NOVELL OS */
285#define OS_ID_LINUX 6 /* Linux */ 285#define OS_ID_LINUX 6 /* Linux */
286 286
287static inline char * os_id_to_string(u16 os_id) {
288 switch(os_id) {
289 case OS_ID_NONE: return "No OS";
290 case OS_ID_HPUX: return "HP-UX";
291 case OS_ID_MPEXL: return "MPE-iX";
292 case OS_ID_OSF: return "OSF";
293 case OS_ID_HPRT: return "HP-RT";
294 case OS_ID_NOVEL: return "Novell Netware";
295 case OS_ID_LINUX: return "Linux";
296 default: return "Unknown";
297 }
298}
299
287 300
288/* constants for PDC_CHASSIS */ 301/* constants for PDC_CHASSIS */
289#define OSTAT_OFF 0 302#define OSTAT_OFF 0