drivers/net/ethernet/tundra/tsi108_eth.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/tundra/tsi108_eth.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/tundra/tsi108_eth.h- Extension
.h- Size
- 11659 bytes
- Lines
- 343
- 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.
- 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
linux/types.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __TSI108_ETH_H
#define __TSI108_ETH_H
#include <linux/types.h>
#define TSI_WRITE(offset, val) \
out_be32((data->regs + (offset)), val)
#define TSI_READ(offset) \
in_be32((data->regs + (offset)))
#define TSI_WRITE_PHY(offset, val) \
out_be32((data->phyregs + (offset)), val)
#define TSI_READ_PHY(offset) \
in_be32((data->phyregs + (offset)))
/*
* TSI108 GIGE port registers
*/
#define TSI108_ETH_PORT_NUM 2
#define TSI108_PBM_PORT 2
#define TSI108_SDRAM_PORT 4
#define TSI108_MAC_CFG1 (0x000)
#define TSI108_MAC_CFG1_SOFTRST (1 << 31)
#define TSI108_MAC_CFG1_LOOPBACK (1 << 8)
#define TSI108_MAC_CFG1_RXEN (1 << 2)
#define TSI108_MAC_CFG1_TXEN (1 << 0)
#define TSI108_MAC_CFG2 (0x004)
#define TSI108_MAC_CFG2_DFLT_PREAMBLE (7 << 12)
#define TSI108_MAC_CFG2_IFACE_MASK (3 << 8)
#define TSI108_MAC_CFG2_NOGIG (1 << 8)
#define TSI108_MAC_CFG2_GIG (2 << 8)
#define TSI108_MAC_CFG2_PADCRC (1 << 2)
#define TSI108_MAC_CFG2_FULLDUPLEX (1 << 0)
#define TSI108_MAC_MII_MGMT_CFG (0x020)
#define TSI108_MAC_MII_MGMT_CLK (7 << 0)
#define TSI108_MAC_MII_MGMT_RST (1 << 31)
#define TSI108_MAC_MII_CMD (0x024)
#define TSI108_MAC_MII_CMD_READ (1 << 0)
#define TSI108_MAC_MII_ADDR (0x028)
#define TSI108_MAC_MII_ADDR_REG 0
#define TSI108_MAC_MII_ADDR_PHY 8
#define TSI108_MAC_MII_DATAOUT (0x02c)
#define TSI108_MAC_MII_DATAIN (0x030)
#define TSI108_MAC_MII_IND (0x034)
#define TSI108_MAC_MII_IND_NOTVALID (1 << 2)
#define TSI108_MAC_MII_IND_SCANNING (1 << 1)
#define TSI108_MAC_MII_IND_BUSY (1 << 0)
#define TSI108_MAC_IFCTRL (0x038)
#define TSI108_MAC_IFCTRL_PHYMODE (1 << 24)
#define TSI108_MAC_ADDR1 (0x040)
#define TSI108_MAC_ADDR2 (0x044)
#define TSI108_STAT_RXBYTES (0x06c)
#define TSI108_STAT_RXBYTES_CARRY (1 << 24)
#define TSI108_STAT_RXPKTS (0x070)
#define TSI108_STAT_RXPKTS_CARRY (1 << 18)
#define TSI108_STAT_RXFCS (0x074)
#define TSI108_STAT_RXFCS_CARRY (1 << 12)
#define TSI108_STAT_RXMCAST (0x078)
#define TSI108_STAT_RXMCAST_CARRY (1 << 18)
#define TSI108_STAT_RXALIGN (0x08c)
#define TSI108_STAT_RXALIGN_CARRY (1 << 12)
#define TSI108_STAT_RXLENGTH (0x090)
#define TSI108_STAT_RXLENGTH_CARRY (1 << 12)
#define TSI108_STAT_RXRUNT (0x09c)
#define TSI108_STAT_RXRUNT_CARRY (1 << 12)
#define TSI108_STAT_RXJUMBO (0x0a0)
#define TSI108_STAT_RXJUMBO_CARRY (1 << 12)
#define TSI108_STAT_RXFRAG (0x0a4)
#define TSI108_STAT_RXFRAG_CARRY (1 << 12)
Annotation
- Immediate include surface: `linux/types.h`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.