summary refs log tree commit diff stats
path: root/include/hw/ipmi/ipmi.h
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2017-12-06 13:18:07 -0600
committerCorey Minyard <cminyard@mvista.com>2019-09-20 14:08:10 -0500
commit79d29a9d065d25f7f9da0dfca8ac9b6f1989978c (patch)
tree475f024301e35d9c3b4d1ab77fe6d00d62669de5 /include/hw/ipmi/ipmi.h
parent1739d54c8bea120897e6170a3807ab8633c6d460 (diff)
downloadfocaccia-qemu-79d29a9d065d25f7f9da0dfca8ac9b6f1989978c.tar.gz
focaccia-qemu-79d29a9d065d25f7f9da0dfca8ac9b6f1989978c.zip
ipmi: Allow a size value to be passed for I/O space
PCI device I/O must be >= 8 bytes in length or they don't work.
Allow the size to be passed in, the default size of 2 or 3
won't work.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/hw/ipmi/ipmi.h')
-rw-r--r--include/hw/ipmi/ipmi.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/hw/ipmi/ipmi.h b/include/hw/ipmi/ipmi.h
index 70871da0a7..6f2413b39b 100644
--- a/include/hw/ipmi/ipmi.h
+++ b/include/hw/ipmi/ipmi.h
@@ -118,7 +118,12 @@ typedef struct IPMIInterface IPMIInterface;
 typedef struct IPMIInterfaceClass {
     InterfaceClass parent;
 
-    void (*init)(struct IPMIInterface *s, Error **errp);
+    /*
+     * min_size is the requested I/O size and must be a power of 2.
+     * This is so PCI (or other busses) can request a bigger range.
+     * Use 0 for the default.
+     */
+    void (*init)(struct IPMIInterface *s, unsigned int min_size, Error **errp);
 
     /*
      * Perform various operations on the hardware.  If checkonly is