aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-04 20:11:34 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-04 20:11:34 +0000
commit0ecdffbb60a2723779a37fa17b717d919d670336 (patch)
tree17aff64cd35df25fee555574ee67af87c5e48ff2 /hw/hw.h
parent4001a81e8e1af1e4bda63baa404a8ebb4919d1f9 (diff)
Allow bootdevice change from the monitor
(Gildas Le Nadan) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4333 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/hw.h')
-rw-r--r--hw/hw.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 3589adee37..2a461026e1 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -92,6 +92,12 @@ typedef void QEMUResetHandler(void *opaque);
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
+/* handler to set the boot_device for a specific type of QEMUMachine */
+/* return 0 if success */
+typedef int QEMUBootSetHandler(const char *boot_device);
+extern QEMUBootSetHandler *qemu_boot_set_handler;
+void qemu_register_boot_set(QEMUBootSetHandler *func);
+
/* These should really be in isa.h, but are here to make pc.h happy. */
typedef void (IOPortWriteFunc)(void *opaque, uint32_t address, uint32_t data);
typedef uint32_t (IOPortReadFunc)(void *opaque, uint32_t address);