Skip to contentSkip to conversation

hw/arm: Move raspberrypi-fw-defs.h to the include/hw/arm/ folder

PATCH Applied Thomas Huth 4 participants 5 messages Oct 12, 2023 – Oct 16, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/arm: Move raspberrypi-fw-defs.h to the include/hw/arm/ folder

The file is obviously related to the raspberrypi machine, so it should reside in hw/arm/ instead of hw/misc/. And while we're at it, also adjust the wildcard in MAINTAINERS so that it covers this file, too.

---
 MAINTAINERS                                    | 2 +-
 include/hw/{misc => arm}/raspberrypi-fw-defs.h | 0
 hw/misc/bcm2835_property.c                     | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename include/hw/{misc => arm}/raspberrypi-fw-defs.h (100%)
MAINTAINERS +1 -1
index 71af9633c6..b55aaa2fe2 100644
@@ -897,7 +897,7 @@ S: Odd Fixes
 F: hw/arm/raspi.c
 F: hw/arm/raspi_platform.h
 F: hw/*/bcm283*
-F: include/hw/arm/raspi*
+F: include/hw/arm/rasp*
 F: include/hw/*/bcm283*
 F: docs/system/arm/raspi.rst
 
include/hw/arm/raspberrypi-fw-defs.h renamed from include/hw/misc/raspberrypi-fw-defs.h +0 -0
similarity index 100%
rename from include/hw/misc/raspberrypi-fw-defs.h
rename to include/hw/arm/raspberrypi-fw-defs.h
hw/misc/bcm2835_property.c +1 -1
index 4ed9faa54a..ff55a4e2cd 100644
@@ -12,7 +12,7 @@
 #include "migration/vmstate.h"
 #include "hw/irq.h"
 #include "hw/misc/bcm2835_mbox_defs.h"
-#include "hw/misc/raspberrypi-fw-defs.h"
+#include "hw/arm/raspberrypi-fw-defs.h"
 #include "sysemu/dma.h"
 #include "qemu/log.h"
 #include "qemu/module.h"
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Huth

The file is obviously related to the raspberrypi machine, so it should reside in hw/arm/ instead of hw/misc/. And while we're at it, also adjust the wildcard in MAINTAINERS so that it covers this file, too.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
Acked-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 2 lines · Thomas Huth

The file is obviously related to the raspberrypi machine, so it should reside in hw/arm/ instead of hw/misc/.

Not quite. These are the VideoCore DSP definitions. Firmware running on SoC including a VC can use this syscall-like interface.

FWIW there are a pair of QEMU VC implementations on GitHub.

Anyhow, preferably rewording the description,

Quoted 11 lines

And while we're
at it, also adjust the wildcard in MAINTAINERS so that it covers this file, too.

---
  MAINTAINERS                                    | 2 +-
  include/hw/{misc => arm}/raspberrypi-fw-defs.h | 0
  hw/misc/bcm2835_property.c                     | 2 +-
  3 files changed, 2 insertions(+), 2 deletions(-)

rename include/hw/{misc => arm}/raspberrypi-fw-defs.h (100%)

#3 lore raw
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Thomas Huth

The file is obviously related to the raspberrypi machine, so it should reside in hw/arm/ instead of hw/misc/.

Not quite. These are the VideoCore DSP definitions. Firmware running on SoC including a VC can use this syscall-like interface.

FWIW there are a pair of QEMU VC implementations on GitHub.

Anyhow, preferably rewording the description,

So could you suggest a different wording instead? It's still "related to the raspberypi machine", isn't it?

Quoted 1 line

Thanks,
Thomas

#4 lore raw
In reply to Thomas Huth
Quoted 7 lines · Thomas Huth

The file is obviously related to the raspberrypi machine, so it should reside in hw/arm/ instead of hw/misc/. And while we're at it, also adjust the wildcard in MAINTAINERS so that it covers this file, too.

Applied to target-arm.next, thanks.

-- PMM