• Alex Elder's avatar
    net: ipa: introduce IPA register IDs · 98e2dd71
    Alex Elder authored
    Create a new ipa_reg_id enumerated type, which identifies each IPA
    register with a symbolic identifier.  Use short names, but in some
    cases (such as "BCR") add "IPA_" to the name to help avoid name
    conflicts.
    
    Create two functions that indicate register validity.  The first
    concisely indicates whether a register is valid for a given version
    of IPA, and if so, whether it is defined.  The second indicates
    whether a register is valid for TX or RX endpoints.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    98e2dd71
ipa_reg.c 1.97 KB