Skip to contentSkip to conversation

ppc: move ADB stuff from ppc_mac.h to adb.h

PATCH In review Laurent Vivier 2 participants 4 messages Sep 4, 2011 – Sep 7, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc: move ADB stuff from ppc_mac.h to adb.h

Allow to use ADB in non-ppc macintosh

---
 hw/adb.c          |    2 +-
 hw/adb.h          |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/cuda.c         |    1 +
 hw/ppc_mac.h      |   42 ---------------------------------
 hw/ppc_newworld.c |    1 +
 hw/ppc_oldworld.c |    1 +
 6 files changed, 71 insertions(+), 43 deletions(-)
 create mode 100644 hw/adb.h
hw/adb.c +1 -1
index 8dedbf8..aa15f55 100644
@@ -22,7 +22,7 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
-#include "ppc_mac.h"
+#include "adb.h"
 #include "console.h"
 
 /* debug ADB */
hw/adb.h new file +67 -0

67 lines not on this page · raw message

hw/cuda.c +1 -0
index 5c92d81..6f05975 100644
@@ -24,6 +24,7 @@
  */
 #include "hw.h"
 #include "ppc_mac.h"
+#include "adb.h"
 #include "qemu-timer.h"
 #include "sysemu.h"
 
hw/ppc_mac.h +0 -42

46 lines not on this page · raw message

hw/ppc_newworld.c +1 -0
index fbd443d..5fb9359 100644
@@ -49,6 +49,7 @@
 #include "hw.h"
 #include "ppc.h"
 #include "ppc_mac.h"
+#include "adb.h"
 #include "mac_dbdma.h"
 #include "nvram.h"
 #include "pc.h"
hw/ppc_oldworld.c +1 -0
index 235d2ef..3857075 100644
@@ -26,6 +26,7 @@
 #include "hw.h"
 #include "ppc.h"
 #include "ppc_mac.h"
+#include "adb.h"
 #include "mac_dbdma.h"
 #include "nvram.h"
 #include "pc.h"
Signature · 1 line
1.7.1
#1 lore raw
Quoted 1 line · Laurent Vivier

Allow to use ADB in non-ppc macintosh

What exactly do you need this for? Not saying I'm opposed to the change - it looks reasonable to have adb export its own interfaces using its own header - but I'd like to understand where you're heading here. Is this for m68k?

Btw - I applied the patch nevertheless.

Alex

#2 lore raw

Hi,

Le 7 septembre 2011 à 14:05, Alexander Graf <[email protected]> a écrit :

Quoted 8 lines · Laurent Vivier
Quoted 2 lines

Allow to use ADB in non-ppc macintosh

What exactly do you need this for? Not saying I'm opposed to the change - it looks reasonable to have adb export its own interfaces using its own header - but I'd like to understand where you're heading here. Is this for m68k?

Yes, I'm working on a quadra 800 emulation and ADB is attached to VIA. So, it seems reasonable to move it out of ppc.

There will be more changes in the futur, but for the moment I'd like to merge only obvious and generic changes.

Quoted 2 lines

Btw - I applied the patch nevertheless.

Thank you,

Regards,
Laurent

#3 lore raw
Quoted 8 lines · Laurent Vivier

Hi,

Quoted 3 lines · Alexander Graf

On 04.09.2011, at 20:41, Laurent Vivier wrote:

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Allow to use ADB in non-ppc macintosh

What exactly do you need this for? Not saying I'm opposed to the change - it looks reasonable to have adb export its own interfaces using its own header - but I'd like to understand where you're heading here. Is this for m68k?

Yes, I'm working on a quadra 800 emulation and ADB is attached to VIA. So, it seems reasonable to move it out of ppc.

There will be more changes in the futur, but for the moment I'd like to merge only obvious and generic changes.

I see - that makes a lot of sense. Looking forward to seeing m68k revived again! :)

Alex