aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-10-11 03:24:20 +0200
committerHelge Deller <deller@gmx.de>2023-10-11 03:24:20 +0200
commit183a0aab8e55207b7284ebeb00a7936a9893c0de (patch)
treea639e25e399e30e41cd275560274cd52fcd56b7e
parent1bda42083e03c9c5a8d84ba0ca1ddd5571819c5a (diff)
downloadseabios-hppa-devel2.zip
seabios-hppa-devel2.tar.gz
seabios-hppa-devel2.tar.bz2
small cleanupsdevel2
-rw-r--r--src/parisc/c3700.h2
-rw-r--r--src/parisc/parisc.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/parisc/c3700.h b/src/parisc/c3700.h
index 3d8e334..b32312b 100644
--- a/src/parisc/c3700.h
+++ b/src/parisc/c3700.h
@@ -175,7 +175,7 @@ static struct pdc_system_map_mod_info mod_info_hpa_fffa0000 = {
.add_addrs = 0x0,
};
static struct pdc_module_path mod_path_hpa_fffa0000 = {
- .path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .mod = 0x20 },
+ .path = { .flags = 0x0, .bc = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }, .mod = 0x10 },
.layers = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
};
static struct pdc_iodc iodc_data_hpa_fffa0000 = {
diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c
index 4c10b9c..33dcb3d 100644
--- a/src/parisc/parisc.c
+++ b/src/parisc/parisc.c
@@ -617,7 +617,7 @@ static hppa_device_t *find_hpa_device(unsigned long hpa)
static void print_mod_path(struct pdc_module_path *p)
{
- dprintf(1, "PATH %d:%d:%d:%d:%d:%d.%d.%d ", p->path.bc[0], p->path.bc[1],
+ dprintf(1, "PATH %d:%d:%d:%d:%d:%d.%d$%d ", p->path.bc[0], p->path.bc[1],
p->path.bc[2],p->path.bc[3],p->path.bc[4],p->path.bc[5],
p->path.mod, p->layers[0]);
}
@@ -1785,7 +1785,7 @@ static int pdc_system_map(unsigned int *arg)
case PDC_TRANSLATE_PATH:
mod_path = (struct pdc_module_path *)ARG3;
hppa_device_t *dev = find_hppa_device_by_path(mod_path, &hpa_index, 1);
- if (0) {
+ if (1) {
dprintf(1, "PDC_TRANSLATE_PATH dev=%p hpa=%lx ", dev, dev ? dev->hpa:0UL);
print_mod_path(mod_path);
if (dev && dev->pci)
@@ -1834,7 +1834,8 @@ static int pdc_mem_map(unsigned int *arg)
switch (option) {
case PDC_MEM_MAP_HPA:
- // dprintf(0, "\nSeaBIOS: PDC_MEM_MAP_HPA bus = %d, mod = %d\n", dp->bc[4], dp->mod);
+// NEEDS FIXING !!
+ dprintf(0, "\nSeaBIOS: PDC_MEM_MAP_HPA bus = %d, mod = %d\n", dp->bc[4], dp->mod);
dev = find_hppa_device_by_path((struct pdc_module_path *) dp, &index, 0);
if (!dev)
return PDC_NE_MOD;