Instead of reusing the same reg parsing code, create one, common function that puts reg contents to the resource list.
Address cells and size cells are passed rather than acquired here so that any bus can have different default values.
Details
Details
- Reviewers
nwhitehorn andrew • ian
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
thanks for doing this, I meant to do it after I did the intr_to_rl, and just forgot.
sys/dev/ofw/ofw_bus_subr.c | ||
---|---|---|
412 | this is passing uint64_t values to an api that takes 32-bit values on some arches, we'll probably need to cast to u_long to avoid warnings. hmm, then again maybe not, I guess the old code was the same. |