From 3556c0fd62f03094bbb4d724f74bbabb52500bce Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 30 Apr 2025 13:21:00 +0200 Subject: [PATCH] xfree86: sbus: drop SBUS_DEVICE_MGX There doesn't seem to be any driver for these cards anymore, so no need for trying to probe them anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86sbusBus.c | 5 ----- hw/xfree86/common/xf86sbusBus.h | 1 - hw/xfree86/os-support/bus/Sbus.c | 1 - 3 files changed, 7 deletions(-) diff --git a/hw/xfree86/common/xf86sbusBus.c b/hw/xfree86/common/xf86sbusBus.c index 3f0ddd3d3..3a279cc21 100644 --- a/hw/xfree86/common/xf86sbusBus.c +++ b/hw/xfree86/common/xf86sbusBus.c @@ -109,11 +109,6 @@ xf86SbusProbe(void) int len, chiprev, vmsize; switch (psdp->devId) { - case SBUS_DEVICE_MGX: - prop = sparcPromGetProperty(&psdp->node, "fb_size", &len); - if (prop && len == 4 && *(int *) prop == 0x400000) - psdp->descr = "Quantum 3D MGXplus with 4M VRAM"; - break; case SBUS_DEVICE_CG6: chiprev = 0; vmsize = 0; diff --git a/hw/xfree86/common/xf86sbusBus.h b/hw/xfree86/common/xf86sbusBus.h index eaf449a25..31bbc6e87 100644 --- a/hw/xfree86/common/xf86sbusBus.h +++ b/hw/xfree86/common/xf86sbusBus.h @@ -32,7 +32,6 @@ #define SBUS_DEVICE_LEO 0x0009 #define SBUS_DEVICE_TCX 0x000a #define SBUS_DEVICE_FFB 0x000b -#define SBUS_DEVICE_MGX 0x000d typedef struct sbus_prom_node { int node; diff --git a/hw/xfree86/os-support/bus/Sbus.c b/hw/xfree86/os-support/bus/Sbus.c index fece1b92d..14e2c105d 100644 --- a/hw/xfree86/os-support/bus/Sbus.c +++ b/hw/xfree86/os-support/bus/Sbus.c @@ -59,7 +59,6 @@ struct sbus_devtable sbusDeviceTable[] = { "Sun Color3 (cgthree)"}, {SBUS_DEVICE_CG6, FBTYPE_SUNFAST_COLOR, "cgsix", "suncg6", "Sun GX"}, {SBUS_DEVICE_CG14, FBTYPE_MDICOLOR, "cgfourteen", "suncg14", "Sun SX"}, - {SBUS_DEVICE_MGX, -1, "mgx", NULL, "Quantum 3D MGXplus"}, {SBUS_DEVICE_LEO, FBTYPE_SUNLEO, "leo", "sunleo", "Sun ZX or Turbo ZX"}, {SBUS_DEVICE_TCX, FBTYPE_TCXCOLOR, "tcx", "suntcx", "Sun TCX"}, {SBUS_DEVICE_FFB, FBTYPE_CREATOR, "ffb", "sunffb", "Sun FFB"},