blob: 7627e9ada0179dffc2b5cd9ba6856aa3511721fb [file] [log] [blame]
Corey Minyard1e89a492017-09-12 13:52:13 -05001/*
2 * ipmi_si.h
3 *
4 * Interface from the device-specific interfaces (OF, DMI, ACPI, PCI,
5 * etc) to the base ipmi system interface code.
6 */
7
Corey Minyard4f3e8192017-09-12 15:10:22 -05008#include <linux/interrupt.h>
Corey Minyard1e89a492017-09-12 13:52:13 -05009#include "ipmi_si_sm.h"
10
11#define IPMI_IO_ADDR_SPACE 0
12#define IPMI_MEM_ADDR_SPACE 1
13
14#define DEFAULT_REGSPACING 1
15#define DEFAULT_REGSIZE 1
16
Corey Minyard9d700292017-09-12 22:55:57 -050017#define DEVICE_NAME "ipmi_si"
18
Corey Minyardbb398a42017-09-12 21:37:02 -050019int ipmi_si_add_smi(struct si_sm_io *io);
Corey Minyard4f3e8192017-09-12 15:10:22 -050020irqreturn_t ipmi_si_irq_handler(int irq, void *data);
21void ipmi_irq_start_cleanup(struct si_sm_io *io);
22int ipmi_std_irq_setup(struct si_sm_io *io);
23void ipmi_irq_finish_setup(struct si_sm_io *io);
Corey Minyardbb398a42017-09-12 21:37:02 -050024int ipmi_si_remove_by_dev(struct device *dev);
Corey Minyard44814ec2017-09-12 22:28:49 -050025void ipmi_si_remove_by_data(int addr_space, enum si_type si_type,
26 unsigned long addr);
Corey Minyard7a453302017-09-12 22:46:29 -050027int ipmi_si_hardcode_find_bmc(void);
Corey Minyard9d700292017-09-12 22:55:57 -050028void ipmi_si_platform_init(void);
29void ipmi_si_platform_shutdown(void);
30
31extern struct platform_driver ipmi_platform_driver;
Corey Minyard13d0b352017-09-12 23:04:35 -050032
33#ifdef CONFIG_PCI
34void ipmi_si_pci_init(void);
35void ipmi_si_pci_shutdown(void);
36#else
37static inline void ipmi_si_pci_init(void) { }
38static inline void ipmi_si_pci_shutdown(void) { }
39#endif