
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>
40 lines
1.0 KiB
C
40 lines
1.0 KiB
C
/* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* RmNet Low Latency channel handlers
|
|
*/
|
|
|
|
#ifndef __RMNET_LL_H__
|
|
#define __RMNET_LL_H__
|
|
|
|
#include <linux/skbuff.h>
|
|
|
|
struct rmnet_ll_stats {
|
|
u64 tx_queue;
|
|
u64 tx_queue_err;
|
|
u64 tx_complete;
|
|
u64 tx_complete_err;
|
|
u64 rx_queue;
|
|
u64 rx_queue_err;
|
|
u64 rx_status_err;
|
|
u64 rx_null;
|
|
u64 rx_oom;
|
|
u64 rx_pkts;
|
|
u64 rx_tmp_allocs;
|
|
};
|
|
|
|
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);
|
|
|
|
#endif
|