]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Restore name=value format of PCI location strings.
authorjhb <jhb@FreeBSD.org>
Fri, 6 May 2016 23:46:35 +0000 (23:46 +0000)
committerjhb <jhb@FreeBSD.org>
Fri, 6 May 2016 23:46:35 +0000 (23:46 +0000)
commit2f6c86a8e7dbc2b4ec73522a0128b0fc665c3b51
tree2c1d345317e908389ac15b8198c08b5e4b47ffc9
parent4f457bceb76b121d1a553c9eb8e432ecccaa547a
Restore name=value format of PCI location strings.

When devctl was added, the location string for PCI devices was changed to
use the PCI "selector" that pciconf and devctl accept.  However, devd
assumes that location strings are formatted as a list of name=value pairs.
As a result, devd is no longer parsing any of the values out of PCI
device events.  Restore the previous format of the PCI location strings
to restore the location and slot keywords in case any devd scripts are
using this.  Add the "selector" as a new 'dbsf' location variable.

Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D6253
sys/dev/pci/pci.c