mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PARISC] Add os_id_to_string helper
Add a helper to asm/pdc.h to translate OS_ID values to strings and use it in the pdc_stable driver. Signed-off-by: Kyle McMartin <[email protected]>
This commit is contained in:
parent
ec1fdc24c2
commit
67a061a191
2 changed files with 15 additions and 12 deletions
|
|
@ -284,6 +284,19 @@ typedef struct {
|
|||
#define OS_ID_NOVEL 5 /* NOVELL OS */
|
||||
#define OS_ID_LINUX 6 /* Linux */
|
||||
|
||||
static inline char * os_id_to_string(u16 os_id) {
|
||||
switch(os_id) {
|
||||
case OS_ID_NONE: return "No OS";
|
||||
case OS_ID_HPUX: return "HP-UX";
|
||||
case OS_ID_MPEXL: return "MPE-iX";
|
||||
case OS_ID_OSF: return "OSF";
|
||||
case OS_ID_HPRT: return "HP-RT";
|
||||
case OS_ID_NOVEL: return "Novell Netware";
|
||||
case OS_ID_LINUX: return "Linux";
|
||||
default: return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* constants for PDC_CHASSIS */
|
||||
#define OSTAT_OFF 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue