drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.h
Extension
.h
Size
2035 bytes
Lines
69
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 octeon_cn23xx_pf {
	/** PCI interrupt summary register */
	u8 __iomem *intr_sum_reg64;

	/** PCI interrupt enable register */
	u8 __iomem *intr_enb_reg64;

	/** The PCI interrupt mask used by interrupt handler */
	u64 intr_mask64;

	struct octeon_config *conf;
};

#define CN23XX_SLI_DEF_BP			0x40

struct oct_vf_stats {
	u64 rx_packets;
	u64 tx_packets;
	u64 rx_bytes;
	u64 tx_bytes;
	u64 broadcast;
	u64 multicast;
};

int setup_cn23xx_octeon_pf_device(struct octeon_device *oct);

u32 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us);

int cn23xx_sriov_config(struct octeon_device *oct);

int cn23xx_fw_loaded(struct octeon_device *oct);

void cn23xx_tell_vf_its_macaddr_changed(struct octeon_device *oct, int vfidx,
					u8 *mac);

int cn23xx_get_vf_stats(struct octeon_device *oct, int ifidx,
			struct oct_vf_stats *stats);
#endif

Annotation

Implementation Notes