summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2022-10-17 03:05:32 +0000
committermrg <mrg@NetBSD.org>2022-10-17 03:05:32 +0000
commitb19cdf75dd4309a7da0d9f7297b14ce8227834db (patch)
tree3f225d796563f6f066f7f478afa2b1d012cae5fe /sys/dev/microcode
parenta41f20b04823a9a5bdbb7cc950002739133f1757 (diff)
add pcie capability and read request size linux compat, some pci root support
implement support for: - pcie_capability_read_dword() - pcie_capability_read_word() - pcie_capability_write_dword() - pcie_capability_write_word() - pcie_get_readrq() - pcie_set_readrq() implement the "struct pci_dev" bus->self member by creating a minimal fake "struct pci_dev" for the pci bus itself. this is kind of gross. it checks that the current device's parent is a netbsd "pci" device, and that it has a (grand) parent "ppb" device, and then fills in the fake device based upon the pci and ppb devices. add some PCIE_LCSR2_TGT_LSPEED encodings, and map them to linux names. map several other PCIE_LCSR and PCIE_LCAP names. uncomment several pcie code segments in radeon and amdgpu. (not sure that we can test the amdgpu_si.c change, as we use the radeon version and the amdgpu version hangs on the one machine i have.) tested on amdgpu (RX550) and radeon (7750 & 3650). ok @riastradh
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions