diff options
author | joerg <joerg@FreeBSD.org> | 2010-02-01 21:21:10 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2010-02-01 21:21:10 +0000 |
commit | d67164f24c90020e7faa21f9a119342ba4c94eda (patch) | |
tree | d2b8cccc7e23ea72cbede5a0e58fb2d699312d6a /sys/dev/ieee488/pcii.c | |
parent | 8d6ed99eb05f2c34a558f53113a6c747f941be1a (diff) | |
download | FreeBSD-src-d67164f24c90020e7faa21f9a119342ba4c94eda.zip FreeBSD-src-d67164f24c90020e7faa21f9a119342ba4c94eda.tar.gz |
GPIB overhaul, part #2: make the tnt4882 driver work with the newer
TNT5004 IC. This involved a major rewrite of a number of things, as
this chip no longer supports the NAT7210 legacy mode but requires the
host to use the (more modern) FIFO mode.
In theory, this also ought to work on the older TNT4882C chip. I'll
probably add this as optional support (perhaps by a device.hints flag)
later on. By now, FIFO mode is *only* activates iff a TNT5004 chip
has been detected (where the old code didn't work at all), while
everything else is supposed to use the old code.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ieee488/pcii.c')
-rw-r--r-- | sys/dev/ieee488/pcii.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ieee488/pcii.c b/sys/dev/ieee488/pcii.c index 7e92432..3c5699e 100644 --- a/sys/dev/ieee488/pcii.c +++ b/sys/dev/ieee488/pcii.c @@ -238,6 +238,7 @@ pcii_attach(device_t dev) sc->upd7210.reg_offset[rid] = 0; } sc->upd7210.irq_clear_res = sc->res[10]; + sc->upd7210.use_fifo = 0; if (sc->res[1] == NULL) sc->upd7210.dmachan = -1; @@ -245,7 +246,9 @@ pcii_attach(device_t dev) sc->upd7210.dmachan = rman_get_start(sc->res[1]); upd7210attach(&sc->upd7210); - return (error); + device_printf(dev, "attached gpib%d\n", sc->upd7210.unit); + + return (0); } DRIVER_MODULE(pcii, isa, pcii_driver, pcii_devclass, 0, 0); |