drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.h
Extension
.h
Size
1740 bytes
Lines
48
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 sxgbe_dma_ops {
	/* DMA core initialization */
	int (*init)(void __iomem *ioaddr, int fix_burst, int burst_map);
	void (*cha_init)(void __iomem *ioaddr, int cha_num, int fix_burst,
			 int pbl, dma_addr_t dma_tx, dma_addr_t dma_rx,
			 int t_rzie, int r_rsize);
	void (*enable_dma_transmission)(void __iomem *ioaddr, int dma_cnum);
	void (*enable_dma_irq)(void __iomem *ioaddr, int dma_cnum);
	void (*disable_dma_irq)(void __iomem *ioaddr, int dma_cnum);
	void (*start_tx)(void __iomem *ioaddr, int tchannels);
	void (*start_tx_queue)(void __iomem *ioaddr, int dma_cnum);
	void (*stop_tx)(void __iomem *ioaddr, int tchannels);
	void (*stop_tx_queue)(void __iomem *ioaddr, int dma_cnum);
	void (*start_rx)(void __iomem *ioaddr, int rchannels);
	void (*stop_rx)(void __iomem *ioaddr, int rchannels);
	int (*tx_dma_int_status)(void __iomem *ioaddr, int channel_no,
				 struct sxgbe_extra_stats *x);
	int (*rx_dma_int_status)(void __iomem *ioaddr, int channel_no,
				 struct sxgbe_extra_stats *x);
	/* Program the HW RX Watchdog */
	void (*rx_watchdog)(void __iomem *ioaddr, u32 riwt);
	/* Enable TSO for each DMA channel */
	void (*enable_tso)(void __iomem *ioaddr, u8 chan_num);
};

const struct sxgbe_dma_ops *sxgbe_get_dma_ops(void);

#endif /* __SXGBE_CORE_H__ */

Annotation

Implementation Notes