• Home
  • Raw
  • Download

Lines Matching defs:machdep_calls

28 struct machdep_calls {  struct
29 char *name;
32 void (*iommu_save)(void);
33 void (*iommu_restore)(void);
36 unsigned long (*memory_block_size)(void);
40 void (*dma_set_mask)(struct device *dev, u64 dma_mask);
42 int (*probe)(void);
43 void (*setup_arch)(void); /* Optional, may be NULL */
45 void (*show_cpuinfo)(struct seq_file *m);
46 void (*show_percpuinfo)(struct seq_file *m, int i);
48 unsigned long (*get_proc_freq)(unsigned int cpu);
50 void (*init_IRQ)(void);
53 unsigned int (*get_irq)(void);
57 void (*pcibios_fixup)(void);
58 void (*pci_irq_fixup)(struct pci_dev *dev);
59 int (*pcibios_root_bridge_prepare)(struct pci_host_bridge
63 void (*discover_phbs)(void);
66 int (*pci_setup_phb)(struct pci_controller *host);
68 void __noreturn (*restart)(char *cmd);
69 void __noreturn (*halt)(void);
70 void (*panic)(char *str);
72 long (*time_init)(void); /* Optional, may be NULL */
74 int (*set_rtc_time)(struct rtc_time *);
75 void (*get_rtc_time)(struct rtc_time *);
76 time64_t (*get_boot_time)(void);
77 unsigned char (*rtc_read_val)(int addr);
78 void (*rtc_write_val)(int addr, unsigned char val);
80 void (*calibrate_decr)(void);
82 void (*progress)(char *, unsigned short);
85 void (*log_error)(char *buf, unsigned int err_type, int fatal);
87 unsigned char (*nvram_read_val)(int addr);
88 void (*nvram_write_val)(int addr, unsigned char val);
89 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
90 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
91 ssize_t (*nvram_size)(void);
92 void (*nvram_sync)(void);
95 int (*system_reset_exception)(struct pt_regs *regs);
96 int (*machine_check_exception)(struct pt_regs *regs);
97 int (*handle_hmi_exception)(struct pt_regs *regs);
100 int (*hmi_exception_early)(struct pt_regs *regs);
101 long (*machine_check_early)(struct pt_regs *regs);
104 bool (*mce_check_early_recovery)(struct pt_regs *regs);
110 long (*feature_call)(unsigned int feature, ...);
113 int (*pci_get_legacy_ide_irq)(struct pci_dev *dev, int channel);
116 pgprot_t (*phys_mem_access_prot)(struct file *file,
125 void (*power_save)(void);
129 void (*enable_pmcs)(void);
132 int (*set_dabr)(unsigned long dabr,
136 int (*set_dawr)(int nr, unsigned long dawr,
142 void (*init)(void);
144 void (*kgdb_map_scc)(void);
150 void (*pcibios_after_init)(void);
155 int (*pci_exclude_device)(struct pci_controller *, unsigned char, unsigned char);
159 void (*pcibios_fixup_resources)(struct pci_dev *);
162 void (*pcibios_fixup_bus)(struct pci_bus *);
165 void (*pcibios_fixup_phb)(struct pci_controller *hose);
171 void (*pcibios_bus_add_device)(struct pci_dev *pdev);
173 resource_size_t (*pcibios_default_alignment)(void);
176 void (*pcibios_fixup_sriov)(struct pci_dev *pdev);
177 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
178 int (*pcibios_sriov_enable)(struct pci_dev *pdev, u16 num_vfs);
179 int (*pcibios_sriov_disable)(struct pci_dev *pdev);
185 void (*machine_shutdown)(void);
188 void (*kexec_cpu_down)(int crash_shutdown, int secondary);
195 int (*machine_kexec_prepare)(struct kimage *image);
201 void (*machine_kexec)(struct kimage *image);
210 void (*suspend_disable_irqs)(void);
234 extern struct machdep_calls ppc_md; argument