Configuration Data
From DDCIDeos
Jump to navigationJump to search
Objective
This page was created to capture tribal knowledge about getting data from the registry or other non-compiled files into embedded software to use for configuration "magic numbers".
General
Move magic numbers out of the hard-coded compile where possible for numbers that are expected to (or may) be different on different targets/platforms and put them in modifiable configuration files.
PAL
- Passing in a base address (such as CCSRBAR)
- Use getPlatformResourceAttributesPPI kernel function to get the address to use from a PIA file via the kernel.
Drivers
- Passing in a base address + offset value
- Set the base + offset addresses in a platform-specific driver PIA file.