drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp_xpb.h
Extension
.h
Size
729 bytes
Lines
28
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

#ifndef NFP6000_XPB_H
#define NFP6000_XPB_H

/* For use with NFP6000 Databook "XPB Addressing" section
 */
#define NFP_XPB_OVERLAY(island)  (((island) & 0x3f) << 24)

#define NFP_XPB_ISLAND(island)   (NFP_XPB_OVERLAY(island) + 0x60000)

#define NFP_XPB_ISLAND_of(offset) (((offset) >> 24) & 0x3F)

/* For use with NFP6000 Databook "XPB Island and Device IDs" chapter
 */
#define NFP_XPB_DEVICE(island, slave, device) \
	(NFP_XPB_OVERLAY(island) | \
	 (((slave) & 3) << 22) | \
	 (((device) & 0x3f) << 16))

#endif /* NFP6000_XPB_H */

Annotation

Implementation Notes