1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wwan/iosm/iosm_ipc_port.h
Muhammad Muzammil 2c6370a13f drivers: net: wwan: iosm: Fixed multiple typos in multiple files
iosm_ipc_chnl_cfg.h: Fixed typo
iosm_ipc_imem_ops.h: Fixed typo
iosm_ipc_mux.h: Fixed typo
iosm_ipc_pm.h: Fixed typo
iosm_ipc_port.h: Fixed typo
iosm_ipc_trace.h: Fixed typo

Signed-off-by: Muhammad Muzammil <m.muzzammilashraf@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231014121407.10012-1-m.muzzammilashraf@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-10-18 17:45:44 -07:00

50 lines
1.2 KiB
C

/* SPDX-License-Identifier: GPL-2.0-only
*
* Copyright (C) 2020-21 Intel Corporation.
*/
#ifndef IOSM_IPC_PORT_H
#define IOSM_IPC_PORT_H
#include <linux/wwan.h>
#include "iosm_ipc_imem_ops.h"
/**
* struct iosm_cdev - State of the char driver layer.
* @iosm_port: Pointer of type wwan_port
* @ipc_imem: imem instance
* @dev: Pointer to device struct
* @pcie: PCIe component
* @port_type: WWAN port type
* @channel: Channel instance
* @chl_id: Channel Identifier
*/
struct iosm_cdev {
struct wwan_port *iosm_port;
struct iosm_imem *ipc_imem;
struct device *dev;
struct iosm_pcie *pcie;
enum wwan_port_type port_type;
struct ipc_mem_channel *channel;
enum ipc_channel_id chl_id;
};
/**
* ipc_port_init - Allocate IPC port & register to wwan subsystem for AT/MBIM
* communication.
* @ipc_imem: Pointer to iosm_imem structure
* @ipc_port_cfg: IPC Port Config
*
* Returns: 0 on success & NULL on failure
*/
struct iosm_cdev *ipc_port_init(struct iosm_imem *ipc_imem,
struct ipc_chnl_cfg ipc_port_cfg);
/**
* ipc_port_deinit - Free IPC port & unregister port with wwan subsystem.
* @ipc_port: Array of pointer to the ipc port data-struct
*/
void ipc_port_deinit(struct iosm_cdev *ipc_port[]);
#endif