
Dear "Robert P. J. Day",
In message alpine.LFD.2.20.1607170619400.5907@localhost.localdomain you wrote:
but this brings up the question, where should content like that properly be defined? it seems awkward to break the bit flag definitions for a single register over two header files (especially when they're not defined syntactically identically). is there a historical reason that that content is split over two header files?
Yes, there is. MPC8xx was the very first processor PPCBoot was developed on, and code cam from several incompatible sources. As usual, there was never enough time for a real cleanup.
thoughts?
I doubt if this is really worth the efforts. MPC8xx is a dead horse, and has been so for a decade [which does not mean that there are not any products using it; even new ones...]. I guess MPC8xx will be removed in a not to far future...
i just noticed that none of the *_MASK macros are referenced anywhere in the entire source tree:
...
so what are they used for?
For completeness. Many chip vendors tend to creatye huge (tens of thousands of lines) header files for their chips to give names to each and every possible bit and mask combination. In the end, only a tiny percentage of this will be used. We never tried to clean up such files to include only used defines [which is probably a bad idea anyway, as the next driver might need just the defines you remove now.]
Best regards,
Wolfgang Denk