oxidecomputer / amd-apcb

AMD Generic Encapsulated Software Architecture Platform Security Processor Configuration Block manipulation library
Mozilla Public License 2.0
14 stars 2 forks source link

Memory structs could use slight cleanup #124

Open daym opened 6 months ago

daym commented 6 months ago

We aren't using SODIMMs so I punted on them for the time being. That would be EntryId::Memory(PsSodimmDdr4MaxFreq) and does or does not also use the same struct MaxFreqElement as we already have.

Ddr5CaPinMapElementLane could use some special pin type that marks 0xff as "unused".

I've had some Option0xff<T> user-visible type before and it really wasn't nice to use.

I wonder whether we can have some official special Option where we can choose the representation of the None value.