Age | Commit message (Collapse) | Author |
|
actually supported.
Update copyright to include 2001.
Fold iha_se2_rd_all() into iha_read_eeprom(), eliminating magic number
31 at the same time, calculating correct offset of checksum at run
time instead.
Eliminate static global variable iha_nvram in favour of dynamic
variable in iha_init_tulip(), which is only place it is used.
Rectify a few typos in comments.
|
|
preferences.
Rename tul_* functions/variables iha_* for consistancy, since all are
now visible.
As updating the EEPROM did not work, don't try. Remove now unused
static dftNvram variable, and functions used only in trying to write
it to EEPROM.
Make iha_rate_tbl a const.
|
|
on the value floating on the bus, we would occasionally skip the register
writability tests. Whoops...
Move fix for a flash device that doesn't wake up until a command is sent
Try to supress spurious interrupts. However, if one does happen, acknowledge
it anyway by reading status. This prevents the interrupt condition from
persisting.
|
|
preferences. Having more debugging info available during
fixup of this driver to work on powerpc can't hurt either!
Change adwminphys() to adw_minphys() to make consistant with all
other function names in adw.c.
|
|
|
|
Rename some functions for better consistancy/clarity, e.g.
tul_wdtr_done -> tul_wide_done
tul_msgout_wide -> tul_msgout_wdtr
Consolidate extended message generation into new function
tul_msgout_extended() by using HCS_Msg[] array, replacing
several repetitive bus_write_*() code sections.
A couple of minor code clarifications to eliminate extra
return statements and make absolutely sure HCS_ActScb is
NULL during a reselect.
|
|
|
|
wide is not.
Now my CD drives on the narrow channel of the INI-9100UW negotiate to
the same configuration they do on other cards.
|
|
(or ifqmaxlen); it's done in if_attach() now.
No future drivers needs to set up this anymore unless they want to
use something else.
|
|
Uncovered by gcc 3.0, since the bad code does have unpredictable behavior.
|
|
Okay millert@, like previous commit.
|
|
warns about them.
|
|
|
|
|
|
|
|
|
|
- use the new queue macros.
- use IFQ_POLL() to peek at the next packet.
- use IFQ_IS_EMPTY() for empty check.
- drivers should always check if (m == NULL) after IFQ_DEQUEUE(),
since it could return NULL even when IFQ_IS_EMPTY() is FALSE
under rate-limiting.
- drivers are supposed to call if_start from tx complete interrupts
(in order to trigger the next dequeue under rate-limiting).
|
|
|
|
|
|
|
|
on how macros should be treated. Code by fgsch@, ok by me and itojun@
|
|
|
|
sc_link->device_softc not necessarily available for devices like cd's
that don't issue SCSI commands after INQUIRY during probe, leaving
negotiation triggering to next LUN. Spotted by Nikolay Sturm.
Fixing this is not worth the effort and added complexity for a
cosmetic improvement.
Keep code cleanups done at the same time, and add a typo fix
(destiation -> destination).
|
|
make it work on powerpc.
improve performance by using the bus_*_multi_* finctions instead of loops.
|
|
|
|
Cleanup as suggested by millert@
|
|
drvp structure
|
|
ok, millert@
|
|
|
|
correctly, too...
|
|
i.e. calling siop_print_info() immediately for async devices.
With the change to use xs->sc_link as parameter to siop_print_info()
this immediate call wouldn't work as the sc_link is not initialized
until AFTER the return from processing the INQUIRY command.
So, just use the default negotiation logic which is triggered by the
next command to be handled.
|
|
|
|
|
|
|
|
|
|
adapter's siop_softc. This allows easy access to the dv_xname of the
device whose negotiation results are being reported. This makes boot
probe and subsequent log messages clearer.
e.g. message will now read
sd0: negotiated tagged 16 bit 20 MHz 16 REQ/ACK offset xfers
instead of
siop0: target 0 now using tagged 16 bit 20 MHz 16 REQ/ACK offset xfers
Clean up siop_print_info() a bit as long as we are there.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
volume (using --) adjusts it far enough to stick.
from Eric Haszlakiewicz <erh@netbsd.org>
|
|
|