pch_gbe_mac_ctrl_miim(9)
π pch_gbe_mac_ctrl_miim(9) β Control MIIM interface
okay so bestie, welcome to the Kernel API Manual page for pch_gbe_mac_ctrl_miim. yeah it's a mouthful, just say it with confidence β¨ This is the little function that controls the MIIM interface β that's the management-data door the driver uses to chat with the PHY. She's giving "phone operator for the network card" energy, and honestly? iconic. π
β¨ SYNOPSIS β¨
u16 pch_gbe_mac_ctrl_miim (struct pch_gbe_hw *hw , u32 addr , u32 dir ,
u32 reg , u16 data );
she returns a u16, she takes five args, and she is not here to explain herself π
πΈ ARGUMENTS πΈ
hwβ Pointer to the HW structure. you know, the hardware. the whole vibe provider. π«Άaddrβ Address of PHY. which PHY we're talking to, bestie, they don't all share a phone line πdirβ Operetion. (Write or Read) β yes, the manual literally says "Operetion", and no I will not be fixing it, it's canon now π it's the direction: are we writing or reading.regβ Access register of PHY. which register on that PHY we're poking at πdataβ Write data. the actual payload, the moment of truth, the main character π
β RETURN β
Read date.
ngl that's what it says β "Read date." β it means read data, and honestly the typo has been living rent-free in my head ever since π So: this returns the data that got read. slay.
π¦ SEE ALSO π¦
the whole friend group is here, fr fr. first up, the kernel file itself:
Kernel file ./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
then the MAC besties:
pch_gbe_mac_read_mac_addr(9),pch_gbe_wait_clr_bit(9),pch_gbe_mac_mar_set(9),pch_gbe_mac_reset_hw(9),pch_gbe_mac_init_rx_addrs(9),pch_gbe_mac_force_mac_fc(9),pch_gbe_mac_set_wol_event(9),pch_gbe_mac_set_pause_packet(9)
the setup + mdio girlies:
pch_gbe_alloc_queues(9),pch_gbe_init_stats(9),pch_gbe_init_phy(9),pch_gbe_mdio_read(9),pch_gbe_mdio_write(9)
the reset-and-interrupt squad:
pch_gbe_reset_task(9),pch_gbe_reinit_locked(9),pch_gbe_reset(9),pch_gbe_free_irq(9),pch_gbe_irq_disable(9),pch_gbe_irq_enable(9)
the tx/rx config crew:
pch_gbe_setup_tctl(9),pch_gbe_configure_tx(9),pch_gbe_setup_rctl(9),pch_gbe_configure_rx(9),pch_gbe_unmap_and_free_tx_resource(9),pch_gbe_unmap_and_free_rx_resource(9)
the cleanup + stats clique:
pch_gbe_clean_tx_ring(9),pch_gbe_clean_rx_ring(9),pch_gbe_watchdog(9),pch_gbe_tx_queue(9),pch_gbe_update_stats(9),pch_gbe_intr(9)
the buffer besties:
pch_gbe_alloc_rx_buffers(9),pch_gbe_alloc_tx_buffers(9),pch_gbe_clean_tx(9),pch_gbe_clean_rx(9),pch_gbe_setup_tx_resources(9),pch_gbe_setup_rx_resources(9),pch_gbe_free_tx_resources(9),pch_gbe_free_rx_resources(9)
the lifecycle icons:
pch_gbe_request_irq(9),pch_gbe_up(9),pch_gbe_down(9),pch_gbe_sw_init(9),pch_gbe_open(9),pch_gbe_stop(9)
and the netdev interface main characters:
pch_gbe_xmit_frame(9),pch_gbe_set_multi(9),pch_gbe_set_mac(9),pch_gbe_change_mtu(9),pch_gbe_set_features(9),pch_gbe_ioctl(9),pch_gbe_tx_timeout(9),pch_gbe_napi_poll(9),pch_gbe_netpoll(9)
like I said β the entire friend group. no one left behind π«Άπ
quick vibe check: every one of those (9) refs is exactly how it's written in the source page, so don't come for me about the parentheses okay π I don't make the rules, I just make them cute.
and that's the page!! tysm for reading, you ate that ngl π this little transmission was brought to you by Kernel API Manual, source ./drivers/net/ethernet/oki-sem..., dated October 2026, and of course the star herself pch_gbe_mac_ctrl_miim(9). mwah, bye bestie πππ¦
π¦ 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