sis96x_get_mac_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sis96x_get_mac_addr(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for sis96x_get_mac_addr β€” yes the whole function name is the title, we're fancy like that ✨


🌸 NAME 🌸

sis96x_get_mac_addr β€” grab the MAC address for the SiS962 or SiS963 model, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int sis96x_get_mac_addr (struct pci_dev *pci_dev , struct net_device
*net_dev );

literally that's the whole signature, take it in πŸ’…


✨ ARGUMENTS ✨

  • pci_dev β€” the sis900 pci device, aka the hardware bestie we're talking to 🫢
  • net_dev β€” the net device we're fetching the address for, she's the main character here πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

So here's the tea, bestie πŸ“ β€” the SiS962 or SiS963 model uses EEPROM to store the MAC address. And that EEPROM is shared by LAN and 1394, so it's giving communal apartment energy, everybody wants a turn 😭

When you're accessing the EEPROM, you gotta send the EEREQ signal to the hardware first and then wait for EEGNT. That's the vibe check. If EEGNT is ON, EEPROM access is permitted for LAN β€” slay, go off πŸ’– If it's not ON, then nope, no access for you, better luck next time πŸ™ˆ

After the MAC address is read from EEPROM, you send the EEDONE signal to refuse EEPROM access by LAN. Like closing the door behind you, polite and iconic πŸŽ€

Now, real talk: the EEPROM map of SiS962 or SiS963 is different to SiS900. Not the same map, don't come for her 🌈 And the signature field in the SiS962 or SiS963 spec is meaningless β€” like, genuinely no information there, it's just decorative πŸ’€

Finally, the MAC address is read into net_dev->dev_addr. That's the destination, that's where it lands, periodt ✨


🌟 SEE ALSO 🌟

The kernel file ./drivers/net/ethernet/sis/sis900.c and this whole squad of friends πŸ‘―β€β™€οΈ

and that's the whole page bestie, you ate that 🫢✨

sign-off szn: this little number lives in ./drivers/net/ethernet/sis, and the version/date stamp on it is October 2026 β€” iconic, timeless, literally marking the calendar πŸ“…πŸ’œ

πŸ“¦ where this page comes from