hw/sd : move sd.h to include/hw/sd/
RFC v2 1/2 hw/sd : move sd.h to include/hw/sd/
Create new folder in includes for sd headers.
---
hw/sd/milkymist-memcard.c | 2 +-
hw/sd/omap_mmc.c | 2 +-
hw/sd/pl181.c | 2 +-
hw/sd/pxa2xx_mmci.c | 2 +-
hw/sd/sd.c | 2 +-
hw/sd/sdhci.h | 2 +-
hw/sd/ssi-sd.c | 2 +-
include/hw/{ => sd}/sd.h | 0
8 files changed, 7 insertions(+), 7 deletions(-)
rename include/hw/{ => sd}/sd.h (100%)hw/sd/milkymist-memcard.c +1 -1
@@ -28,7 +28,7 @@#include "qemu/error-report.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" enum {ENABLE_CMD_TX = (1 <<0 ),
hw/sd/omap_mmc.c +1 -1
@@ -18,7 +18,7 @@*/ #include "hw/hw.h" #include "hw/arm/omap.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" struct omap_mmc_s {qemu_irq irq;
hw/sd/pl181.c +1 -1
@@ -10,7 +10,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_PL181 1
hw/sd/pxa2xx_mmci.c +1 -1
@@ -12,7 +12,7 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "hw/qdev.h" struct PXA2xxMMCIState {
hw/sd/sd.c +1 -1
@@ -31,7 +31,7 @@#include "hw/hw.h" #include "sysemu/block-backend.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "qemu/bitmap.h" //#define DEBUG_SD 1
hw/sd/sdhci.h +1 -1
@@ -28,7 +28,7 @@#include "qemu-common.h" #include "hw/pci/pci.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" /* R/W SDMA System Address register 0x0 */ #define SDHC_SYSAD 0x00
hw/sd/ssi-sd.c +1 -1
@@ -13,7 +13,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_SSI_SD 1
include/hw/sd/sd.h renamed from include/hw/sd.h +0 -0
Signature · 1 line
1.9.1
RFC v2 2/2 sdhci: Move sdhci.h to include/
Move sdhci.h to include/hw/sd/. Which makes easy creation of device using object_initialize.
---
Changes for V2:
Create new area in includes for sd. And move sdhci.h to same.
---
hw/sd/sdhci.c | 2 +-
{hw => include/hw}/sd/sdhci.h | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename {hw => include/hw}/sd/sdhci.h (100%)hw/sd/sdhci.c +1 -1
@@ -29,7 +29,7 @@#include "qemu/timer.h" #include "qemu/bitops.h" -#include "sdhci.h" +#include "hw/sd/sdhci.h" /* host controller debug messages */ #ifndef SDHC_DEBUG
include/hw/sd/sdhci.h renamed from hw/sd/sdhci.h +0 -0
Signature · 1 line
1.9.1
This was just a resend of V2.
I think this is a good idea to move sd.h and sdhci.h to include/hw/sd/
As these device models like sdhci can be easily instantiated, when we have the type and its object declaration available in header in includes.
Regards,
Sai
Quoted 120 lines
-----Original Message-----
From: Sai Pavan Boddu [mailto:[email protected]]
Sent: Tuesday, September 08, 2015 11:23 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; Alistair Francis; Edgar Iglesias; Sai Pavan Boddu
Subject: [RFC V2 1/2] hw/sd : movesd.htoinclude/hw/sd/Create new folder in includes for sd headers.
Signed-off-by Sai Pavan Boddu <[email protected]>--- hw/sd/milkymist-memcard.c | 2 +- hw/sd/omap_mmc.c | 2 +- hw/sd/pl181.c | 2 +- hw/sd/pxa2xx_mmci.c | 2 +- hw/sd/sd.c | 2 +- hw/sd/sdhci.h | 2 +- hw/sd/ssi-sd.c | 2 +- include/hw/{ => sd}/sd.h | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename include/hw/{ => sd}/sd.h (100%)hw/sd/milkymist-memcard.c +1
-1@@ -28,7 +28,7 @@#include "qemu/error-report.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" enum {ENABLE_CMD_TX = (1 <<0 ),hw/sd/omap_mmc.c +1
-1@@ -18,7 +18,7 @@*/ #include "hw/hw.h" #include "hw/arm/omap.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" struct omap_mmc_s {qemu_irq irq;hw/sd/pl181.c +1
-1@@ -10,7 +10,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_PL181 1 hw/sd/pxa2xx_mmci.c +1
-1@@ -12,7 +12,7 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "hw/qdev.h" struct PXA2xxMMCIState {hw/sd/sd.c +1
-1@@ -31,7 +31,7 @@#include "hw/hw.h" #include "sysemu/block-backend.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "qemu/bitmap.h" //#define DEBUG_SD 1 hw/sd/sdhci.h +1
-1@@ -28,7 +28,7 @@#include "qemu-common.h" #include "hw/pci/pci.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" /* R/W SDMA System Address register 0x0 */ #define SDHC_SYSAD 0x00hw/sd/ssi-sd.c +1
-1@@ -13,7 +13,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_SSI_SD 1 include/hw/sd/sd.h renamed from include/hw/sd.h +0
-1--1.9.1
Ping!
I have an issue in instantiation the device using object_initilize. Which needs the TYPE and the "object created already" to passed. Which is only possible if I have access to header files from different folder.
If in case, this path doesn't promotes to be pushed. Is there a way to create a device without access to header file. Ex. To create a SDHCI device.
Regards,
Sai Pavan
Quoted 137 lines
-----Original Message-----
From: Sai Pavan Boddu
Sent: Tuesday, September 08, 2015 11:33 AM
To: 'Sai Pavan Boddu'; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Alistair Francis; Edgar Iglesias
Subject: RE: [RFC V2 1/2] hw/sd : movesd.htoinclude/hw/sd/This was just a resend of V2.
I think this is a good idea to movesd.handsdhci.htoinclude/hw/sd/As these device models like sdhci can be easily instantiated, when we have the type and its object declaration available in header in includes.
Regards,
SaiQuoted 120 lines
-----Original Message-----
From: Sai Pavan Boddu [mailto:[email protected]]
Sent: Tuesday, September 08, 2015 11:23 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; Alistair Francis; Edgar Iglesias; Sai Pavan Boddu
Subject: [RFC V2 1/2] hw/sd : movesd.htoinclude/hw/sd/Create new folder in includes for sd headers.
Signed-off-by Sai Pavan Boddu <[email protected]>--- hw/sd/milkymist-memcard.c | 2 +- hw/sd/omap_mmc.c | 2 +- hw/sd/pl181.c | 2 +- hw/sd/pxa2xx_mmci.c | 2 +- hw/sd/sd.c | 2 +- hw/sd/sdhci.h | 2 +- hw/sd/ssi-sd.c | 2 +- include/hw/{ => sd}/sd.h | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename include/hw/{ => sd}/sd.h (100%)hw/sd/milkymist-memcard.c +1
-1@@ -28,7 +28,7 @@#include "qemu/error-report.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" enum {ENABLE_CMD_TX = (1 <<0 ),hw/sd/omap_mmc.c +1
-1@@ -18,7 +18,7 @@*/ #include "hw/hw.h" #include "hw/arm/omap.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" struct omap_mmc_s {qemu_irq irq;hw/sd/pl181.c +1
-1@@ -10,7 +10,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_PL181 1 hw/sd/pxa2xx_mmci.c +1
-1@@ -12,7 +12,7 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "hw/qdev.h" struct PXA2xxMMCIState {hw/sd/sd.c +1
-1@@ -31,7 +31,7 @@#include "hw/hw.h" #include "sysemu/block-backend.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "qemu/bitmap.h" //#define DEBUG_SD 1 hw/sd/sdhci.h +1
-1@@ -28,7 +28,7 @@#include "qemu-common.h" #include "hw/pci/pci.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" /* R/W SDMA System Address register 0x0 */ #define SDHC_SYSAD 0x00hw/sd/ssi-sd.c +1
-1@@ -13,7 +13,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_SSI_SD 1 include/hw/sd/sd.h renamed from include/hw/sd.h +0
-1--1.9.1
Quoted 5 lines · Sai Pavan Boddu
Ping!
I have an issue in instantiation the device using
object_initilize. Which needs the TYPE and the "object created already" to passed. Which is only possible if I have access to header files from different folder.
Understand, give it a few days though, I don't think anyone is nacking this, just hasn't been reviewed. People may be working through their review queues.
Quoted 1 line
If in case, this path doesn't promotes to be pushed. Is there a way to create a device without access to header file.
No. Header access is expected.
Regards,
Peter
Quoted 142 lines
Ex. To create a SDHCI device.
Regards,
Sai PavanQuoted 137 lines
-----Original Message-----
From: Sai Pavan Boddu
Sent: Tuesday, September 08, 2015 11:33 AM
To: 'Sai Pavan Boddu'; [email protected]; [email protected]; [email protected]
Cc: [email protected]; Alistair Francis; Edgar Iglesias
Subject: RE: [RFC V2 1/2] hw/sd : movesd.htoinclude/hw/sd/This was just a resend of V2.
I think this is a good idea to movesd.handsdhci.htoinclude/hw/sd/As these device models like sdhci can be easily instantiated, when we have the type and its object declaration available in header in includes.
Regards,
SaiQuoted 120 lines
-----Original Message-----
From: Sai Pavan Boddu [mailto:[email protected]]
Sent: Tuesday, September 08, 2015 11:23 AM
To: [email protected]; [email protected]; [email protected]
Cc: [email protected]; Alistair Francis; Edgar Iglesias; Sai Pavan Boddu
Subject: [RFC V2 1/2] hw/sd : movesd.htoinclude/hw/sd/Create new folder in includes for sd headers.
Signed-off-by Sai Pavan Boddu <[email protected]>--- hw/sd/milkymist-memcard.c | 2 +- hw/sd/omap_mmc.c | 2 +- hw/sd/pl181.c | 2 +- hw/sd/pxa2xx_mmci.c | 2 +- hw/sd/sd.c | 2 +- hw/sd/sdhci.h | 2 +- hw/sd/ssi-sd.c | 2 +- include/hw/{ => sd}/sd.h | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename include/hw/{ => sd}/sd.h (100%)hw/sd/milkymist-memcard.c +1
-1@@ -28,7 +28,7 @@#include "qemu/error-report.h" #include "sysemu/block-backend.h" #include "sysemu/blockdev.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" enum {ENABLE_CMD_TX = (1 <<0 ),hw/sd/omap_mmc.c +1
-1@@ -18,7 +18,7 @@*/ #include "hw/hw.h" #include "hw/arm/omap.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" struct omap_mmc_s {qemu_irq irq;hw/sd/pl181.c +1
-1@@ -10,7 +10,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_PL181 1 hw/sd/pxa2xx_mmci.c +1
-1@@ -12,7 +12,7 @@#include "hw/hw.h" #include "hw/arm/pxa.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "hw/qdev.h" struct PXA2xxMMCIState {hw/sd/sd.c +1
-1@@ -31,7 +31,7 @@#include "hw/hw.h" #include "sysemu/block-backend.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" #include "qemu/bitmap.h" //#define DEBUG_SD 1 hw/sd/sdhci.h +1
-1@@ -28,7 +28,7 @@#include "qemu-common.h" #include "hw/pci/pci.h" #include "hw/sysbus.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" /* R/W SDMA System Address register 0x0 */ #define SDHC_SYSAD 0x00hw/sd/ssi-sd.c +1
-1@@ -13,7 +13,7 @@#include "sysemu/block-backend.h" #include "sysemu/blockdev.h" #include "hw/ssi.h" -#include "hw/sd.h" +#include "hw/sd/sd.h" //#define DEBUG_SSI_SD 1 include/hw/sd/sd.h renamed from include/hw/sd.h +0
-1--1.9.1