aboutsummaryrefslogtreecommitdiff
path: root/hw/slotid_cap.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-02-15 19:17:59 +0200
committerMichael S. Tsirkin <mst@redhat.com>2012-03-16 00:41:28 +0200
commit762833b3b88b7b79af442439a8b138a04786ec3d (patch)
treec99b8c3ff00ae1fe814b5bc9d5e36020ff7dbf55 /hw/slotid_cap.h
parent1dc324d20f7404fd6a416f16c2cb9a4ec50a4dd7 (diff)
downloadqemu-762833b3b88b7b79af442439a8b138a04786ec3d.zip
qemu-762833b3b88b7b79af442439a8b138a04786ec3d.tar.gz
qemu-762833b3b88b7b79af442439a8b138a04786ec3d.tar.bz2
slotid: add slot id capability
This capability makes it possible for the guest to report a unique chassis identifier to the user. The spec also recommends making chassis indentifier persist in eeprom. This isn't implemented. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/slotid_cap.h')
-rw-r--r--hw/slotid_cap.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/slotid_cap.h b/hw/slotid_cap.h
new file mode 100644
index 0000000..70db047
--- /dev/null
+++ b/hw/slotid_cap.h
@@ -0,0 +1,11 @@
+#ifndef PCI_SLOTID_CAP_H
+#define PCI_SLOTID_CAP_H
+
+#include "qemu-common.h"
+
+int slotid_cap_init(PCIDevice *dev, int nslots,
+ uint8_t chassis,
+ unsigned offset);
+void slotid_cap_cleanup(PCIDevice *dev);
+
+#endif