Skip to content

Commit

Permalink
hw/ppc/mac.h: Rename to include/hw/nvram/mac_nvram.h
Browse files Browse the repository at this point in the history
All that is left in mac.h now belongs to the nvram emulation so rename
it accordingly and only include it where it is really used.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <b82449369f718c0e207fe8c332fab550fa0230c0.1666957578.git.balaton@eik.bme.hu>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  • Loading branch information
zbalaton authored and mcayland committed Oct 31, 2022
1 parent 3d0031c commit 443f07b
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 18 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Expand Up @@ -1327,6 +1327,7 @@ F: hw/nvram/mac_nvram.c
F: hw/input/adb*
F: include/hw/misc/macio/
F: include/hw/misc/mos6522.h
F: include/hw/nvram/mac_nvram.h
F: include/hw/ppc/mac_dbdma.h
F: include/hw/pci-host/uninorth.h
F: include/hw/input/adb*
Expand Down
1 change: 0 additions & 1 deletion hw/ide/macio.c
Expand Up @@ -24,7 +24,6 @@
*/

#include "qemu/osdep.h"
#include "hw/ppc/mac.h"
#include "hw/ppc/mac_dbdma.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/heathrow_pic.c
Expand Up @@ -24,7 +24,6 @@
*/

#include "qemu/osdep.h"
#include "hw/ppc/mac.h"
#include "migration/vmstate.h"
#include "qemu/module.h"
#include "hw/intc/heathrow_pic.h"
Expand Down
1 change: 0 additions & 1 deletion hw/intc/openpic.c
Expand Up @@ -32,7 +32,6 @@

#include "qemu/osdep.h"
#include "hw/irq.h"
#include "hw/ppc/mac.h"
#include "hw/pci/pci.h"
#include "hw/ppc/openpic.h"
#include "hw/ppc/ppc_e500.h"
Expand Down
1 change: 0 additions & 1 deletion hw/misc/macio/cuda.c
Expand Up @@ -25,7 +25,6 @@

#include "qemu/osdep.h"
#include "hw/irq.h"
#include "hw/ppc/mac.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "hw/input/adb.h"
Expand Down
1 change: 0 additions & 1 deletion hw/misc/macio/gpio.c
Expand Up @@ -24,7 +24,6 @@
*/

#include "qemu/osdep.h"
#include "hw/ppc/mac.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "hw/misc/macio/macio.h"
Expand Down
1 change: 0 additions & 1 deletion hw/misc/macio/macio.c
Expand Up @@ -26,7 +26,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/module.h"
#include "hw/ppc/mac.h"
#include "hw/misc/macio/cuda.h"
#include "hw/pci/pci.h"
#include "hw/ppc/mac_dbdma.h"
Expand Down
1 change: 0 additions & 1 deletion hw/misc/macio/pmu.c
Expand Up @@ -29,7 +29,6 @@
*/

#include "qemu/osdep.h"
#include "hw/ppc/mac.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "hw/input/adb.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/nvram/mac_nvram.c
Expand Up @@ -25,7 +25,7 @@

#include "qemu/osdep.h"
#include "hw/nvram/chrp_nvram.h"
#include "hw/ppc/mac.h"
#include "hw/nvram/mac_nvram.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "qemu/cutils.h"
Expand Down
1 change: 0 additions & 1 deletion hw/pci-host/grackle.c
Expand Up @@ -24,7 +24,6 @@
*/

#include "qemu/osdep.h"
#include "hw/ppc/mac.h"
#include "hw/qdev-properties.h"
#include "hw/pci/pci.h"
#include "hw/irq.h"
Expand Down
1 change: 0 additions & 1 deletion hw/pci-host/uninorth.c
Expand Up @@ -24,7 +24,6 @@

#include "qemu/osdep.h"
#include "hw/irq.h"
#include "hw/ppc/mac.h"
#include "hw/qdev-properties.h"
#include "qemu/module.h"
#include "hw/pci/pci.h"
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/mac_newworld.c
Expand Up @@ -52,7 +52,7 @@
#include "qapi/error.h"
#include "hw/ppc/ppc.h"
#include "hw/qdev-properties.h"
#include "hw/ppc/mac.h"
#include "hw/nvram/mac_nvram.h"
#include "hw/boards.h"
#include "hw/pci-host/uninorth.h"
#include "hw/input/adb.h"
Expand Down
1 change: 0 additions & 1 deletion hw/ppc/mac_oldworld.c
Expand Up @@ -30,7 +30,6 @@
#include "qapi/error.h"
#include "hw/ppc/ppc.h"
#include "hw/qdev-properties.h"
#include "mac.h"
#include "hw/boards.h"
#include "hw/input/adb.h"
#include "sysemu/sysemu.h"
Expand Down
2 changes: 1 addition & 1 deletion include/hw/misc/macio/macio.h
Expand Up @@ -33,7 +33,7 @@
#include "hw/misc/macio/cuda.h"
#include "hw/misc/macio/gpio.h"
#include "hw/misc/macio/pmu.h"
#include "hw/ppc/mac.h"
#include "hw/nvram/mac_nvram.h"
#include "hw/ppc/mac_dbdma.h"
#include "hw/ppc/openpic.h"
#include "qom/object.h"
Expand Down
11 changes: 6 additions & 5 deletions hw/ppc/mac.h → include/hw/nvram/mac_nvram.h
@@ -1,5 +1,5 @@
/*
* QEMU PowerMac emulation shared definitions and prototypes
* PowerMac NVRAM emulation
*
* Copyright (c) 2004-2007 Fabrice Bellard
* Copyright (c) 2007 Jocelyn Mayer
Expand All @@ -23,8 +23,8 @@
* THE SOFTWARE.
*/

#ifndef PPC_MAC_H
#define PPC_MAC_H
#ifndef MAC_NVRAM_H
#define MAC_NVRAM_H

#include "exec/memory.h"
#include "hw/sysbus.h"
Expand All @@ -47,5 +47,6 @@ struct MacIONVRAMState {
uint8_t *data;
};

void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len);
#endif /* PPC_MAC_H */
void pmac_format_nvram_partition(MacIONVRAMState *nvr, int len);

#endif /* MAC_NVRAM_H */

0 comments on commit 443f07b

Please sign in to comment.