aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2009-11-26 15:16:03 +0000
committerAlexander Motin <mav@FreeBSD.org>2009-11-26 15:16:03 +0000
commitc68cd0c40d5ea35be16a0ccb4952349bc43a5a88 (patch)
tree25f1560afb34b925bea108a1a15f5b5677fc70f3 /sys/dev
parent4fb5bc425904efd6adb58e51c70a5fec68c149dd (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hptrr/hptrr_osm_bsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/hptrr/hptrr_osm_bsd.c b/sys/dev/hptrr/hptrr_osm_bsd.c
index eae952e12288..78c8b60fe2e1 100644
--- a/sys/dev/hptrr/hptrr_osm_bsd.c
+++ b/sys/dev/hptrr/hptrr_osm_bsd.c
@@ -34,6 +34,9 @@
#include <dev/hptrr/os_bsd.h>
#include <dev/hptrr/hptintf.h>
+static int attach_generic = 1;
+TUNABLE_INT("hw.hptrr.attach_generic", &attach_generic);
+
static int hpt_probe(device_t dev)
{
PCI_ID pci_id;
@@ -41,6 +44,9 @@ static int hpt_probe(device_t dev)
int i;
PHBA hba;
+ /* Some of supported chips are used not only by HPT. */
+ if (pci_get_vendor(dev) != 0x1103 && !attach_generic)
+ return (ENXIO);
for (him = him_list; him; him = him->next) {
for (i=0; him->get_supported_device_id(i, &pci_id); i++) {
if ((pci_get_vendor(dev) == pci_id.vid) &&