From 183a0aab8e55207b7284ebeb00a7936a9893c0de Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Wed, 11 Oct 2023 03:24:20 +0200 Subject: small cleanups --- src/parisc/c3700.h | 2 +- src/parisc/parisc.c | 7 ++++--- 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; -- cgit v1.1