From f3d54fc4948b5525cc15e2a082f0cec8610ec5b4 Mon Sep 17 00:00:00 2001 From: aliguori Date: Tue, 25 Nov 2008 21:50:24 +0000 Subject: Abstract out geometry detection code from IDE for reuse Virtio will want to use the geometry detection code. It doesn't belong in ide.c anyway. Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5797 c046a42c-6fe2-441c-8c8c-71466251a162 --- block.h | 1 + 1 file changed, 1 insertion(+) (limited to 'block.h') diff --git a/block.h b/block.h index 12053d9..99d3a1e 100644 --- a/block.h +++ b/block.h @@ -78,6 +78,7 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset, int bdrv_truncate(BlockDriverState *bs, int64_t offset); int64_t bdrv_getlength(BlockDriverState *bs); void bdrv_get_geometry(BlockDriverState *bs, uint64_t *nb_sectors_ptr); +void bdrv_guess_geometry(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs); int bdrv_commit(BlockDriverState *bs); /* async block I/O */ typedef struct BlockDriverAIOCB BlockDriverAIOCB; -- cgit v1.1