aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/pdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-parisc/pdc.h')
-rw-r--r--include/asm-parisc/pdc.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/asm-parisc/pdc.h b/include/asm-parisc/pdc.h
index 7a21f106ade6..c9b2e35326ee 100644
--- a/include/asm-parisc/pdc.h
+++ b/include/asm-parisc/pdc.h
@@ -284,19 +284,6 @@ 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
300 287
301/* constants for PDC_CHASSIS */ 288/* constants for PDC_CHASSIS */
302#define OSTAT_OFF 0 289#define OSTAT_OFF 0
@@ -789,6 +776,18 @@ int pdc_sti_call(unsigned long func, unsigned long flags,
789 776
790extern void pdc_init(void); 777extern void pdc_init(void);
791 778
779static inline char * os_id_to_string(u16 os_id) {
780 switch(os_id) {
781 case OS_ID_NONE: return "No OS";
782 case OS_ID_HPUX: return "HP-UX";
783 case OS_ID_MPEXL: return "MPE-iX";
784 case OS_ID_OSF: return "OSF";
785 case OS_ID_HPRT: return "HP-RT";
786 case OS_ID_NOVEL: return "Novell Netware";
787 case OS_ID_LINUX: return "Linux";
788 default: return "Unknown";
789 }
790}
792#endif /* __ASSEMBLY__ */ 791#endif /* __ASSEMBLY__ */
793 792
794#endif /* _PARISC_PDC_H */ 793#endif /* _PARISC_PDC_H */