mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-24 10:34:24 +03:00
nvethernetrm: add tmake support
- Split files into core and dma directories to add separate tmake files for creating separate RM and DMA channel libraries. ESQC-7634 Change-Id: Id9a2431bbee73a29b4a3565d8aa2bc0d8e7f0c78 Signed-off-by: Mohit Dhingra <mdhingra@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2109978 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Bhadram Varka
parent
bb258b8dbf
commit
d4547fd86c
@@ -346,7 +346,7 @@ static inline void osi_writel(unsigned int val, void *addr)
|
||||
*
|
||||
* Return: 0 - for not Valid MAC, 1 - for Valid MAC
|
||||
*/
|
||||
static int is_valid_mac_version(unsigned int mac_ver)
|
||||
static inline int is_valid_mac_version(unsigned int mac_ver)
|
||||
{
|
||||
if ((mac_ver == OSI_EQOS_MAC_4_10) ||
|
||||
(mac_ver == OSI_EQOS_MAC_5_00) ||
|
||||
@@ -370,19 +370,7 @@ static int is_valid_mac_version(unsigned int mac_ver)
|
||||
*
|
||||
* Return: 0 - success, -1 - failure
|
||||
*/
|
||||
static inline int osi_get_mac_version(void *addr, unsigned int *mac_ver)
|
||||
{
|
||||
unsigned int macver;
|
||||
int ret = 0;
|
||||
|
||||
macver = osi_readl((unsigned char *)addr + MAC_VERSION) & MAC_VERSION_SNVER_MASK;
|
||||
if (is_valid_mac_version(macver) == 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
*mac_ver = macver;
|
||||
return ret;
|
||||
}
|
||||
int osi_get_mac_version(void *addr, unsigned int *mac_ver);
|
||||
|
||||
void osi_get_hw_features(void *base, struct osi_hw_features *hw_feat);
|
||||
#endif /* OSI_COMMON_H */
|
||||
|
||||
Reference in New Issue
Block a user