History log of /haiku/src/libs/compat/freebsd_network/pci.cpp
Revision Date Author Comments
# 629f071b 27-Feb-2024 X512 <danger_mail@list.ru>

pci: extend MSI interrupt vector number to 32 bits

Also increase MSI message data size to 32 bits according to PCIe spec.

Remove 0xff check for MSI interrupts because it is potentially valid
interrupt vector number. Reject 0xff only for legacy pin interrupts.

- MSI-X supports up to 2048 interrupts per device that do not fit to
`uint8`.

- Non-x86 systems may use separate interrupt vector ranges for
hard-wired interrupts and MSI interrupts so `uint8` is not enough to
represent all of them.

Change-Id: Iaf9ffb197ec23db0f97ffe3ea756d28d7bfc8705
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7433
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 2982f450 11-Apr-2023 Jérôme Duval <jerome.duval@gmail.com>

freebsd_network: drop PCI_x86

Change-Id: Ie185f63b56bc564b794e5900609fe9f0465de602
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6330
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>


# f43b88e8 19-May-2022 Augustin Cavalier <waddlesplash@gmail.com>

freebsd_network: Use Haiku's PCI capability finding functions.

Instead of reimplementing them in here, for which there is no need.


# 423ee7c6 24-Feb-2022 Augustin Cavalier <waddlesplash@gmail.com>

freebsd_network: Adjust and rewrite attach code for USB support.

init_hardware now takes 2 devices arrays: one for PCI and one for USB
drivers, respectively.

The few drivers that have their own __haiku_handle_fbsd_drivers_list
are also adjusted at the same time.


# a8523a21 24-Feb-2022 Augustin Cavalier <waddlesplash@gmail.com>

freebsd_network: PCI handling cleanup in preparation for USB support.

Should not have any functional change.


# 38d00b8d 18-Feb-2022 Augustin Cavalier <waddlesplash@gmail.com>

freebsd_network: Change powerstate during busmaster if necessary.

It seems FreeBSD does the same (and drivers used to do this individually
but have not for some time.)

May help with quite a number of initialization-failed WiFi/ethernet tickets.


# 462fb495 18-Feb-2022 Augustin Cavalier <waddlesplash@gmail.com>

freebsd_network: Clean up and break PCI methods out of bus.cpp.