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,
66 void (*hpte_clear_all)(void);
68 int (*tce_build)(struct iommu_table *tbl,
74 void (*tce_free)(struct iommu_table *tbl,
77 unsigned long (*tce_get)(struct iommu_table *tbl,
79 void (*tce_flush)(struct iommu_table *tbl);
82 int (*tce_build_rm)(struct iommu_table *tbl,
88 void (*tce_free_rm)(struct iommu_table *tbl,
91 void (*tce_flush_rm)(struct iommu_table *tbl);
93 void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
95 void (*iounmap)(volatile void __iomem *token);
98 void (*iommu_save)(void);
99 void (*iommu_restore)(void);
102 unsigned long (*memory_block_size)(void);
107 int (*dma_set_mask)(struct device *dev, u64 dma_mask);
108 u64 (*dma_get_required_mask)(struct device *dev);
110 int (*probe)(void);
111 void (*setup_arch)(void); /* Optional, may be NULL */
112 void (*init_early)(void);
114 void (*show_cpuinfo)(struct seq_file *m);
115 void (*show_percpuinfo)(struct seq_file *m, int i);
117 unsigned long (*get_proc_freq)(unsigned int cpu);
119 void (*init_IRQ)(void);
122 unsigned int (*get_irq)(void);
126 void (*pcibios_fixup)(void);
127 void (*pci_irq_fixup)(struct pci_dev *dev);
128 int (*pcibios_root_bridge_prepare)(struct pci_host_bridge
132 int (*pci_setup_phb)(struct pci_controller *host);
135 int (*setup_msi_irqs)(struct pci_dev *dev,
137 void (*teardown_msi_irqs)(struct pci_dev *dev);
140 void (*restart)(char *cmd);
141 void (*halt)(void);
142 void (*panic)(char *str);
143 void (*cpu_die)(void);
145 long (*time_init)(void); /* Optional, may be NULL */
147 int (*set_rtc_time)(struct rtc_time *);
148 void (*get_rtc_time)(struct rtc_time *);
149 unsigned long (*get_boot_time)(void);
150 unsigned char (*rtc_read_val)(int addr);
151 void (*rtc_write_val)(int addr, unsigned char val);
153 void (*calibrate_decr)(void);
155 void (*progress)(char *, unsigned short);
158 void (*log_error)(char *buf, unsigned int err_type, int fatal);
160 unsigned char (*nvram_read_val)(int addr);
161 void (*nvram_write_val)(int addr, unsigned char val);
162 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
163 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
164 ssize_t (*nvram_size)(void);
165 void (*nvram_sync)(void);
168 int (*system_reset_exception)(struct pt_regs *regs);
169 int (*machine_check_exception)(struct pt_regs *regs);
170 int (*handle_hmi_exception)(struct pt_regs *regs);
173 int (*hmi_exception_early)(struct pt_regs *regs);
176 bool (*mce_check_early_recovery)(struct pt_regs *regs);
182 long (*feature_call)(unsigned int feature, ...);
185 int (*pci_get_legacy_ide_irq)(struct pci_dev *dev, int channel);
188 pgprot_t (*phys_mem_access_prot)(struct file *file,
197 void (*power_save)(void);
201 void (*enable_pmcs)(void);
204 int (*set_dabr)(unsigned long dabr,
208 int (*set_dawr)(unsigned long dawr,
214 void (*init)(void);
216 void (*kgdb_map_scc)(void);
222 void (*pcibios_after_init)(void);
227 int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
231 void (*pcibios_fixup_resources)(struct pci_dev *);
234 void (*pcibios_fixup_bus)(struct pci_bus *);
237 void (*pcibios_fixup_phb)(struct pci_controller *hose);
240 void (*pcibios_fixup_sriov)(struct pci_dev *pdev);
241 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
247 void (*machine_shutdown)(void);
250 void (*kexec_cpu_down)(int crash_shutdown, int secondary);
257 int (*machine_kexec_prepare)(struct kimage *image);
263 void (*machine_kexec)(struct kimage *image);
272 void (*suspend_disable_irqs)(void);
273 void (*suspend_enable_irqs)(void);
298 extern struct machdep_calls ppc_md; argument