STI Rom address location
Xavier,
Quoted 7 lines
Hi, thanks for your help, but there are still some pbs...
Quoted 4 lines
IF the
add_addrsfield is non-zero, THEN the second entry (i.e. the result from a call toPDC_SYSTEM_MAPwith the next index value) will contain the address of the sti rom in themod_addrfield.
OK, I blew it. I don't memorize this stuff. I looked at the HP-UX code to get this information, but I didn't go deep enough and misread the code. There is a different call to PDC_SYSTEM_MAP for getting additional ranges.
Rather than trying to write up the explanation for how the PDC_FIND_ADDRESS argument to PDC_SYSTEM_MAP works, I just decided to add some support for the call and some debug code to the kernel to show how it is used (the debug code is inside an #if 0 in inventory.c). Basically, the add_addrs field tells you how many additional address ranges there are, and you need to call PDC_SYSTEM_MAP/PDC_FIND_ADDRESS to get them. Note that calling PDC_FIND_ADDRESS with an address index of 0 just returns the first address range that you got from the PDC_FIND_MODULE, so it is redundant (i.e. you should make the first call with an address index of 1, which is what the debug code does).
You'll probably want to save the information returned from PDC_FIND_ADDRESS for later. Note that the register_module() call returns a pointer to the associated hp_device structure, however we are ignoring the return in the call in inventory.c. If you save the return value, perhaps the hp_device structure should be modified to hold the additional ranges (or at least just the one additional range for the STI special case).
...
Quoted 5 lines
btw, all info I've found about
PDC_SYSTEM_MAPwas in pdc.pdf, just telling about the existence of such a procedure in chapter 2.2, but there's no more info about it (while ALL other procedures are explained in this book). This is just to get explained about thepdc_system_map_find_modsparams.
I don't have any documentation for PDC_SYSTEM_MAP either. I just used the HP-UX source for reference.
John Marvin
[email protected]
John Marvin wrote:
...
Quoted 8 lines
Quoted 5 lines
btw, all info I've found about
PDC_SYSTEM_MAPwas in pdc.pdf, just telling about the existence of such a procedure in chapter 2.2, but there's no more info about it (while ALL other procedures are explained in this book). This is just to get explained about thepdc_system_map_find_modsparams.I don't have any documentation for
PDC_SYSTEM_MAPeither. I just used the HP-UX source for reference.
PDC_SYSTEM_MAP is Hversion specific. I do know it's documented in the various firmware ERS's. I'm not aware those have been published yet. Strike one. :^(
[ However, I see no reason why HP wouldn't allow firmware ERS's
for "legacy" platforms to be published. Cost/time to review/santize might be the only reason. And while a few of the ERS's are not very good (ie incomplete), still better than nothing. ]
It seems HP published key parts of the "I/O Architecture Control Document":
http://devresource.hp.com/devresource/Docs/DocLib_Refs.html#archrefs
as "Part 2: Processor Dependent Code Procedures" (PDC.pdf). And those are probably on parisc-linux Documentation website as well.
But as Xavier noted above, while mentioned, PDC_SYSTEM_MAP is not actually documented in the PDC.pdf. :^( Strike two.
PDC_SYSTEM_MAP is documented on page 467 (of 646) in the ioacd_v096.pdf. I'll ask the owners of ioacd if "common" Hversion PDC calls could be published as well. This might take a while though. :^(
I hope they were not intentionally excluded for some sane reason.
grant
Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253