hpt3x2n_init_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hpt3x2n_init_one(9) πŸ’–

okay so real talk bestie, we're in the Kernel API Manual, section 9 (kernel functions, iykyk), and today's main character is hpt3x2n_init_one. she's out here bringing HPT37X/302 chips to life and honestly? she ate. ✨


🌸 NAME 🌸

hpt3x2n_init_one β€” literally just: Initialise an HPT37X/302. that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int hpt3x2n_init_one (struct pci_dev *dev , const struct pci_device_id
       *id );

πŸ’œ ARGUMENTS πŸ’œ

  • dev β€” the PCI device. the little guy we're setting up 🫢
  • id β€” Entry in match table. the receipt that says "yes this is the one" πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

So we're initialising an HPT3x2n device, and ngl there are some interesting complications here. Not me warning you, just facts:

  • Firstly, the chip may report 366 and be one of several variants. she's mysterious. she contains multitudes. 😭
  • Secondly, all the timings depend on the clock for the chip, which we must detect and look up. no clock, no timings, no vibes. ⭐

This is the known chip mappings. It may be missing a couple of later releases β€” so like, don't come for her if your chip isn't on the list, she said may πŸ’€

Chip version    PCI             Rev     Notes
HPT372          4 (HPT366)      5       Other driver
HPT372N         4 (HPT366)      6       UDMA133
HPT372          5 (HPT372)      1       Other driver
HPT372N         5 (HPT372)      2       UDMA133
HPT302          6 (HPT302)      *       Other driver
HPT302N         6 (HPT302)      > 1     UDMA133
HPT371          7 (HPT371)      *       Other driver
HPT371N         7 (HPT371)      > 1     UDMA133
HPT374          8 (HPT374)      *       Other driver
HPT372N         9 (HPT372N)     *       UDMA133
(1) UDMA133 support depends on the bus clock. periodt. if the bus clock says no, UDMA133 says no too. this is important bestie, don't skip it 🚨

🌈 SEE ALSO 🌈

Kernel file ./drivers/ata/pata_hpt3x2n.c β€” go read the source, it's giving main character energy πŸ‘‘


πŸŽ€ ok that's the whole page, you understood it, I'm so proud of you, mwah πŸ’–

this lil drop came straight out of ./drivers/ata and it's dated October 2026 β€” so screenshot it, cite it, love it. bye bestie, go initialise something πŸ¦‹βœ¨

πŸ“¦ where this page comes from