diff options
author | Sam Eiderman | 2019-10-16 18:41:40 +0200 |
---|---|---|
committer | John Snow | 2019-10-31 16:47:17 +0100 |
commit | f7209ea1be116e06b66408d9949f5281a6c7137c (patch) | |
tree | 57253a86c4027bb940c4146c72c1d8b637e6111e /include/sysemu | |
parent | block: Support providing LCHS from user (diff) | |
download | qemu-f7209ea1be116e06b66408d9949f5281a6c7137c.tar.gz qemu-f7209ea1be116e06b66408d9949f5281a6c7137c.tar.xz qemu-f7209ea1be116e06b66408d9949f5281a6c7137c.zip |
bootdevice: Add interface to gather LCHS
Add an interface to provide direct logical CHS values for boot devices.
We will use this interface in the next commits.
Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Sam Eiderman <sameid@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/sysemu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 44f18eb739..5bc5c79cbc 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -103,6 +103,9 @@ void device_add_bootindex_property(Object *obj, int32_t *bootindex, DeviceState *dev, Error **errp); void restore_boot_order(void *opaque); void validate_bootdevices(const char *devices, Error **errp); +void add_boot_device_lchs(DeviceState *dev, const char *suffix, + uint32_t lcyls, uint32_t lheads, uint32_t lsecs); +void del_boot_device_lchs(DeviceState *dev, const char *suffix); /* handler to set the boot_device order for a specific type of MachineClass */ typedef void QEMUBootSetHandler(void *opaque, const char *boot_order, |