sis_old_set_piomode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sis_old_set_piomode(9) β€” like, the Kernel API Manual entry, bestie πŸŽ€

okay so picture this: you're deep in the kernel, the vibes are immaculate, and somebody gotta set up some PATA PIO timings on a host controller. that somebody is this function. welcome to the group chat ✨


✨ NAME ✨

sis_old_set_piomode β€” Initialize host controller PATA PIO timings. that's it, that's the whole job, and it eats every time πŸ’…


🌸 SYNOPSIS 🌸

void sis_old_set_piomode (struct ata_port *ap , struct ata_device *adev );

literally just two args, no return value, no drama. she's a void girlie 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ap β€” the port whose timings we're configuring, i.e. the main character of this whole operation πŸ‘‘
  • adev β€” the device we're configuring for. the one we're doing all this for, fr fr πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so what she does is: set the PIO mode for the device, in the host controller's PCI config space. yes, you heard me, PCI config space. that's her little home. 🏠✨

and bestie, she's not picky β€” this function handles PIO set up for all the chips that are pre ATA100, and the early ATA100 devices too. equal opportunity timing-setter, we love to see it 🌈

LOCKING: None (inherited from caller). no cap β€” she does not do her own locking, she inherits it from whoever called her. so whoever called her better have their life together, iykyk πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group, in ./drivers/ata/pata_sis.c in the Kernel file πŸ“:

fifteen of them. a whole squad. go say hi πŸ’œ


and that's the tea, bestie 🧚 this lil page came from the ./drivers/ata source, Kernel API Manual edition, dated October 2026 β€” mwah, love that for us πŸ’‹βœ¨

πŸ“¦ where this page comes from