STRUCT ICE_ETH56G_MAC_REG_CFG(9)
๐ NAME ๐
struct ice_eth56g_mac_reg_cfg โ the MAC config values for specific PTP registers, bestie ๐
(this is from the Kernel API Manual, and yes, it slays)
โจ SYNOPSIS โจ
okay so here's the whole struct, no cap:
struct ice_eth56g_mac_reg_cfg {
struct {
u8 def;
u8 rs;
} tx_mode;
u8 tx_mk_dly;
struct {
u8 def;
u8 onestep;
} tx_cw_dly;
struct {
u8 def;
u8 rs;
} rx_mode;
struct {
u8 def;
u8 rs;
} rx_mk_dly;
struct {
u8 def;
u8 rs;
} rx_cw_dly;
u8 blks_per_clk;
u16 blktime;
u16 mktime;
struct {
u32 serdes;
u32 no_fec;
u32 fc;
u32 rs;
u32 sfd;
u32 onestep;
} tx_offset;
struct {
u32 serdes;
u32 no_fec;
u32 fc;
u32 rs;
u32 sfd;
u32 bs_ds;
} rx_offset;
};
๐ MEMBERS ๐
tx_modeโ the Tx timestamp compensation mode, periodt โจtx_mk_dlyโ Tx timestamp marker start strobe delay ๐tx_cw_dlyโ Tx timestamp codeword start strobe delay ๐rx_modeโ the Rx timestamp compensation mode ๐ซrx_mk_dlyโ Rx timestamp marker start strobe delay ๐rx_cw_dlyโ Rx timestamp codeword start strobe delay ๐blks_per_clkโ the number of blocks transferred per clock cycle ๐ฅblktimeโ block time, fixed point ๐งฎmktimeโ marker time, fixed point ๐งฎtx_offsetโ total Tx offset, fixed point ๐ฏrx_offsetโ total Rx offset, contains value for bitslip/deskew, fixed point ๐ฏ
๐ฆ DESCRIPTION ๐ฆ
okay so here's the tea on the numerics โ โ all the fixed point registers except Rx offset are 23 bit unsigned ints with a 9 bit fractional. and Rx offset? she's different ๐ โ she's an 11 bit unsigned int with a 9 bit fractional. iykyk ๐ซถ
๐ SEE ALSO ๐
kernel file ./drivers/net/ethernet/intel/ice/ice_ptp_hw.h struct ice_phy_reg_info_eth56g(9), struct ice_time_ref_info_e82x(9), struct ice_vernier_info_e82x(9), ice_e82x_time_ref(9), ice_set_e82x_time_ref(9), ice_get_base_incval(9) โ go read those next, they're iconic ๐
and that's the whole page bestie, we ate and left no crumbs ๐โจ โ source/version: ./drivers/net/ethernet/intel/ice, dated October 2026, struct ice_..._mac_reg_cfg(9) signing off ๐๐ง
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms