drivers/staging/octeon/ethernet-defines.h

Source file repositories/reference/linux-study-clean/drivers/staging/octeon/ethernet-defines.h

File Facts

System
Linux kernel
Corpus path
drivers/staging/octeon/ethernet-defines.h
Extension
.h
Size
1409 bytes
Lines
41
Domain
Driver Families
Bucket
drivers/staging
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

#ifndef __ETHERNET_DEFINES_H__
#define __ETHERNET_DEFINES_H__

#ifdef CONFIG_NETFILTER
#define REUSE_SKBUFFS_WITHOUT_FREE	0
#else
#define REUSE_SKBUFFS_WITHOUT_FREE	1
#endif

#define USE_ASYNC_IOBDMA		(CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE > 0)

/* Maximum number of SKBs to try to free per xmit packet. */
#define MAX_OUT_QUEUE_DEPTH		1000

#define FAU_TOTAL_TX_TO_CLEAN (CVMX_FAU_REG_END - sizeof(u32))
#define FAU_NUM_PACKET_BUFFERS_TO_FREE (FAU_TOTAL_TX_TO_CLEAN - sizeof(u32))

#define TOTAL_NUMBER_OF_PORTS		(CVMX_PIP_NUM_INPUT_PORTS + 1)

#endif /* __ETHERNET_DEFINES_H__ */

Annotation

Implementation Notes