![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only 0002 * 0003 * Copyright (C) 2020-21 Intel Corporation. 0004 */ 0005 0006 #ifndef IOSM_IPC_WWAN_H 0007 #define IOSM_IPC_WWAN_H 0008 0009 /** 0010 * ipc_wwan_init - Allocate, Init and register WWAN device 0011 * @ipc_imem: Pointer to imem data-struct 0012 * @dev: Pointer to device structure 0013 * 0014 * Returns: Pointer to instance on success else NULL 0015 */ 0016 struct iosm_wwan *ipc_wwan_init(struct iosm_imem *ipc_imem, struct device *dev); 0017 0018 /** 0019 * ipc_wwan_deinit - Unregister and free WWAN device, clear pointer 0020 * @ipc_wwan: Pointer to wwan instance data 0021 */ 0022 void ipc_wwan_deinit(struct iosm_wwan *ipc_wwan); 0023 0024 /** 0025 * ipc_wwan_receive - Receive a downlink packet from CP. 0026 * @ipc_wwan: Pointer to wwan instance 0027 * @skb_arg: Pointer to struct sk_buff 0028 * @dss: Set to true if interafce id is from 257 to 261, 0029 * else false 0030 * @if_id: Interface ID 0031 * 0032 * Return: 0 on success and failure value on error 0033 */ 0034 int ipc_wwan_receive(struct iosm_wwan *ipc_wwan, struct sk_buff *skb_arg, 0035 bool dss, int if_id); 0036 0037 /** 0038 * ipc_wwan_tx_flowctrl - Enable/Disable TX flow control 0039 * @ipc_wwan: Pointer to wwan instance 0040 * @id: Ipc mux channel session id 0041 * @on: if true then flow ctrl would be enabled else disable 0042 * 0043 */ 0044 void ipc_wwan_tx_flowctrl(struct iosm_wwan *ipc_wwan, int id, bool on); 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |