Skip to contentSkip to conversation

hw/sd: move sdhci.h to include/hw

PATCH In review liguang 2 participants 5 messages Dec 25, 2013 – Dec 26, 2013

lore
Share & tools
lore

liguang

author
#0 lore raw

PATCH 1/1 hw/sd: move sdhci.h to include/hw

---
 hw/sd/sdhci.c      |    2 +-
 hw/sd/sdhci.h      |  312 ----------------------------------------------------
 include/hw/sdhci.h |  312 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 313 insertions(+), 313 deletions(-)
 delete mode 100644 hw/sd/sdhci.h
 create mode 100644 include/hw/sdhci.h
hw/sd/sdhci.c +1 -1
index 0906a1d..533aef3 100644
@@ -29,7 +29,7 @@
 #include "block/block_int.h"
 #include "qemu/bitops.h"
 
-#include "sdhci.h"
+#include "hw/sdhci.h"
 
 /* host controller debug messages */
 #ifndef SDHC_DEBUG
hw/sd/sdhci.h deleted +0 -312

312 lines not on this page · raw message

include/hw/sdhci.h new file +312 -0

312 lines not on this page · raw message

Signature · 1 line
1.7.2.5
#1 lore raw

On 25 December 2013 07:21, liguang <[email protected]> wrote:

This is where your patch should have had an explanation for why you're making this change. What is the user outside of hw/sd/ that needs this header that means we should move it into include/ ?

Quoted 1 line

thanks
-- PMM

author
#2 lore raw
Quoted 8 lines · Peter Maydell

On 25 December 2013 07:21, liguang<[email protected]> wrote:

This is where your patch should have had an explanation for why you're making this change. What is the user outside of hw/sd/ that needs this header that means we should move it into include/ ?

I don't mean someone will include it outside of hw/sd, just in the sense of "header files be better in a directory called include",

A10's SDHC(really an odd controller, without public datasheet) emulation will use some of definitions in this file, and I think many other standard SDHC will also be happy to include this file.

#3 lore raw
Quoted 9 lines · Li Guang
Quoted 5 lines · Peter Maydell

On 25 December 2013 07:21, liguang<[email protected]> wrote:
This is where your patch should have had an explanation for why you're making this change. What is the user outside of hw/sd/ that needs this header that means we should move it into include/ ?

I don't mean someone will include it outside of hw/sd, just in the sense of "header files be better in a directory called include",

QEMU's policy is that header files used only by other C files within that directory can live in that directory; include is for headers which define functions to be used between modules.

Quoted 3 lines

A10's SDHC(really an odd controller, without public datasheet) emulation will use some of definitions in this file, and I think many other standard SDHC will also be happy to include this file.

I think all of these will live inside hw/sd so there's no need to move the header.

thanks
-- PMM

author
#4 lore raw
Quoted 19 lines · Peter Maydell
Quoted 9 lines · Li Guang
Quoted 6 lines · Peter Maydell

On 25 December 2013 07:21, liguang<[email protected]> wrote:
This is where your patch should have had an explanation for why you're making this change. What is the user outside of hw/sd/ that needs this header that means we should move it into include/ ?

Quoted 3 lines

I don't mean someone will include it outside of hw/sd, just in the sense of "header files be better in a directory called include",

QEMU's policy is that header files used only by other C files within that directory can live in that directory; include is for headers which define functions to be used between modules.

Quoted 8 lines
Quoted 4 lines

A10's SDHC(really an odd controller, without public datasheet) emulation will use some of definitions in this file, and I think many other standard SDHC will also be happy to include this file.

I think all of these will live inside hw/sd so there's no need to move the header.

OK, thanks!