freebsd-dev/sys/dev/vmd
Doug Ambrisko 0c852bb9b9 Add support for some more Intel VMD controllers. Some of the
newer controller have a sparce bus space that can be figured
out by probing the HW.  This gives the starting bus number.
When reading the PCI config. space behind the VMD controller,
the offset of the starting bus needs to be subtracted from
the bus being read.

Fixed a bug in which in which not all of the devices
directly attached to the VMD controller would be probed.
On my initial test HW, a switch was found at bus 0, slot 0
and function 0.  All of the NVME drives were behind that
switch.  Now scan for all slots and functions attached to
bus 0.  If a something was found then run attach after the
scan.  On detach also go through all slots and functions
on bus 0.

Tested with device ID's: 0x201d & 0x9a0b

Tested by:	nc@
MFC after:	7 days
PR:		252253
2021-01-28 15:12:14 -08:00
..
vmd_bus.c Add support for some more Intel VMD controllers. Some of the 2021-01-28 15:12:14 -08:00
vmd.c Add support for some more Intel VMD controllers. Some of the 2021-01-28 15:12:14 -08:00
vmd.h Add support for some more Intel VMD controllers. Some of the 2021-01-28 15:12:14 -08:00