Lines Matching defs:machdep_calls
34 struct machdep_calls { struct
35 char *name;
37 void (*hpte_invalidate)(unsigned long slot,
41 long (*hpte_updatepp)(unsigned long slot,
46 void (*hpte_updateboltedpp)(unsigned long newpp,
49 long (*hpte_insert)(unsigned long hpte_group,
56 long (*hpte_remove)(unsigned long hpte_group);
57 void (*hpte_removebolted)(unsigned long ea,
59 void (*flush_hash_range)(unsigned long number, int local);
60 void (*hugepage_invalidate)(unsigned long vsid,
71 void (*hpte_clear_all)(void);
73 void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
75 void (*iounmap)(volatile void __iomem *token);
78 void (*iommu_save)(void);
79 void (*iommu_restore)(void);
82 unsigned long (*memory_block_size)(void);
87 int (*dma_set_mask)(struct device *dev, u64 dma_mask);
88 u64 (*dma_get_required_mask)(struct device *dev);
90 int (*probe)(void);
91 void (*setup_arch)(void); /* Optional, may be NULL */
92 void (*init_early)(void);
94 void (*show_cpuinfo)(struct seq_file *m);
95 void (*show_percpuinfo)(struct seq_file *m, int i);
97 unsigned long (*get_proc_freq)(unsigned int cpu);
99 void (*init_IRQ)(void);
102 unsigned int (*get_irq)(void);
106 void (*pcibios_fixup)(void);
107 void (*pci_irq_fixup)(struct pci_dev *dev);
108 int (*pcibios_root_bridge_prepare)(struct pci_host_bridge
112 int (*pci_setup_phb)(struct pci_controller *host);
114 void (*restart)(char *cmd);
115 void (*halt)(void);
116 void (*panic)(char *str);
117 void (*cpu_die)(void);
119 long (*time_init)(void); /* Optional, may be NULL */
121 int (*set_rtc_time)(struct rtc_time *);
122 void (*get_rtc_time)(struct rtc_time *);
123 unsigned long (*get_boot_time)(void);
124 unsigned char (*rtc_read_val)(int addr);
125 void (*rtc_write_val)(int addr, unsigned char val);
127 void (*calibrate_decr)(void);
129 void (*progress)(char *, unsigned short);
132 void (*log_error)(char *buf, unsigned int err_type, int fatal);
134 unsigned char (*nvram_read_val)(int addr);
135 void (*nvram_write_val)(int addr, unsigned char val);
136 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
137 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
138 ssize_t (*nvram_size)(void);
139 void (*nvram_sync)(void);
142 int (*system_reset_exception)(struct pt_regs *regs);
143 int (*machine_check_exception)(struct pt_regs *regs);
144 int (*handle_hmi_exception)(struct pt_regs *regs);
147 int (*hmi_exception_early)(struct pt_regs *regs);
150 bool (*mce_check_early_recovery)(struct pt_regs *regs);
156 long (*feature_call)(unsigned int feature, ...);
159 int (*pci_get_legacy_ide_irq)(struct pci_dev *dev, int channel);
162 pgprot_t (*phys_mem_access_prot)(struct file *file,
171 void (*power_save)(void);
175 void (*enable_pmcs)(void);
178 int (*set_dabr)(unsigned long dabr,
182 int (*set_dawr)(unsigned long dawr,
188 void (*init)(void);
190 void (*kgdb_map_scc)(void);
196 void (*pcibios_after_init)(void);
201 int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
205 void (*pcibios_fixup_resources)(struct pci_dev *);
208 void (*pcibios_fixup_bus)(struct pci_bus *);
211 void (*pcibios_fixup_phb)(struct pci_controller *hose);
214 void (*pcibios_fixup_sriov)(struct pci_dev *pdev);
215 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
221 void (*machine_shutdown)(void);
224 void (*kexec_cpu_down)(int crash_shutdown, int secondary);
231 int (*machine_kexec_prepare)(struct kimage *image);
237 void (*machine_kexec)(struct kimage *image);
246 void (*suspend_disable_irqs)(void);
247 void (*suspend_enable_irqs)(void);
272 extern struct machdep_calls ppc_md; argument