diff options
author | Helge Deller <deller@gmx.de> | 2023-10-14 06:14:08 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-14 06:14:08 +0200 |
commit | d057b77e4ce258315ad61af2b256e757c293d2b8 (patch) | |
tree | f4de26d3efa7629f5a6074837a6058226d88bdc8 /src/parisc/pdc.h | |
parent | df96dc39e04af0ebd61a207b46bf7ca082e7b56d (diff) | |
download | seabios-hppa-devel3.zip seabios-hppa-devel3.tar.gz seabios-hppa-devel3.tar.bz2 |
convert to new pdc.hdevel3
Diffstat (limited to 'src/parisc/pdc.h')
-rw-r--r-- | src/parisc/pdc.h | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/src/parisc/pdc.h b/src/parisc/pdc.h index 9c0b8f7..b152534 100644 --- a/src/parisc/pdc.h +++ b/src/parisc/pdc.h @@ -366,20 +366,25 @@ #if !defined(__ASSEMBLY__) -/* flags of the device_path */ +/* flags for hardware_path */ #define PF_AUTOBOOT 0x80 #define PF_AUTOSEARCH 0x40 #define PF_TIMER 0x0F -struct device_path { /* page 1-69 */ - unsigned char flags; /* flags see above! */ - unsigned char bc[6]; /* bus converter routing info */ - unsigned char mod; - unsigned int layers[6];/* device-specific layer-info */ -} __attribute__((aligned(8))) ; +struct hardware_path { + unsigned char flags; /* see bit definitions below */ + signed char bc[6]; /* Bus Converter routing info to a specific */ + /* I/O adaptor (< 0 means none, > 63 resvd) */ + signed char mod; /* fixed field of specified module */ +}; + +struct pdc_module_path { /* page 1-69 */ + struct hardware_path path; + unsigned int layers[6]; /* device-specific info (ctlr #, unit # ...) */ +} __attribute__((aligned(8))); struct pz_device { - struct device_path dp; /* see above */ + struct pdc_module_path dp; /* see above */ /* struct iomod *hpa; */ unsigned int hpa; /* HPA base address */ /* char *spa; */ @@ -620,21 +625,6 @@ struct pdc_initiator { /* PDC_INITIATOR */ int mode; }; -struct hardware_path { - char flags; /* see bit definitions below */ - char bc[6]; /* Bus Converter routing info to a specific */ - /* I/O adaptor (< 0 means none, > 63 resvd) */ - char mod; /* fixed field of specified module */ -}; - -/* - * Device path specifications used by PDC. - */ -struct pdc_module_path { - struct hardware_path path; - unsigned int layers[6]; /* device-specific info (ctlr #, unit # ...) */ -}; - /* Only used on some pre-PA2.0 boxes */ struct pdc_memory_map { /* PDC_MEMORY_MAP */ unsigned long hpa; /* mod's register set address */ |