The "u32 reg" argument that is passed to these functions is not a plain address, but rather a driver-specific encoding of another enum ocelot_target target in the upper bits, and an index into the u32 ocelot->map[target][] array in the lower bits. That encoded value takes the type "enum ocelot_reg" and is what is passed to these I/O functions, so let's actually use that to prevent type confusion. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| ocelot.h | ||
| ocelot_ana.h | ||
| ocelot_dev.h | ||
| ocelot_hsio.h | ||
| ocelot_ptp.h | ||
| ocelot_qsys.h | ||
| ocelot_sys.h | ||
| ocelot_vcap.h | ||
| vsc7514_regs.h | ||