On 11/2/25 18:40, Guenter Roeck wrote:
On Sat, Nov 01, 2025 at 06:27:25PM +0530, Soumyajyotii Ssarkar wrote:
From: RemZapCypher <[email protected]>

Enable the i82596 network chip which is included in the LASI
multi I/O chip. Since LASI has different start addresses on
the various machines, always initialize the LASI components
by their offsets.

As suggested by Mark Cave-Ayland <[email protected]>
Changes since v1:
Added proper Qemu device initialization for LASI

...
diff --git a/hw/hppa/hppa_hardware.h b/hw/hppa/hppa_hardware.h
index d422af0429..a8a496c0e1 100644
--- a/hw/hppa/hppa_hardware.h
+++ b/hw/hppa/hppa_hardware.h
@@ -21,14 +21,6 @@
  #define DINO_SCSI_HPA   0xfff8c000
  #define LASI_HPA_715    0xf0100000
  #define LASI_HPA        0xffd00000
-#define LASI_UART_HPA   0xffd05000
-#define LASI_SCSI_HPA   0xffd06000
-#define LASI_LAN_HPA    0xffd07000
-#define LASI_RTC_HPA    0xffd09000
-#define LASI_LPT_HPA    0xffd02000
-#define LASI_AUDIO_HPA  0xffd04000
-#define LASI_PS2KBD_HPA 0xffd08000
-#define LASI_PS2MOU_HPA 0xffd08100
  #define LASI_GFX_HPA    0xf8000000
  #define ARTIST_FB_ADDR  0xf9000000
  #define CPU_HPA         0xfffb0000
@@ -44,6 +36,18 @@
#define SCSI_HPA 0xf1040000 /* emulated SCSI, needs to be in f region */ +#define HPA_DISABLED_DEVICE 1 /* add to HPA to disable */
+
+/* LASI offsets */
+#define LASI_LPT        0x02000
+#define LASI_AUDIO      0x04000
+#define LASI_UART       0x05000
+#define LASI_SCSI       0x06000
+#define LASI_LAN        0x07000
+#define LASI_PS2        0x08000
+#define LASI_RTC        0x09000
+#define LASI_FDC        0x0A000

One thing I noticed: Those defines are now duplicated.
Example:

hw/hppa/hppa_hardware.h:#define LASI_LAN        0x07000
include/hw/misc/lasi.h:#define LASI_LAN        0x07000

Yes. The file hppa_hardware is shared with SeaBIOS, that's why it's
currently duplicately defined. Will try to clean up with later patches,
but for now it's the best way.

Helge

Reply via email to