sis900_read_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sis900_read_mode β€” Kernel API Manual, but make it make sense

okay bestie, so this is sis900_read_mode(9) from the Kernel API Manual, and it's basically the little function that reads the media mode for the sis900 internal phy πŸ¦‹ she's small, she's specific, she's iconic.


✨ NAME ✨

sis900_read_mode β€” reads the media mode for the sis900 internal phy πŸ‘‘

🌸 SYNOPSIS 🌸

void sis900_read_mode (struct net_device *net_dev , int *speed , int
*duplex );

πŸŽ€ ARGUMENTS πŸŽ€

  • net_dev β€” the net device you're reading the mode for, like the main character of this whole operation πŸ’–
  • speed β€” the transmit speed that's gonna get determined ✨
  • duplex β€” the duplex mode that's gonna get determined 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe: the capability of the remote end gets put into the mii register autorec after auto-negotiation. that's just what happens, no cap πŸ’…

then you use the AND operation to get the upper bound of speed and duplex between the two ends. that's it, that's the whole function β€” she ANDs and she slays 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/sis/sis900.c and honestly the whole sis900 friend group, they all get a shoutout fr fr:

sis900_get_mac_addr(9), sis630e_get_mac_addr(9), sis635_get_mac_addr(9), sis96x_get_mac_addr(9), sis900_probe(9), sis900_mii_probe(9), sis900_default_phy(9), sis900_set_capability(9), read_eeprom(9), mdio_read(9), mdio_write(9), sis900_reset_phy(9), sis900_open(9), sis900_init_rxfilter(9), sis900_init_tx_ring(9), sis900_init_rx_ring(9), sis630_set_eq(9), sis900_timer(9), sis900_check_mode(9), sis900_set_mode(9), sis900_auto_negotiate(9), sis900_tx_timeout(9), sis900_start_xmit(9), sis900_interrupt(9), sis900_rx(9), sis900_finish_xmit(9), sis900_close(9), sis900_get_drvinfo(9), sis900_set_wol(9), mii_ioctl(9), sis900_set_config(9), sis900_mcast_bitnr(9), set_rx_mode(9), sis900_reset(9), sis900_remove(9) πŸ’€ like, the entire friend group showed up to the party.


ngl if you're here for the sis900 lore you have a whole reading list now. hydrate before you start πŸ“šπŸ“

mwah, that's a wrap! πŸ’œ this absolute gem lives in ./drivers/net/ethernet/sis, dated October 2026, and yes she's still sis900_read_mode(9) β€” go off, queen 🧚⭐

πŸ“¦ where this page comes from