diff options
author | scottl <scottl@FreeBSD.org> | 2003-04-25 05:37:04 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2003-04-25 05:37:04 +0000 |
commit | 081b5fb1f664e9b2dc22d1563f6525753c16469a (patch) | |
tree | 2952e376ce4fc56f88e56d3f9db64fa1c8961d57 /sys/dev/iir/iir_pci.c | |
parent | 71f3be54cc12a1c9e53cbfdca4d66f54cbcf7930 (diff) | |
download | FreeBSD-src-081b5fb1f664e9b2dc22d1563f6525753c16469a.zip FreeBSD-src-081b5fb1f664e9b2dc22d1563f6525753c16469a.tar.gz |
Import latest changes from the vendor. This also is reported to fix the
driver at long last!
Many thanks to vaidas.damosevicius@if.lt for keeping this issue alive
and pursuing Intel for a fix, Intel/ICP for working on the driver, and
Sergey Osokin for bringing the original patches up to 5-CURRENT.
Diffstat (limited to 'sys/dev/iir/iir_pci.c')
-rw-r--r-- | sys/dev/iir/iir_pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iir/iir_pci.c b/sys/dev/iir/iir_pci.c index 581b263..a9ed75c 100644 --- a/sys/dev/iir/iir_pci.c +++ b/sys/dev/iir/iir_pci.c @@ -213,6 +213,7 @@ iir_pci_attach(device_t dev) gdt->sc_hanum = device_get_unit(dev); gdt->sc_bus = pci_get_bus(dev); gdt->sc_slot = pci_get_slot(dev); + gdt->sc_vendor = pci_get_vendor(dev); gdt->sc_device = pci_get_device(dev); gdt->sc_subdevice = pci_get_subdevice(dev); gdt->sc_class = GDT_MPR; @@ -263,7 +264,7 @@ iir_pci_attach(device_t dev) DELAY(1); } - protocol = (u_int8_t)letoh32(bus_space_read_4(gdt->sc_dpmemt, gdt->sc_dpmemh, + protocol = (uint8_t)le32toh(bus_space_read_4(gdt->sc_dpmemt, gdt->sc_dpmemh, GDT_MPR_IC + GDT_S_INFO)); bus_space_write_1(gdt->sc_dpmemt, gdt->sc_dpmemh, GDT_MPR_IC + GDT_S_STATUS, 0); |