ns87415_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ns87415_set_mode β€” initialize host controller mode timings ✨

Okay so bestie, this is ns87415_set_mode(9) from the Kernel API Manual β€” the function whose whole job is initializing host controller mode timings, and she is serving vintage-chip realness πŸ’…

✨ SYNOPSIS ✨

       void ns87415_set_mode (struct ata_port *ap , struct ata_device *adev ,
       u8 mode );

πŸŽ€ ARGUMENTS πŸŽ€

  • ap β€” port whose timings we're configuring, aka the struct ata_port * bestie in question 🫢
  • adev β€” device whose timings we're configuring, the struct ata_device * cutie πŸ’–
  • mode β€” the mode to set, a u8 and the main character of this call ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

So what's the tea? This function programs the mode registers for this controller, channel and device. That's literally the assignment. Because the chip is quite an old design, we have to do this for PIO/DMA switches β€” she's vintage, not obsolete, okay? πŸ’…

LOCKING: None (inherited from caller).

🌸 SEE ALSO 🌸

Kernel file ./drivers/ata/pata_ns87415.c β€” go read it, iykyk πŸ“–βœ¨

Sending kisses from the ./drivers/ata source corner β€” October 2026 edition β€” with ns87415_set_mode(9) energy. Periodt πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from