mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hd-geometry: Move disk geometry guessing back from block.c
Commit f3d54fc4
factored it out of hw/ide.c for reuse. Sensible,
except it was put into block.c. Device-specific functionality should
be kept in device code, not the block layer. Move it to
hw/hd-geometry.c, and make stylistic changes required to keep
checkpatch.pl happy.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0e8a8c8f6d
commit
9db1c0f7a9
8 changed files with 191 additions and 127 deletions
21
hw/block-common.h
Normal file
21
hw/block-common.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* 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);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue