drivers/net/wwan/iosm/iosm_ipc_port.h

Source file repositories/reference/linux-study-clean/drivers/net/wwan/iosm/iosm_ipc_port.h

File Facts

System
Linux kernel
Corpus path
drivers/net/wwan/iosm/iosm_ipc_port.h
Extension
.h
Size
1245 bytes
Lines
51
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

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

Annotation

Implementation Notes