#
3dbba2cf |
| 25-Oct-2022 |
riastradh <riastradh@NetBSD.org> |
linux/pci.h: Stubs for pci_request/release_region(s).
|
#
b19cdf75 |
| 17-Oct-2022 |
mrg <mrg@NetBSD.org> |
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() - pc
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
show more ...
|
#
d69eb2cc |
| 20-Sep-2022 |
mrg <mrg@NetBSD.org> |
fill out more of the linux pci API compat
- implement pcie_get_speed_cap(), pcie_bandwidth_available(), and pci_is_root_bus(). - expand "enum pci_bus_speed" to add PCIe 5.x and 6.x speeds. - add "
fill out more of the linux pci API compat
- implement pcie_get_speed_cap(), pcie_bandwidth_available(), and pci_is_root_bus(). - expand "enum pci_bus_speed" to add PCIe 5.x and 6.x speeds. - add "enum pcie_link_width". - add defines for PCIE_LCSR_LINKSPEED (PCIe generation) and PCIE_LCSR_NLW (negotiated lane width) to pcireg.h - enable amdgpu_device_get_pcie_info() code now it works.
ok riastradh@
show more ...
|
#
d77b1302 |
| 27-Feb-2022 |
riastradh <riastradh@NetBSD.org> |
linux: Define PCI_CLASS_DISPLAY_OTHER, wanted by radeon/amdgpu.
|
#
7f0c68b2 |
| 27-Feb-2022 |
riastradh <riastradh@NetBSD.org> |
drm: Omit needless conditionals around #include "acpica.h".
|
#
4f927c29 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
linux: PCI_BUS_NUM; tweak types for PCI_SLOT/PCI_FUNC.
|
#
e233a6e6 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
linux: pci_name
|
#
3b05a10c |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
i915: another whack at it
|
#
5ea47f5d |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
drm: Remove local diffs for drm_pci_set_busid.
Instead, move it to its own file that can be safely used without bringing in a link/run-time dependency on pci.
|
#
984c4045 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Move acpi includes to linux_pci.c to avoid pollution.
|
#
9ea3de94 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Provide enum pci_bus_speed
We don't really make use of it but why not.
Author: Maya Rashish <maya@NetBSD.org>
|
#
68aac0e1 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Stub dev_is_pci
Author: Maya Rashish <maya@NetBSD.org>
|
#
aba892b1 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Define pci_is_thunderbolt_attached (answer: no).
|
#
1a08e23f |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Side-load <linux/interrupt.h> in <linux/pci.h>.
|
#
34b84ded |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Define pci_get/set_drvdata properly.
|
#
4c14a7e2 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
pci_get_bus_and_slot -> pci_get_domain_bus_and_slot
|
#
ca1dbb91 |
| 19-Dec-2021 |
riastradh <riastradh@NetBSD.org> |
Define some obscure PCI ids.
|
#
1b077480 |
| 14-Feb-2020 |
maya <maya@NetBSD.org> |
Reduce diffs by side-loading some header files like Linux.
From riastradh
|
#
2d81a008 |
| 18-Jan-2020 |
jmcneill <jmcneill@NetBSD.org> |
Pull in acpica.h on aarch64
|
#
0cdaa721 |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Move the Linux PCI shim into its very own .c file.
The poor thing has deserved this for a very long time, even though it is full of kludges. Also I'm tired of recompiling everything every time I to
Move the Linux PCI shim into its very own .c file.
The poor thing has deserved this for a very long time, even though it is full of kludges. Also I'm tired of recompiling everything every time I touch it.
show more ...
|
#
b019eb3d |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Fix sense of test to make linux_pci_dev_destroy work.
|
#
cc12b2d1 |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Initialize more of struct pci_device.
|
#
66c4b24d |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Implement linux_pci_dev_destroy.
|
#
e80068e1 |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Pass the parent explicitly to linux_pci_dev_init.
This will allow us to use it in match routines.
|
#
59e77f93 |
| 27-Aug-2018 |
riastradh <riastradh@NetBSD.org> |
Free the bus crap.
|