aboutsummaryrefslogtreecommitdiff
path: root/hw/block-common.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2012-07-10 11:12:53 +0200
committerKevin Wolf <kwolf@redhat.com>2012-07-17 16:48:32 +0200
commit2adc99b277ab05877ef847bddde45346378f561a (patch)
treeda0313df8aa57f7ec78584464783689f7a6dae71 /hw/block-common.h
parent4e4e6e319b5508289da0f2966f63c841c832b847 (diff)
hd-geometry: Compute BIOS CHS translation in one place
Currently, it is split between hd_geometry_guess() and pc_cmos_init_late(). Confusing. info qtree shows the result of the former. Also confusing. Fold the part done in pc_cmos_init_late() into hd_geometry_guess(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block-common.h')
-rw-r--r--hw/block-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block-common.h b/hw/block-common.h
index ec7810d7d4..31e12baced 100644
--- a/hw/block-common.h
+++ b/hw/block-common.h
@@ -24,5 +24,6 @@
void hd_geometry_guess(BlockDriverState *bs,
uint32_t *pcyls, uint32_t *pheads, uint32_t *psecs,
int *ptrans);
+int hd_bios_chs_auto_trans(uint32_t cyls, uint32_t heads, uint32_t secs);
#endif