• Alex Elder's avatar
    net: ipa: start creating GSI register definitions · d2bb6e65
    Alex Elder authored
    Create a new register definition file in the "reg" subdirectory,
    and begin populating it with GSI register definitions based on IPA
    version.  The GSI registers haven't changed much, so several IPA
    versions can share the same GSI register definitions.
    
    As with IPA registers, an array of pointers indexed by GSI register ID
    refers to these register definitions, and a new "regs" field in the
    GSI structure is initialized in gsi_reg_init() to refer to register
    information based on the IPA version (though for now there's only
    one).  The new function gsi_reg() returns register information for
    a given GSI register, and the result can be used to look up that
    register's offset.
    
    This patch is meant only to put the infrastructure in place, so only
    eon register (CH_C_QOS) is defined for each version, and only the
    offset and stride are defined for that register.  Use new function
    gsi_reg() to look up that register's information to get its offset,
    This makes the GSI_CH_C_QOS_OFFSET() unnecessary, so get rid of it.
    Signed-off-by: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d2bb6e65
gsi_reg-v3.1.c 410 Bytes