Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132938137
D33915.id103466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D33915.id103466.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -211,6 +211,7 @@
struct device_driver driver;
const struct pci_error_handlers *err_handler;
bool isdrm;
+ int bsd_probe_return;
int (*bsd_iov_init)(device_t dev, uint16_t num_vfs,
const nvlist_t *pf_config);
void (*bsd_iov_uninit)(device_t dev);
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -361,7 +361,12 @@
if (device_get_driver(dev) != &pdrv->bsddriver)
return (ENXIO);
device_set_desc(dev, pdrv->name);
- return (BUS_PROBE_DEFAULT);
+
+ /* Assume BSS initialized (should never return BUS_PROBE_SPECIFIC). */
+ if (pdrv->bsd_probe_return == 0)
+ return (BUS_PROBE_DEFAULT);
+ else
+ return (pdrv->bsd_probe_return);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 22, 8:15 AM (2 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24050180
Default Alt Text
D33915.id103466.diff (1 KB)
Attached To
Mode
D33915: LinuxKPI: allow a driver to override the default pci probe result
Attached
Detach File
Event Timeline
Log In to Comment