Linux 4.16.11
[linux/fpc-iii.git] / drivers / char / ipmi / ipmi_si.h
blob17ce5f7b89abccd740e8f5366095d931781e4d3f
1 /*
2 * ipmi_si.h
4 * Interface from the device-specific interfaces (OF, DMI, ACPI, PCI,
5 * etc) to the base ipmi system interface code.
6 */
8 #include <linux/interrupt.h>
9 #include "ipmi_si_sm.h"
11 #define IPMI_IO_ADDR_SPACE 0
12 #define IPMI_MEM_ADDR_SPACE 1
14 #define DEFAULT_REGSPACING 1
15 #define DEFAULT_REGSIZE 1
17 #define DEVICE_NAME "ipmi_si"
19 int ipmi_si_add_smi(struct si_sm_io *io);
20 irqreturn_t ipmi_si_irq_handler(int irq, void *data);
21 void ipmi_irq_start_cleanup(struct si_sm_io *io);
22 int ipmi_std_irq_setup(struct si_sm_io *io);
23 void ipmi_irq_finish_setup(struct si_sm_io *io);
24 int ipmi_si_remove_by_dev(struct device *dev);
25 void ipmi_si_remove_by_data(int addr_space, enum si_type si_type,
26 unsigned long addr);
27 int ipmi_si_hardcode_find_bmc(void);
28 void ipmi_si_platform_init(void);
29 void ipmi_si_platform_shutdown(void);
31 extern struct platform_driver ipmi_platform_driver;
33 #ifdef CONFIG_PCI
34 void ipmi_si_pci_init(void);
35 void ipmi_si_pci_shutdown(void);
36 #else
37 static inline void ipmi_si_pci_init(void) { }
38 static inline void ipmi_si_pci_shutdown(void) { }
39 #endif
40 #ifdef CONFIG_PARISC
41 void ipmi_si_parisc_init(void);
42 void ipmi_si_parisc_shutdown(void);
43 #else
44 static inline void ipmi_si_parisc_init(void) { }
45 static inline void ipmi_si_parisc_shutdown(void) { }
46 #endif
48 int ipmi_si_port_setup(struct si_sm_io *io);
49 int ipmi_si_mem_setup(struct si_sm_io *io);