kib 3065523b3b Add an ioapic_get_rid() function to obtain PCIe TLP requester-id for
the interrupt messages from given IOAPIC, if the IOAPIC can be
enumerated on PCI bus.

If IOAPIC has PCI binding, match the PCI device against MADT
enumerated IOAPIC.  Match is done first by registers window physical
address, then by IOAPIC ID as read from the APIC ID register.

PCI bsf address of the matched PCI device is the rid.

Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
Hardware provided by:	Intel
MFC after:	2 weeks
X-Differential revision:	https://reviews.freebsd.org/D12205
2017-09-08 19:39:20 +00:00
..
2017-09-07 15:46:44 +00:00
2017-05-23 09:29:05 +00:00
2017-09-07 07:24:22 +00:00
2017-09-06 20:32:49 +00:00
2017-09-05 07:46:45 +00:00
2017-08-16 22:54:35 +00:00
2017-08-28 21:04:56 +00:00
2017-07-09 13:53:32 +00:00
2017-09-01 17:03:48 +00:00
2017-05-23 09:29:05 +00:00
2017-09-07 19:15:31 +00:00
2017-09-01 17:03:48 +00:00
2017-09-01 17:03:48 +00:00
2017-06-08 21:30:34 +00:00
2017-09-01 17:03:48 +00:00
2017-09-06 20:32:49 +00:00
2017-05-09 05:08:47 +00:00
2017-09-07 21:43:39 +00:00