perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / drivers / char / ipmi / ipmi_si.h
blob52f6152d1fcbf628f6f4bee39d3a5a4b36e8b0c6
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * ipmi_si.h
5 * Interface from the device-specific interfaces (OF, DMI, ACPI, PCI,
6 * etc) to the base ipmi system interface code.
7 */
9 #include <linux/interrupt.h>
10 #include "ipmi_si_sm.h"
12 #define IPMI_IO_ADDR_SPACE 0
13 #define IPMI_MEM_ADDR_SPACE 1
15 #define DEFAULT_REGSPACING 1
16 #define DEFAULT_REGSIZE 1
18 #define DEVICE_NAME "ipmi_si"
20 int ipmi_si_add_smi(struct si_sm_io *io);
21 irqreturn_t ipmi_si_irq_handler(int irq, void *data);
22 void ipmi_irq_start_cleanup(struct si_sm_io *io);
23 int ipmi_std_irq_setup(struct si_sm_io *io);
24 void ipmi_irq_finish_setup(struct si_sm_io *io);
25 int ipmi_si_remove_by_dev(struct device *dev);
26 void ipmi_si_remove_by_data(int addr_space, enum si_type si_type,
27 unsigned long addr);
28 int ipmi_si_hardcode_find_bmc(void);
29 void ipmi_si_platform_init(void);
30 void ipmi_si_platform_shutdown(void);
32 extern struct platform_driver ipmi_platform_driver;
34 #ifdef CONFIG_PCI
35 void ipmi_si_pci_init(void);
36 void ipmi_si_pci_shutdown(void);
37 #else
38 static inline void ipmi_si_pci_init(void) { }
39 static inline void ipmi_si_pci_shutdown(void) { }
40 #endif
41 #ifdef CONFIG_PARISC
42 void ipmi_si_parisc_init(void);
43 void ipmi_si_parisc_shutdown(void);
44 #else
45 static inline void ipmi_si_parisc_init(void) { }
46 static inline void ipmi_si_parisc_shutdown(void) { }
47 #endif
49 int ipmi_si_port_setup(struct si_sm_io *io);
50 int ipmi_si_mem_setup(struct si_sm_io *io);