Lines Matching defs:machdep_calls

33 struct machdep_calls {  struct
34 char *name;
36 void (*hpte_invalidate)(unsigned long slot,
40 long (*hpte_updatepp)(unsigned long slot,
45 void (*hpte_updateboltedpp)(unsigned long newpp,
48 long (*hpte_insert)(unsigned long hpte_group,
54 long (*hpte_remove)(unsigned long hpte_group);
55 void (*hpte_removebolted)(unsigned long ea,
57 void (*flush_hash_range)(unsigned long number, int local);
61 void (*hpte_clear_all)(void);
63 int (*tce_build)(struct iommu_table *tbl,
69 void (*tce_free)(struct iommu_table *tbl,
72 unsigned long (*tce_get)(struct iommu_table *tbl,
74 void (*tce_flush)(struct iommu_table *tbl);
76 void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
78 void (*iounmap)(volatile void __iomem *token);
81 void (*iommu_save)(void);
82 void (*iommu_restore)(void);
86 void (*pci_dma_dev_setup)(struct pci_dev *dev);
87 void (*pci_dma_bus_setup)(struct pci_bus *bus);
90 int (*dma_set_mask)(struct device *dev, u64 dma_mask);
91 u64 (*dma_get_required_mask)(struct device *dev);
93 int (*probe)(void);
94 void (*setup_arch)(void); /* Optional, may be NULL */
95 void (*init_early)(void);
97 void (*show_cpuinfo)(struct seq_file *m);
98 void (*show_percpuinfo)(struct seq_file *m, int i);
100 void (*init_IRQ)(void);
105 unsigned int (*get_irq)(void);
109 void (*pcibios_fixup)(void);
110 int (*pci_probe_mode)(struct pci_bus *);
111 void (*pci_irq_fixup)(struct pci_dev *dev);
114 int (*pci_setup_phb)(struct pci_controller *host);
117 int (*msi_check_device)(struct pci_dev* dev,
119 int (*setup_msi_irqs)(struct pci_dev *dev,
121 void (*teardown_msi_irqs)(struct pci_dev *dev);
124 void (*restart)(char *cmd);
125 void (*power_off)(void);
126 void (*halt)(void);
127 void (*panic)(char *str);
128 void (*cpu_die)(void);
130 long (*time_init)(void); /* Optional, may be NULL */
132 int (*set_rtc_time)(struct rtc_time *);
133 void (*get_rtc_time)(struct rtc_time *);
134 unsigned long (*get_boot_time)(void);
135 unsigned char (*rtc_read_val)(int addr);
136 void (*rtc_write_val)(int addr, unsigned char val);
138 void (*calibrate_decr)(void);
140 void (*progress)(char *, unsigned short);
143 void (*log_error)(char *buf, unsigned int err_type, int fatal);
145 unsigned char (*nvram_read_val)(int addr);
146 void (*nvram_write_val)(int addr, unsigned char val);
147 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
148 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
149 ssize_t (*nvram_size)(void);
150 void (*nvram_sync)(void);
153 int (*system_reset_exception)(struct pt_regs *regs);
154 int (*machine_check_exception)(struct pt_regs *regs);
160 long (*feature_call)(unsigned int feature, ...);
163 int (*pci_get_legacy_ide_irq)(struct pci_dev *dev, int channel);
166 pgprot_t (*phys_mem_access_prot)(struct file *file,
172 void (*idle_loop)(void);
178 void (*power_save)(void);
182 void (*enable_pmcs)(void);
185 int (*set_dabr)(unsigned long dabr);
190 void (*init)(void);
192 void (*kgdb_map_scc)(void);
198 void (*pcibios_after_init)(void);
203 int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
207 void (*pcibios_fixup_resources)(struct pci_dev *);
210 void (*pcibios_fixup_bus)(struct pci_bus *);
214 int (*pcibios_enable_device_hook)(struct pci_dev *);
217 void (*pcibios_fixup_phb)(struct pci_controller *hose);
222 void (*machine_shutdown)(void);
225 void (*kexec_cpu_down)(int crash_shutdown, int secondary);
232 int (*machine_kexec_prepare)(struct kimage *image);
238 void (*machine_kexec)(struct kimage *image);
269 extern struct machdep_calls ppc_md; argument