aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ide
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-09 23:33:35 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:02 +0100
commit066282672ba3d26aa7603e43559c658bf19b1043 (patch)
tree348c9fba07b8c4fbe61e1af06968470ccc289feb /include/hw/ide
parent2c50207f0d74132f033d967db6436c89e63ade02 (diff)
downloadqemu-066282672ba3d26aa7603e43559c658bf19b1043.zip
qemu-066282672ba3d26aa7603e43559c658bf19b1043.tar.gz
qemu-066282672ba3d26aa7603e43559c658bf19b1043.tar.bz2
hw/ide: Declare ide_get_[geometry/bios_chs_trans] in 'hw/ide/internal.h'
ide_get_geometry() and ide_get_bios_chs_trans() are only used by the TYPE_PC_MACHINE. "hw/ide.h" is a mixed bag of lost IDE declarations. In order to remove this (almost) pointless header soon, move these declarations to "hw/ide/internal.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230220091358.17038-18-philmd@linaro.org>
Diffstat (limited to 'include/hw/ide')
-rw-r--r--include/hw/ide/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h
index c2b7941..d9f1f77 100644
--- a/include/hw/ide/internal.h
+++ b/include/hw/ide/internal.h
@@ -647,6 +647,10 @@ void ide_bus_init(IDEBus *idebus, size_t idebus_size, DeviceState *dev,
int bus_id, int max_units);
IDEDevice *ide_bus_create_drive(IDEBus *bus, int unit, DriveInfo *drive);
+int ide_get_geometry(BusState *bus, int unit,
+ int16_t *cyls, int8_t *heads, int8_t *secs);
+int ide_get_bios_chs_trans(BusState *bus, int unit);
+
int ide_handle_rw_error(IDEState *s, int error, int op);
#endif /* HW_IDE_INTERNAL_H */