drivers/net/ethernet/qualcomm/qca_7k_common.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/qualcomm/qca_7k_common.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/qualcomm/qca_7k_common.h
Extension
.h
Size
2995 bytes
Lines
118
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 qcafrm_handle {
	/*  Current decoding state */
	enum qcafrm_state state;
	/* Initial state depends on connection type */
	enum qcafrm_state init;

	/* Offset in buffer (borrowed for length too) */
	u16 offset;
};

u16 qcafrm_create_header(u8 *buf, u16 len);

u16 qcafrm_create_footer(u8 *buf);

static inline void qcafrm_fsm_init_spi(struct qcafrm_handle *handle)
{
	handle->init = QCAFRM_HW_LEN0;
	handle->state = handle->init;
}

static inline void qcafrm_fsm_init_uart(struct qcafrm_handle *handle)
{
	handle->init = QCAFRM_WAIT_AA1;
	handle->state = handle->init;
}

s32 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte);

#endif /* _QCA_FRAMING_H */

Annotation

Implementation Notes