aboutsummaryrefslogtreecommitdiff
path: root/src/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2025-02-04 21:25:17 +0100
committerHelge Deller <deller@gmx.de>2025-02-04 21:25:17 +0100
commit3391c580960febcb9fa8f686f9666adaa462c349 (patch)
tree78c6136d29bd6f065547a3562307aef2bb7e41b7 /src/parisc
parent1c516b481339f511d83a4afba9a48d1ac904e93e (diff)
downloadseabios-hppa-master.zip
seabios-hppa-master.tar.gz
seabios-hppa-master.tar.bz2
parisc: Add LMMIO range for internal artist graphic cardHEADmaster-nextmaster
Register a LMMIO range for the internal graphic card. That allow to boot with STI graphic card (artist) when booting on a 64-bit machine. Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'src/parisc')
-rw-r--r--src/parisc/hppa.h2
-rw-r--r--src/parisc/stirom.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/parisc/hppa.h b/src/parisc/hppa.h
index e14f67e..ab68f63 100644
--- a/src/parisc/hppa.h
+++ b/src/parisc/hppa.h
@@ -440,6 +440,8 @@ void cpuid(u32 index, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
// pci.c
unsigned long elroy_offset(u16 bdf);
void *elroy_port(unsigned long port, unsigned long offs);
+// pciinit.c
+unsigned long add_lmmio_directed_range(unsigned long size, int rope);
#endif // !__ASSEMBLY__
#endif
diff --git a/src/parisc/stirom.c b/src/parisc/stirom.c
index 99c50b9..99461d2 100644
--- a/src/parisc/stirom.c
+++ b/src/parisc/stirom.c
@@ -3590,6 +3590,9 @@ void sti_rom_init(void)
if (sti_proc_rom.font_start)
return;
+ /* allocate first LMMIO range for STI when running on Astro */
+ add_lmmio_directed_range(0x2000000, 0);
+
sti_rom_size = (_sti_rom_end - _sti_rom_start) / 4096;
if (sti_region_list[0].region_desc.length != sti_rom_size) {
/* The STI ROM size is wrong. Try to fix it.