[Qemu-devel] [PATCHv2 0/1] net: Add SunGEM device emulation as found on Apple UniNorth

Mark Cave-Ayland posted 1 patch 6 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1504721995-22267-1-git-send-email-mark.cave-ayland@ilande.co.uk
Test checkpatch passed
Test docker passed
Test s390x passed
default-configs/ppc-softmmu.mak |    1 +
hw/net/Makefile.objs            |    1 +
hw/net/sungem.c                 | 1447 +++++++++++++++++++++++++++++++++++++++
hw/net/trace-events             |   44 ++
hw/pci/pci.c                    |    2 +
include/hw/pci/pci_ids.h        |    1 +
6 files changed, 1496 insertions(+)
create mode 100644 hw/net/sungem.c
[Qemu-devel] [PATCHv2 0/1] net: Add SunGEM device emulation as found on Apple UniNorth
Posted by Mark Cave-Ayland 6 years, 6 months ago
This is a reworking of Ben's original implementation of the SunGEM device
from last year: https://lists.gnu.org/archive/html/qemu-devel/2016-08/msg02571.html.

The reason for implenting this device is that it allows out-of-the-box
networking for most MacOS 9 and MacOS X OSs running under qemu-system-ppc without
having to obtain any external vendor drivers.

The main changes I've made to Ben's original patch are listed below:
    - Remove sungem.h file, moving constants into sungem.c as required
    - Switch to using tracepoints for debugging
    - Split register blocks into separate memory regions
    - Use arrays in SunGEMState to hold register values
    - Add state-saving support

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

v2
- Fix tracepoints for trace backends outside of QEMU
- Introduce PCI_BASE_ADDRESS_SPACE_MEMORY instead of using the value 0 directly


Benjamin Herrenschmidt (1):
  net: Add SunGEM device emulation as found on Apple UniNorth

 default-configs/ppc-softmmu.mak |    1 +
 hw/net/Makefile.objs            |    1 +
 hw/net/sungem.c                 | 1447 +++++++++++++++++++++++++++++++++++++++
 hw/net/trace-events             |   44 ++
 hw/pci/pci.c                    |    2 +
 include/hw/pci/pci_ids.h        |    1 +
 6 files changed, 1496 insertions(+)
 create mode 100644 hw/net/sungem.c

-- 
1.7.10.4