drivers/net/fddi/skfp/h/cmtdef.h
Source file repositories/reference/linux-study-clean/drivers/net/fddi/skfp/h/cmtdef.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/fddi/skfp/h/cmtdef.h- Extension
.h- Size
- 22233 bytes
- Lines
- 748
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
fddi/driver.prombuf.hsmtstate.h
Detected Declarations
struct smt_timerstruct mac_parameterstruct mac_counterstruct s_pconstruct lem_counterstruct s_plc
Annotated Snippet
struct smt_timer {
struct smt_timer *tm_next ; /* linked list */
struct s_smc *tm_smc ; /* pointer to context */
u_long tm_delta ; /* delta time */
u_long tm_token ; /* token value */
u_short tm_active ; /* flag : active/inactive */
u_short tm_pad ; /* pad field */
} ;
/*
* communication structures
*/
struct mac_parameter {
u_long t_neg ; /* T_Neg parameter */
u_long t_pri ; /* T_Pri register in MAC */
} ;
/*
* MAC counters
*/
struct mac_counter {
u_long mac_nobuf_counter ; /* MAC SW counter: no buffer */
u_long mac_r_restart_counter ; /* MAC SW counter: rx restarted */
} ;
/*
* para struct context for SMT parameters
*/
struct s_pcon {
int pc_len ;
int pc_err ;
int pc_badset ;
void *pc_p ;
} ;
/*
* link error monitor
*/
#define LEM_AVG 5
struct lem_counter {
#ifdef AM29K
int lem_on ;
u_long lem_errors ;
u_long lem_symbols ;
u_long lem_tsymbols ;
int lem_s_count ;
int lem_n_s ;
int lem_values ;
int lem_index ;
int lem_avg_ber[LEM_AVG] ;
int lem_sum ;
#else
u_short lem_float_ber ; /* 10E-nn bit error rate */
u_long lem_errors ; /* accumulated error count */
u_short lem_on ;
#endif
} ;
#define NUMBITS 10
#ifdef AMDPLC
/*
* PLC state table
*/
struct s_plc {
u_short p_state ; /* current state */
u_short p_bits ; /* number of bits to send */
u_short p_start ; /* first bit pos */
u_short p_pad ; /* padding for alignment */
u_long soft_err ; /* error counter */
u_long parity_err ; /* error counter */
u_long ebuf_err ; /* error counter */
u_long ebuf_cont ; /* continuous error counter */
u_long phyinv ; /* error counter */
u_long vsym_ctr ; /* error counter */
u_long mini_ctr ; /* error counter */
u_long tpc_exp ; /* error counter */
u_long np_err ; /* error counter */
u_long b_pcs ; /* error counter */
u_long b_tpc ; /* error counter */
u_long b_tne ; /* error counter */
u_long b_qls ; /* error counter */
u_long b_ils ; /* error counter */
u_long b_hls ; /* error counter */
} ;
#endif
#ifdef PROTOTYP_INC
#include "fddi/driver.pro"
Annotation
- Immediate include surface: `fddi/driver.pro`, `mbuf.h`, `smtstate.h`.
- Detected declarations: `struct smt_timer`, `struct mac_parameter`, `struct mac_counter`, `struct s_pcon`, `struct lem_counter`, `struct s_plc`.
- 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.