rmnet_core: Add IPA driver support for low-latency framework
Allows the use of the LL channel on IPA based targetds. MHI specific functionality is split into the new rmnet_ll_mhi.c file, and IPA is placed in rmnet_ll_ipa.c. rmnet_ll.c works as a generic interface to the core rmnet module, and handles calling specific functions in the active HW module to provide the low latency channel functionality. Change-Id: Id3e77b8433134872eba09818fc662fc109687d80 Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
This commit is contained in:

committad av
Subash Abhinov Kasiviswanathan

förälder
b8552944d5
incheckning
aeba491583
@@ -31,40 +31,9 @@ struct rmnet_ll_stats {
|
||||
u64 rx_tmp_allocs;
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_MHI_BUS)
|
||||
|
||||
int rmnet_ll_send_skb(struct sk_buff *skb);
|
||||
struct rmnet_ll_stats *rmnet_ll_get_stats(void);
|
||||
int rmnet_ll_init(void);
|
||||
void rmnet_ll_exit(void);
|
||||
|
||||
#else
|
||||
|
||||
static struct rmnet_ll_stats rmnet_ll_dummy_stats;
|
||||
|
||||
static inline int rmnet_ll_send_skb(struct sk_buff *skb)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline struct rmnet_ll_stats *rmnet_ll_get_stats(void)
|
||||
{
|
||||
return &rmnet_ll_dummy_stats;
|
||||
}
|
||||
|
||||
static inline int rmnet_ll_init(void)
|
||||
{
|
||||
/* Allow configuration to continue. Nothing else will happen since all
|
||||
* this does is register the driver with the mhi framework, and if the
|
||||
* channel never comes up, we don't do anything.
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void rmnet_ll_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Referens i nytt ärende
Block a user