diff options
Diffstat (limited to 'include/asm-parisc/pdc.h')
-rw-r--r-- | include/asm-parisc/pdc.h | 308 |
1 files changed, 138 insertions, 170 deletions
diff --git a/include/asm-parisc/pdc.h b/include/asm-parisc/pdc.h index 876fd8116d4a..5e0c3ca5450b 100644 --- a/include/asm-parisc/pdc.h +++ b/include/asm-parisc/pdc.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef _PARISC_PDC_H | 1 | #ifndef _PARISC_PDC_H |
2 | #define _PARISC_PDC_H | 2 | #define _PARISC_PDC_H |
3 | 3 | ||
4 | |||
5 | /* | 4 | /* |
6 | * PDC return values ... | 5 | * PDC return values ... |
7 | * All PDC calls return a subset of these errors. | 6 | * All PDC calls return a subset of these errors. |
@@ -20,7 +19,6 @@ | |||
20 | #define PDC_BUS_POW_WARN -12 /* Call could not complete in allowed power budget */ | 19 | #define PDC_BUS_POW_WARN -12 /* Call could not complete in allowed power budget */ |
21 | #define PDC_NOT_NARROW -17 /* Narrow mode not supported */ | 20 | #define PDC_NOT_NARROW -17 /* Narrow mode not supported */ |
22 | 21 | ||
23 | |||
24 | /* | 22 | /* |
25 | * PDC entry points... | 23 | * PDC entry points... |
26 | */ | 24 | */ |
@@ -50,6 +48,12 @@ | |||
50 | #define PDC_MODEL_DISPEC 5 /* disable specific option */ | 48 | #define PDC_MODEL_DISPEC 5 /* disable specific option */ |
51 | #define PDC_MODEL_CPU_ID 6 /* returns cpu-id (only newer machines!) */ | 49 | #define PDC_MODEL_CPU_ID 6 /* returns cpu-id (only newer machines!) */ |
52 | #define PDC_MODEL_CAPABILITIES 7 /* returns OS32/OS64-flags */ | 50 | #define PDC_MODEL_CAPABILITIES 7 /* returns OS32/OS64-flags */ |
51 | /* Values for PDC_MODEL_CAPABILITIES non-equivalent virtual aliasing support */ | ||
52 | #define PDC_MODEL_IOPDIR_FDC (1 << 2) | ||
53 | #define PDC_MODEL_NVA_MASK (3 << 4) | ||
54 | #define PDC_MODEL_NVA_SUPPORTED (0 << 4) | ||
55 | #define PDC_MODEL_NVA_SLOW (1 << 4) | ||
56 | #define PDC_MODEL_NVA_UNSUPPORTED (3 << 4) | ||
53 | #define PDC_MODEL_GET_BOOT__OP 8 /* returns boot test options */ | 57 | #define PDC_MODEL_GET_BOOT__OP 8 /* returns boot test options */ |
54 | #define PDC_MODEL_SET_BOOT__OP 9 /* set boot test options */ | 58 | #define PDC_MODEL_SET_BOOT__OP 9 /* set boot test options */ |
55 | 59 | ||
@@ -91,7 +95,7 @@ | |||
91 | #define PDC_TOD 9 /* time-of-day clock (TOD) */ | 95 | #define PDC_TOD 9 /* time-of-day clock (TOD) */ |
92 | #define PDC_TOD_READ 0 /* read TOD */ | 96 | #define PDC_TOD_READ 0 /* read TOD */ |
93 | #define PDC_TOD_WRITE 1 /* write TOD */ | 97 | #define PDC_TOD_WRITE 1 /* write TOD */ |
94 | #define PDC_TOD_ITIMER 2 /* calibrate Interval Timer (CR16) */ | 98 | |
95 | 99 | ||
96 | #define PDC_STABLE 10 /* stable storage (sprockets) */ | 100 | #define PDC_STABLE 10 /* stable storage (sprockets) */ |
97 | #define PDC_STABLE_READ 0 | 101 | #define PDC_STABLE_READ 0 |
@@ -143,15 +147,6 @@ | |||
143 | #define PDC_MEM_RET_PDT_FULL -11 | 147 | #define PDC_MEM_RET_PDT_FULL -11 |
144 | #define PDC_MEM_RET_INVALID_PHYSICAL_LOCATION ~0ULL | 148 | #define PDC_MEM_RET_INVALID_PHYSICAL_LOCATION ~0ULL |
145 | 149 | ||
146 | #ifndef __ASSEMBLY__ | ||
147 | typedef struct { | ||
148 | unsigned long long baseAddr; | ||
149 | unsigned int pages; | ||
150 | unsigned int reserved; | ||
151 | } MemAddrTable_t; | ||
152 | #endif | ||
153 | |||
154 | |||
155 | #define PDC_PSW 21 /* Get/Set default System Mask */ | 150 | #define PDC_PSW 21 /* Get/Set default System Mask */ |
156 | #define PDC_PSW_MASK 0 /* Return mask */ | 151 | #define PDC_PSW_MASK 0 /* Return mask */ |
157 | #define PDC_PSW_GET_DEFAULTS 1 /* Return defaults */ | 152 | #define PDC_PSW_GET_DEFAULTS 1 /* Return defaults */ |
@@ -274,6 +269,43 @@ typedef struct { | |||
274 | #define PDC_LINK_PCI_ENTRY_POINTS 0 /* list (Arg1) = 0 */ | 269 | #define PDC_LINK_PCI_ENTRY_POINTS 0 /* list (Arg1) = 0 */ |
275 | #define PDC_LINK_USB_ENTRY_POINTS 1 /* list (Arg1) = 1 */ | 270 | #define PDC_LINK_USB_ENTRY_POINTS 1 /* list (Arg1) = 1 */ |
276 | 271 | ||
272 | /* cl_class | ||
273 | * page 3-33 of IO-Firmware ARS | ||
274 | * IODC ENTRY_INIT(Search first) RET[1] | ||
275 | */ | ||
276 | #define CL_NULL 0 /* invalid */ | ||
277 | #define CL_RANDOM 1 /* random access (as disk) */ | ||
278 | #define CL_SEQU 2 /* sequential access (as tape) */ | ||
279 | #define CL_DUPLEX 7 /* full-duplex point-to-point (RS-232, Net) */ | ||
280 | #define CL_KEYBD 8 /* half-duplex console (HIL Keyboard) */ | ||
281 | #define CL_DISPL 9 /* half-duplex console (display) */ | ||
282 | #define CL_FC 10 /* FiberChannel access media */ | ||
283 | |||
284 | /* IODC ENTRY_INIT() */ | ||
285 | #define ENTRY_INIT_SRCH_FRST 2 | ||
286 | #define ENTRY_INIT_SRCH_NEXT 3 | ||
287 | #define ENTRY_INIT_MOD_DEV 4 | ||
288 | #define ENTRY_INIT_DEV 5 | ||
289 | #define ENTRY_INIT_MOD 6 | ||
290 | #define ENTRY_INIT_MSG 9 | ||
291 | |||
292 | /* IODC ENTRY_IO() */ | ||
293 | #define ENTRY_IO_BOOTIN 0 | ||
294 | #define ENTRY_IO_BOOTOUT 1 | ||
295 | #define ENTRY_IO_CIN 2 | ||
296 | #define ENTRY_IO_COUT 3 | ||
297 | #define ENTRY_IO_CLOSE 4 | ||
298 | #define ENTRY_IO_GETMSG 9 | ||
299 | #define ENTRY_IO_BBLOCK_IN 16 | ||
300 | #define ENTRY_IO_BBLOCK_OUT 17 | ||
301 | |||
302 | /* IODC ENTRY_SPA() */ | ||
303 | |||
304 | /* IODC ENTRY_CONFIG() */ | ||
305 | |||
306 | /* IODC ENTRY_TEST() */ | ||
307 | |||
308 | /* IODC ENTRY_TLB() */ | ||
277 | 309 | ||
278 | /* constants for OS (NVM...) */ | 310 | /* constants for OS (NVM...) */ |
279 | #define OS_ID_NONE 0 /* Undefined OS ID */ | 311 | #define OS_ID_NONE 0 /* Undefined OS ID */ |
@@ -295,7 +327,13 @@ typedef struct { | |||
295 | #define OSTAT_RUN 6 | 327 | #define OSTAT_RUN 6 |
296 | #define OSTAT_ON 7 | 328 | #define OSTAT_ON 7 |
297 | 329 | ||
298 | #ifndef __ASSEMBLY__ | 330 | /* Page Zero constant offsets used by the HPMC handler */ |
331 | #define BOOT_CONSOLE_HPA_OFFSET 0x3c0 | ||
332 | #define BOOT_CONSOLE_SPA_OFFSET 0x3c4 | ||
333 | #define BOOT_CONSOLE_PATH_OFFSET 0x3a8 | ||
334 | |||
335 | #if !defined(__ASSEMBLY__) | ||
336 | #ifdef __KERNEL__ | ||
299 | 337 | ||
300 | #include <linux/types.h> | 338 | #include <linux/types.h> |
301 | 339 | ||
@@ -331,14 +369,6 @@ struct pdc_model { /* for PDC_MODEL */ | |||
331 | unsigned long curr_key; | 369 | unsigned long curr_key; |
332 | }; | 370 | }; |
333 | 371 | ||
334 | /* Values for PDC_MODEL_CAPABILITIES non-equivalent virtual aliasing support */ | ||
335 | |||
336 | #define PDC_MODEL_IOPDIR_FDC (1 << 2) /* see sba_iommu.c */ | ||
337 | #define PDC_MODEL_NVA_MASK (3 << 4) | ||
338 | #define PDC_MODEL_NVA_SUPPORTED (0 << 4) | ||
339 | #define PDC_MODEL_NVA_SLOW (1 << 4) | ||
340 | #define PDC_MODEL_NVA_UNSUPPORTED (3 << 4) | ||
341 | |||
342 | struct pdc_cache_cf { /* for PDC_CACHE (I/D-caches) */ | 372 | struct pdc_cache_cf { /* for PDC_CACHE (I/D-caches) */ |
343 | unsigned long | 373 | unsigned long |
344 | #ifdef CONFIG_64BIT | 374 | #ifdef CONFIG_64BIT |
@@ -558,15 +588,97 @@ struct pdc_hpmc_pim_20 { /* PDC_PIM */ | |||
558 | __u64 fr[32]; | 588 | __u64 fr[32]; |
559 | }; | 589 | }; |
560 | 590 | ||
561 | #endif /* __ASSEMBLY__ */ | 591 | void pdc_console_init(void); /* in pdc_console.c */ |
592 | void pdc_console_restart(void); | ||
593 | |||
594 | void setup_pdc(void); /* in inventory.c */ | ||
595 | |||
596 | /* wrapper-functions from pdc.c */ | ||
597 | |||
598 | int pdc_add_valid(unsigned long address); | ||
599 | int pdc_chassis_info(struct pdc_chassis_info *chassis_info, void *led_info, unsigned long len); | ||
600 | int pdc_chassis_disp(unsigned long disp); | ||
601 | int pdc_chassis_warn(unsigned long *warn); | ||
602 | int pdc_coproc_cfg(struct pdc_coproc_cfg *pdc_coproc_info); | ||
603 | int pdc_iodc_read(unsigned long *actcnt, unsigned long hpa, unsigned int index, | ||
604 | void *iodc_data, unsigned int iodc_data_size); | ||
605 | int pdc_system_map_find_mods(struct pdc_system_map_mod_info *pdc_mod_info, | ||
606 | struct pdc_module_path *mod_path, long mod_index); | ||
607 | int pdc_system_map_find_addrs(struct pdc_system_map_addr_info *pdc_addr_info, | ||
608 | long mod_index, long addr_index); | ||
609 | int pdc_model_info(struct pdc_model *model); | ||
610 | int pdc_model_sysmodel(char *name); | ||
611 | int pdc_model_cpuid(unsigned long *cpu_id); | ||
612 | int pdc_model_versions(unsigned long *versions, int id); | ||
613 | int pdc_model_capabilities(unsigned long *capabilities); | ||
614 | int pdc_cache_info(struct pdc_cache_info *cache); | ||
615 | int pdc_spaceid_bits(unsigned long *space_bits); | ||
616 | #ifndef CONFIG_PA20 | ||
617 | int pdc_btlb_info(struct pdc_btlb_info *btlb); | ||
618 | int pdc_mem_map_hpa(struct pdc_memory_map *r_addr, struct pdc_module_path *mod_path); | ||
619 | #endif /* !CONFIG_PA20 */ | ||
620 | int pdc_lan_station_id(char *lan_addr, unsigned long net_hpa); | ||
621 | |||
622 | int pdc_stable_read(unsigned long staddr, void *memaddr, unsigned long count); | ||
623 | int pdc_stable_write(unsigned long staddr, void *memaddr, unsigned long count); | ||
624 | int pdc_stable_get_size(unsigned long *size); | ||
625 | int pdc_stable_verify_contents(void); | ||
626 | int pdc_stable_initialize(void); | ||
627 | |||
628 | int pdc_pci_irt_size(unsigned long *num_entries, unsigned long hpa); | ||
629 | int pdc_pci_irt(unsigned long num_entries, unsigned long hpa, void *tbl); | ||
630 | |||
631 | int pdc_get_initiator(struct hardware_path *, struct pdc_initiator *); | ||
632 | int pdc_tod_read(struct pdc_tod *tod); | ||
633 | int pdc_tod_set(unsigned long sec, unsigned long usec); | ||
634 | |||
635 | #ifdef CONFIG_64BIT | ||
636 | int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr, | ||
637 | struct pdc_memory_table *tbl, unsigned long entries); | ||
638 | #endif | ||
639 | |||
640 | void set_firmware_width(void); | ||
641 | int pdc_do_firm_test_reset(unsigned long ftc_bitmap); | ||
642 | int pdc_do_reset(void); | ||
643 | int pdc_soft_power_info(unsigned long *power_reg); | ||
644 | int pdc_soft_power_button(int sw_control); | ||
645 | void pdc_io_reset(void); | ||
646 | void pdc_io_reset_devices(void); | ||
647 | int pdc_iodc_getc(void); | ||
648 | void pdc_iodc_putc(unsigned char c); | ||
649 | void pdc_iodc_outc(unsigned char c); | ||
650 | void pdc_printf(const char *fmt, ...); | ||
651 | |||
652 | void pdc_emergency_unlock(void); | ||
653 | int pdc_sti_call(unsigned long func, unsigned long flags, | ||
654 | unsigned long inptr, unsigned long outputr, | ||
655 | unsigned long glob_cfg); | ||
656 | |||
657 | static inline char * os_id_to_string(u16 os_id) { | ||
658 | switch(os_id) { | ||
659 | case OS_ID_NONE: return "No OS"; | ||
660 | case OS_ID_HPUX: return "HP-UX"; | ||
661 | case OS_ID_MPEXL: return "MPE-iX"; | ||
662 | case OS_ID_OSF: return "OSF"; | ||
663 | case OS_ID_HPRT: return "HP-RT"; | ||
664 | case OS_ID_NOVEL: return "Novell Netware"; | ||
665 | case OS_ID_LINUX: return "Linux"; | ||
666 | default: return "Unknown"; | ||
667 | } | ||
668 | } | ||
669 | |||
670 | #endif /* __KERNEL__ */ | ||
671 | |||
672 | #define PAGE0 ((struct zeropage *)__PAGE_OFFSET) | ||
673 | |||
674 | /* DEFINITION OF THE ZERO-PAGE (PAG0) */ | ||
675 | /* based on work by Jason Eckhardt (jason@equator.com) */ | ||
562 | 676 | ||
563 | /* flags of the device_path (see below) */ | 677 | /* flags of the device_path */ |
564 | #define PF_AUTOBOOT 0x80 | 678 | #define PF_AUTOBOOT 0x80 |
565 | #define PF_AUTOSEARCH 0x40 | 679 | #define PF_AUTOSEARCH 0x40 |
566 | #define PF_TIMER 0x0F | 680 | #define PF_TIMER 0x0F |
567 | 681 | ||
568 | #ifndef __ASSEMBLY__ | ||
569 | |||
570 | struct device_path { /* page 1-69 */ | 682 | struct device_path { /* page 1-69 */ |
571 | unsigned char flags; /* flags see above! */ | 683 | unsigned char flags; /* flags see above! */ |
572 | unsigned char bc[6]; /* bus converter routing info */ | 684 | unsigned char bc[6]; /* bus converter routing info */ |
@@ -586,63 +698,6 @@ struct pz_device { | |||
586 | unsigned short cl_class;/* see below */ | 698 | unsigned short cl_class;/* see below */ |
587 | } __attribute__((aligned(8))) ; | 699 | } __attribute__((aligned(8))) ; |
588 | 700 | ||
589 | #endif /* __ASSEMBLY__ */ | ||
590 | |||
591 | /* cl_class | ||
592 | * page 3-33 of IO-Firmware ARS | ||
593 | * IODC ENTRY_INIT(Search first) RET[1] | ||
594 | */ | ||
595 | #define CL_NULL 0 /* invalid */ | ||
596 | #define CL_RANDOM 1 /* random access (as disk) */ | ||
597 | #define CL_SEQU 2 /* sequential access (as tape) */ | ||
598 | #define CL_DUPLEX 7 /* full-duplex point-to-point (RS-232, Net) */ | ||
599 | #define CL_KEYBD 8 /* half-duplex console (HIL Keyboard) */ | ||
600 | #define CL_DISPL 9 /* half-duplex console (display) */ | ||
601 | #define CL_FC 10 /* FiberChannel access media */ | ||
602 | |||
603 | #if 0 | ||
604 | /* FIXME: DEVCLASS_* duplicates CL_* (above). Delete DEVCLASS_*? */ | ||
605 | #define DEVCLASS_RANDOM 1 | ||
606 | #define DEVCLASS_SEQU 2 | ||
607 | #define DEVCLASS_DUPLEX 7 | ||
608 | #define DEVCLASS_KEYBD 8 | ||
609 | #define DEVCLASS_DISP 9 | ||
610 | #endif | ||
611 | |||
612 | /* IODC ENTRY_INIT() */ | ||
613 | #define ENTRY_INIT_SRCH_FRST 2 | ||
614 | #define ENTRY_INIT_SRCH_NEXT 3 | ||
615 | #define ENTRY_INIT_MOD_DEV 4 | ||
616 | #define ENTRY_INIT_DEV 5 | ||
617 | #define ENTRY_INIT_MOD 6 | ||
618 | #define ENTRY_INIT_MSG 9 | ||
619 | |||
620 | /* IODC ENTRY_IO() */ | ||
621 | #define ENTRY_IO_BOOTIN 0 | ||
622 | #define ENTRY_IO_BOOTOUT 1 | ||
623 | #define ENTRY_IO_CIN 2 | ||
624 | #define ENTRY_IO_COUT 3 | ||
625 | #define ENTRY_IO_CLOSE 4 | ||
626 | #define ENTRY_IO_GETMSG 9 | ||
627 | #define ENTRY_IO_BBLOCK_IN 16 | ||
628 | #define ENTRY_IO_BBLOCK_OUT 17 | ||
629 | |||
630 | /* IODC ENTRY_SPA() */ | ||
631 | |||
632 | /* IODC ENTRY_CONFIG() */ | ||
633 | |||
634 | /* IODC ENTRY_TEST() */ | ||
635 | |||
636 | /* IODC ENTRY_TLB() */ | ||
637 | |||
638 | |||
639 | /* DEFINITION OF THE ZERO-PAGE (PAG0) */ | ||
640 | /* based on work by Jason Eckhardt (jason@equator.com) */ | ||
641 | |||
642 | #ifndef __ASSEMBLY__ | ||
643 | |||
644 | #define PAGE0 ((struct zeropage *)__PAGE_OFFSET) | ||
645 | |||
646 | struct zeropage { | 701 | struct zeropage { |
647 | /* [0x000] initialize vectors (VEC) */ | 702 | /* [0x000] initialize vectors (VEC) */ |
648 | unsigned int vec_special; /* must be zero */ | 703 | unsigned int vec_special; /* must be zero */ |
@@ -699,93 +754,6 @@ struct zeropage { | |||
699 | __u32 pad608[126]; | 754 | __u32 pad608[126]; |
700 | }; | 755 | }; |
701 | 756 | ||
702 | #endif /* __ASSEMBLY__ */ | 757 | #endif /* !defined(__ASSEMBLY__) */ |
703 | |||
704 | /* Page Zero constant offsets used by the HPMC handler */ | ||
705 | |||
706 | #define BOOT_CONSOLE_HPA_OFFSET 0x3c0 | ||
707 | #define BOOT_CONSOLE_SPA_OFFSET 0x3c4 | ||
708 | #define BOOT_CONSOLE_PATH_OFFSET 0x3a8 | ||
709 | |||
710 | #ifndef __ASSEMBLY__ | ||
711 | void pdc_console_init(void); /* in pdc_console.c */ | ||
712 | void pdc_console_restart(void); | ||
713 | |||
714 | void setup_pdc(void); /* in inventory.c */ | ||
715 | |||
716 | /* wrapper-functions from pdc.c */ | ||
717 | |||
718 | int pdc_add_valid(unsigned long address); | ||
719 | int pdc_chassis_info(struct pdc_chassis_info *chassis_info, void *led_info, unsigned long len); | ||
720 | int pdc_chassis_disp(unsigned long disp); | ||
721 | int pdc_chassis_warn(unsigned long *warn); | ||
722 | int pdc_coproc_cfg(struct pdc_coproc_cfg *pdc_coproc_info); | ||
723 | int pdc_iodc_read(unsigned long *actcnt, unsigned long hpa, unsigned int index, | ||
724 | void *iodc_data, unsigned int iodc_data_size); | ||
725 | int pdc_system_map_find_mods(struct pdc_system_map_mod_info *pdc_mod_info, | ||
726 | struct pdc_module_path *mod_path, long mod_index); | ||
727 | int pdc_system_map_find_addrs(struct pdc_system_map_addr_info *pdc_addr_info, | ||
728 | long mod_index, long addr_index); | ||
729 | int pdc_model_info(struct pdc_model *model); | ||
730 | int pdc_model_sysmodel(char *name); | ||
731 | int pdc_model_cpuid(unsigned long *cpu_id); | ||
732 | int pdc_model_versions(unsigned long *versions, int id); | ||
733 | int pdc_model_capabilities(unsigned long *capabilities); | ||
734 | int pdc_cache_info(struct pdc_cache_info *cache); | ||
735 | int pdc_spaceid_bits(unsigned long *space_bits); | ||
736 | #ifndef CONFIG_PA20 | ||
737 | int pdc_btlb_info(struct pdc_btlb_info *btlb); | ||
738 | int pdc_mem_map_hpa(struct pdc_memory_map *r_addr, struct pdc_module_path *mod_path); | ||
739 | #endif /* !CONFIG_PA20 */ | ||
740 | int pdc_lan_station_id(char *lan_addr, unsigned long net_hpa); | ||
741 | |||
742 | int pdc_stable_read(unsigned long staddr, void *memaddr, unsigned long count); | ||
743 | int pdc_stable_write(unsigned long staddr, void *memaddr, unsigned long count); | ||
744 | int pdc_stable_get_size(unsigned long *size); | ||
745 | int pdc_stable_verify_contents(void); | ||
746 | int pdc_stable_initialize(void); | ||
747 | |||
748 | int pdc_pci_irt_size(unsigned long *num_entries, unsigned long hpa); | ||
749 | int pdc_pci_irt(unsigned long num_entries, unsigned long hpa, void *tbl); | ||
750 | |||
751 | int pdc_get_initiator(struct hardware_path *, struct pdc_initiator *); | ||
752 | int pdc_tod_read(struct pdc_tod *tod); | ||
753 | int pdc_tod_set(unsigned long sec, unsigned long usec); | ||
754 | |||
755 | #ifdef CONFIG_64BIT | ||
756 | int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr, | ||
757 | struct pdc_memory_table *tbl, unsigned long entries); | ||
758 | #endif | ||
759 | |||
760 | void set_firmware_width(void); | ||
761 | int pdc_do_firm_test_reset(unsigned long ftc_bitmap); | ||
762 | int pdc_do_reset(void); | ||
763 | int pdc_soft_power_info(unsigned long *power_reg); | ||
764 | int pdc_soft_power_button(int sw_control); | ||
765 | void pdc_io_reset(void); | ||
766 | void pdc_io_reset_devices(void); | ||
767 | int pdc_iodc_getc(void); | ||
768 | void pdc_iodc_putc(unsigned char c); | ||
769 | void pdc_iodc_outc(unsigned char c); | ||
770 | void pdc_printf(const char *fmt, ...); | ||
771 | |||
772 | void pdc_emergency_unlock(void); | ||
773 | int pdc_sti_call(unsigned long func, unsigned long flags, | ||
774 | unsigned long inptr, unsigned long outputr, | ||
775 | unsigned long glob_cfg); | ||
776 | |||
777 | static inline char * os_id_to_string(u16 os_id) { | ||
778 | switch(os_id) { | ||
779 | case OS_ID_NONE: return "No OS"; | ||
780 | case OS_ID_HPUX: return "HP-UX"; | ||
781 | case OS_ID_MPEXL: return "MPE-iX"; | ||
782 | case OS_ID_OSF: return "OSF"; | ||
783 | case OS_ID_HPRT: return "HP-RT"; | ||
784 | case OS_ID_NOVEL: return "Novell Netware"; | ||
785 | case OS_ID_LINUX: return "Linux"; | ||
786 | default: return "Unknown"; | ||
787 | } | ||
788 | } | ||
789 | #endif /* __ASSEMBLY__ */ | ||
790 | 758 | ||
791 | #endif /* _PARISC_PDC_H */ | 759 | #endif /* _PARISC_PDC_H */ |