FrameworkComputer / framework-system

Rust libraries and tools to interact with the Framework Computer systems
BSD 3-Clause "New" or "Revised" License
106 stars 6 forks source link

Decode additional Frameowork16 and AMD related memmap items #39

Open JohnAZoidberg opened 1 month ago

JohnAZoidberg commented 1 month ago

TODO:

Example:

cargo build && sudo ./target/debug/framework_tool --driver portio --expansion-bay
AMD
  Power Slider:     DC, Battery Saver (0b0001000)
  STT Table:        7
  CBP:              true ([0, 0])
  DTT Temp:         [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Expansion Bay
  Serial Struct:    [0, 0, 0, 0]
  PD Version:       [0, 0, 0, 0]
  GPU CTRL:         0x8
    MUX Status:     GPU
    Board Status:   Present
    PCIe Config:    8x1
  Display On:       false
  GPU Type:         AMD R23M (2)

Reference data:

Fan Module
  Serial Struct:    [0, 0, 0, 0]
  Batt Manuf        2023-22-7
  PD Version:       [0, 0, 0, 0]
  GPU CTRL:         0x0
  Power Slider:     AC, Best Power Efficiency (0b1000000)
  Display On:       false
  STT Table:        13
  CBP:              true ([0, 0])
  GPU Type:         Initializing (0)
  DTT Temp:         [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

dGPU Module
  Serial Struct:    [0, 0, 0, 0]
  Batt Manuf        2023-7-22
  PD Version:       [0, 0, 0, 0]
  GPU CTRL:         0x8
  Power Slider:     DC, Battery Saver (0b0001000)
  Display On:       false
  STT Table:        7
  CBP:              true ([0, 0])
  GPU Type:         AMD R23M (2)
  DTT Temp:         [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]