Lines Matching defs:machdep_calls

34 struct machdep_calls {  struct
35 char *name;
37 void __iomem * (*ioremap)(phys_addr_t addr, unsigned long size,
39 void (*iounmap)(volatile void __iomem *token);
42 void (*iommu_save)(void);
43 void (*iommu_restore)(void);
46 unsigned long (*memory_block_size)(void);
51 int (*dma_set_mask)(struct device *dev, u64 dma_mask);
52 u64 (*dma_get_required_mask)(struct device *dev);
54 int (*probe)(void);
55 void (*setup_arch)(void); /* Optional, may be NULL */
57 void (*show_cpuinfo)(struct seq_file *m);
58 void (*show_percpuinfo)(struct seq_file *m, int i);
60 unsigned long (*get_proc_freq)(unsigned int cpu);
62 void (*init_IRQ)(void);
65 unsigned int (*get_irq)(void);
69 void (*pcibios_fixup)(void);
70 void (*pci_irq_fixup)(struct pci_dev *dev);
71 int (*pcibios_root_bridge_prepare)(struct pci_host_bridge
75 int (*pci_setup_phb)(struct pci_controller *host);
77 void __noreturn (*restart)(char *cmd);
78 void __noreturn (*halt)(void);
79 void (*panic)(char *str);
80 void (*cpu_die)(void);
82 long (*time_init)(void); /* Optional, may be NULL */
84 int (*set_rtc_time)(struct rtc_time *);
85 void (*get_rtc_time)(struct rtc_time *);
86 time64_t (*get_boot_time)(void);
87 unsigned char (*rtc_read_val)(int addr);
88 void (*rtc_write_val)(int addr, unsigned char val);
90 void (*calibrate_decr)(void);
92 void (*progress)(char *, unsigned short);
95 void (*log_error)(char *buf, unsigned int err_type, int fatal);
97 unsigned char (*nvram_read_val)(int addr);
98 void (*nvram_write_val)(int addr, unsigned char val);
99 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
100 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
101 ssize_t (*nvram_size)(void);
102 void (*nvram_sync)(void);
105 int (*system_reset_exception)(struct pt_regs *regs);
106 int (*machine_check_exception)(struct pt_regs *regs);
107 int (*handle_hmi_exception)(struct pt_regs *regs);
110 int (*hmi_exception_early)(struct pt_regs *regs);
113 bool (*mce_check_early_recovery)(struct pt_regs *regs);
119 long (*feature_call)(unsigned int feature, ...);
122 int (*pci_get_legacy_ide_irq)(struct pci_dev *dev, int channel);
125 pgprot_t (*phys_mem_access_prot)(struct file *file,
134 void (*power_save)(void);
138 void (*enable_pmcs)(void);
141 int (*set_dabr)(unsigned long dabr,
145 int (*set_dawr)(unsigned long dawr,
151 void (*init)(void);
153 void (*kgdb_map_scc)(void);
159 void (*pcibios_after_init)(void);
164 int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
168 void (*pcibios_fixup_resources)(struct pci_dev *);
171 void (*pcibios_fixup_bus)(struct pci_bus *);
174 void (*pcibios_fixup_phb)(struct pci_controller *hose);
180 void (*pcibios_bus_add_device)(struct pci_dev *pdev);
182 resource_size_t (*pcibios_default_alignment)(void);
185 void (*pcibios_fixup_sriov)(struct pci_dev *pdev);
186 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
187 int (*pcibios_sriov_enable)(struct pci_dev *pdev, u16 num_vfs);
188 int (*pcibios_sriov_disable)(struct pci_dev *pdev);
194 void (*machine_shutdown)(void);
197 void (*kexec_cpu_down)(int crash_shutdown, int secondary);
204 int (*machine_kexec_prepare)(struct kimage *image);
210 void (*machine_kexec)(struct kimage *image);
219 void (*suspend_disable_irqs)(void);
220 void (*suspend_enable_irqs)(void);
222 int (*suspend_disable_cpu)(void);
246 extern struct machdep_calls ppc_md; argument