mirror of
https://github.com/qemu/qemu.git
synced 2025-08-13 18:46:38 +00:00

hd_geometry_guess() picks geometry and translation. Callers can get the geometry directly, via parameters, but for translation they need to go through the block layer. Add a parameter for translation, so it can optionally be gotten just like geometry. In preparation of purging translation from the block layer, which will happen later in this series. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
23 lines
517 B
C
23 lines
517 B
C
/*
|
|
* Common code for block device models
|
|
*
|
|
* Copyright (C) 2012 Red Hat, Inc.
|
|
* Copyright (c) 2003-2008 Fabrice Bellard
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or
|
|
* later. See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HW_BLOCK_COMMON_H
|
|
#define HW_BLOCK_COMMON_H
|
|
|
|
#include "qemu-common.h"
|
|
|
|
/* Hard disk geometry */
|
|
|
|
void hd_geometry_guess(BlockDriverState *bs,
|
|
int *pcyls, int *pheads, int *psecs,
|
|
int *ptrans);
|
|
|
|
#endif
|