diff options
author | markm <markm@FreeBSD.org> | 2001-03-01 17:09:09 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-03-01 17:09:09 +0000 |
commit | 36b9aabb472f862e3e5719891d140e7c7ce6c69f (patch) | |
tree | 3cdbc14d8bfea52310bf35ca4377f9292f0d8657 /sys/dev/dpt | |
parent | 10e65c206e151ea487810e10f4c04c8d94dc79d0 (diff) | |
download | FreeBSD-src-36b9aabb472f862e3e5719891d140e7c7ce6c69f.zip FreeBSD-src-36b9aabb472f862e3e5719891d140e7c7ce6c69f.tar.gz |
Turn on interrupt-entropy harvesting for all/any mass storage devices
I could find. I have no doubt missed a couple.
Interrupt entropy harvesting is still conditional on the
kern.random.sys.harvest_interrupt sysctl.
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r-- | sys/dev/dpt/dpt_eisa.c | 3 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_isa.c | 3 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_pci.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/dpt/dpt_eisa.c b/sys/dev/dpt/dpt_eisa.c index 7dae870..bdb53e7 100644 --- a/sys/dev/dpt/dpt_eisa.c +++ b/sys/dev/dpt/dpt_eisa.c @@ -161,7 +161,8 @@ dpt_eisa_attach (device_t dev) splx(s); - if (bus_setup_intr(dev, irq, INTR_TYPE_CAM, dpt_intr, dpt, &ih)) { + if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_ENTROPY, dpt_intr, + dpt, &ih)) { device_printf(dev, "Unable to register interrupt handler\n"); error = ENXIO; goto bad; diff --git a/sys/dev/dpt/dpt_isa.c b/sys/dev/dpt/dpt_isa.c index bb34534..dad354a 100644 --- a/sys/dev/dpt/dpt_isa.c +++ b/sys/dev/dpt/dpt_isa.c @@ -146,7 +146,8 @@ dpt_isa_attach (device_t dev) splx(s); - if (bus_setup_intr(dev, irq, INTR_TYPE_CAM, dpt_intr, dpt, &ih)) { + if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_ENTROPY, dpt_intr, + dpt, &ih)) { device_printf(dev, "Unable to register interrupt handler\n"); error = ENXIO; goto bad; diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index b68cfce..1077437 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -166,7 +166,8 @@ dpt_pci_attach (device_t dev) splx(s); - if (bus_setup_intr(dev, irq, INTR_TYPE_CAM, dpt_intr, dpt, &ih)) { + if (bus_setup_intr(dev, irq, INTR_TYPE_CAM | INTR_ENTROPY, dpt_intr, + dpt, &ih)) { device_printf(dev, "Unable to register interrupt handler\n"); error = ENXIO; goto bad; |