~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/parisc/include/asm/pdc.h

Version: ~ [ linux-4.17-rc2 ] ~ [ linux-4.16.4 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.36 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.96 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.129 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.51 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.106 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.56 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.101 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.27.62 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef _PARISC_PDC_H
  3 #define _PARISC_PDC_H
  4 
  5 #include <uapi/asm/pdc.h>
  6 
  7 #if !defined(__ASSEMBLY__)
  8 
  9 extern int parisc_narrow_firmware;
 10 
 11 extern int pdc_type;
 12 extern unsigned long parisc_cell_num; /* cell number the CPU runs on (PAT) */
 13 extern unsigned long parisc_cell_loc; /* cell location of CPU (PAT)        */
 14 
 15 /* Values for pdc_type */
 16 #define PDC_TYPE_ILLEGAL        -1
 17 #define PDC_TYPE_PAT             0 /* 64-bit PAT-PDC */
 18 #define PDC_TYPE_SYSTEM_MAP      1 /* 32-bit, but supports PDC_SYSTEM_MAP */
 19 #define PDC_TYPE_SNAKE           2 /* Doesn't support SYSTEM_MAP */
 20 
 21 void pdc_console_init(void);    /* in pdc_console.c */
 22 void pdc_console_restart(void);
 23 
 24 void setup_pdc(void);           /* in inventory.c */
 25 
 26 /* wrapper-functions from pdc.c */
 27 
 28 int pdc_add_valid(unsigned long address);
 29 int pdc_instr(unsigned int *instr);
 30 int pdc_chassis_info(struct pdc_chassis_info *chassis_info, void *led_info, unsigned long len);
 31 int pdc_chassis_disp(unsigned long disp);
 32 int pdc_chassis_warn(unsigned long *warn);
 33 int pdc_coproc_cfg(struct pdc_coproc_cfg *pdc_coproc_info);
 34 int pdc_coproc_cfg_unlocked(struct pdc_coproc_cfg *pdc_coproc_info);
 35 int pdc_iodc_read(unsigned long *actcnt, unsigned long hpa, unsigned int index,
 36                   void *iodc_data, unsigned int iodc_data_size);
 37 int pdc_system_map_find_mods(struct pdc_system_map_mod_info *pdc_mod_info,
 38                              struct pdc_module_path *mod_path, long mod_index);
 39 int pdc_system_map_find_addrs(struct pdc_system_map_addr_info *pdc_addr_info,
 40                               long mod_index, long addr_index);
 41 int pdc_model_info(struct pdc_model *model);
 42 int pdc_model_sysmodel(char *name);
 43 int pdc_model_cpuid(unsigned long *cpu_id);
 44 int pdc_model_versions(unsigned long *versions, int id);
 45 int pdc_model_capabilities(unsigned long *capabilities);
 46 int pdc_cache_info(struct pdc_cache_info *cache);
 47 int pdc_spaceid_bits(unsigned long *space_bits);
 48 #ifndef CONFIG_PA20
 49 int pdc_btlb_info(struct pdc_btlb_info *btlb);
 50 int pdc_mem_map_hpa(struct pdc_memory_map *r_addr, struct pdc_module_path *mod_path);
 51 #endif /* !CONFIG_PA20 */
 52 int pdc_lan_station_id(char *lan_addr, unsigned long net_hpa);
 53 
 54 int pdc_stable_read(unsigned long staddr, void *memaddr, unsigned long count);
 55 int pdc_stable_write(unsigned long staddr, void *memaddr, unsigned long count);
 56 int pdc_stable_get_size(unsigned long *size);
 57 int pdc_stable_verify_contents(void);
 58 int pdc_stable_initialize(void);
 59 
 60 int pdc_pci_irt_size(unsigned long *num_entries, unsigned long hpa);
 61 int pdc_pci_irt(unsigned long num_entries, unsigned long hpa, void *tbl);
 62 
 63 int pdc_get_initiator(struct hardware_path *, struct pdc_initiator *);
 64 int pdc_tod_read(struct pdc_tod *tod);
 65 int pdc_tod_set(unsigned long sec, unsigned long usec);
 66 
 67 void pdc_pdt_init(void);        /* in pdt.c */
 68 int pdc_mem_pdt_info(struct pdc_mem_retinfo *rinfo);
 69 int pdc_mem_pdt_read_entries(struct pdc_mem_read_pdt *rpdt_read,
 70                 unsigned long *pdt_entries_ptr);
 71 #ifdef CONFIG_64BIT
 72 int pdc_mem_mem_table(struct pdc_memory_table_raddr *r_addr,
 73                 struct pdc_memory_table *tbl, unsigned long entries);
 74 #endif
 75 
 76 void set_firmware_width(void);
 77 void set_firmware_width_unlocked(void);
 78 int pdc_do_firm_test_reset(unsigned long ftc_bitmap);
 79 int pdc_do_reset(void);
 80 int pdc_soft_power_info(unsigned long *power_reg);
 81 int pdc_soft_power_button(int sw_control);
 82 void pdc_io_reset(void);
 83 void pdc_io_reset_devices(void);
 84 int pdc_iodc_getc(void);
 85 int pdc_iodc_print(const unsigned char *str, unsigned count);
 86 
 87 void pdc_emergency_unlock(void);
 88 int pdc_sti_call(unsigned long func, unsigned long flags,
 89                  unsigned long inptr, unsigned long outputr,
 90                  unsigned long glob_cfg);
 91 
 92 static inline char * os_id_to_string(u16 os_id) {
 93         switch(os_id) {
 94         case OS_ID_NONE:        return "No OS";
 95         case OS_ID_HPUX:        return "HP-UX";
 96         case OS_ID_MPEXL:       return "MPE-iX";
 97         case OS_ID_OSF:         return "OSF";
 98         case OS_ID_HPRT:        return "HP-RT";
 99         case OS_ID_NOVEL:       return "Novell Netware";
100         case OS_ID_LINUX:       return "Linux";
101         default:        return "Unknown";
102         }
103 }
104 
105 #endif /* !defined(__ASSEMBLY__) */
106 #endif /* _PARISC_PDC_H */
107 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp