summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2001-07-13Change references to inic-950 to inic-940/950 to reflect chipsKenneth R Westerback
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.
2001-07-13Remove static'ness of functions in line with normal OpenBSDKenneth R Westerback
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.
2001-07-12Rework of probe code. Try better to deal with floating buses. DependingConstantine Sapuntzakis
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.
2001-07-11Eliminate use of static functions in line with normal OpenBSDKenneth R Westerback
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.
2001-07-10Use offsetof() from sys/param.h, not a local define.Kenneth R Westerback
2001-07-09Minor code clean ups.Kenneth R Westerback
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.
2001-07-09Move IFQ_SET_READY macro to attach time.Federico G. Schwindt
2001-07-09Fix incorrect logic 'optimization' so that sync is negotiated even ifKenneth R Westerback
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.
2001-07-08Don't set up ifq_maxlen manually for drivers that uses IFQ_MAXLENFederico G. Schwindt
(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.
2001-07-08Fix thinko. Okay millert@Marc Espie
Uncovered by gcc 3.0, since the bad code does have unpredictable behavior.
2001-07-04Embedding newlines in strings is a bad idea, and prints out badly.Marc Espie
Okay millert@, like previous commit.
2001-07-04case labels without statements are not permitted by ANSI C... and gcc 3.0Marc Espie
warns about them.
2001-07-04$OpenBSD$Niklas Hallqvist
2001-07-04Use the right target when checking for out of bounds.Niklas Hallqvist
2001-07-04Use the right target when checking for out of bounds.Niklas Hallqvist
2001-07-02these don't depend on pci register defsJason Wright
2001-06-27ALTQ'ify network drivers.Kenjiro Cho
- 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).
2001-06-27recieve -> receiveNathan Binkert
2001-06-27zap old vmArtur Grabowski
2001-06-27Hold on to m0->m_pkthdr.len (just being pendantic)Angelos D. Keromytis
2001-06-27Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, dependingAngelos D. Keromytis
on how macros should be treated. Code by fgsch@, ok by me and itojun@
2001-06-27Pastos from the inceptionNiklas Hallqvist
2001-06-25Revert change to using sc_link in calls to siop_print_info().Kenneth R Westerback
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).
2001-06-25remove struct and contsts duplicated in between the files.Michael Shalayeff
make it work on powerpc. improve performance by using the bus_*_multi_* finctions instead of loops.
2001-06-25Fix this right this time. ugh.Dale Rahn
2001-06-25remove unused variable.Dale Rahn
Cleanup as suggested by millert@
2001-06-25Fix excessive resets and device probes by storing IDENTIFY results in theConstantine Sapuntzakis
drvp structure
2001-06-25Add the missing endian pieces to wavelan driver.Dale Rahn
ok, millert@
2001-06-25partial endianess fixesMichael Shalayeff
2001-06-24Spelling ifdef correctly is not enough, you have to spell the conditionnalMiod Vallat
correctly, too...
2001-06-24Remove an over-optimization from the polling loop of siop_scsicmd(),Kenneth R Westerback
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.
2001-06-24remove cold.Federico G. Schwindt
2001-06-24remove cold.Federico G. Schwindt
2001-06-24move extern int cold to .hFederico G. Schwindt
2001-06-24ether_input_mbuf().Federico G. Schwindt
2001-06-24Pass the device's scsi_link to siop_print_info(), instead of theKenneth R Westerback
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.
2001-06-24Add back stuff I removed in previous commit with a minor change.Federico G. Schwindt
2001-06-24damn, correctly spell ifdef.Federico G. Schwindt
2001-06-24OpenBSD tag.Federico G. Schwindt
2001-06-24better.Federico G. Schwindt
2001-06-23use ether_input_mbufMichael Shalayeff
2001-06-23ether_input_mbuf().Federico G. Schwindt
2001-06-23make use of ether_input_mbuf, easyMichael Shalayeff
2001-06-23ether_input_mbuf().Federico G. Schwindt
2001-06-23Use ether_input_mbuf instead.Federico G. Schwindt
2001-06-23More constants cleaning.Federico G. Schwindt
2001-06-23Remove repeated ethernet constants; use if_ether.h for it instead.Federico G. Schwindt
2001-06-20fix array filling; alaric@MIT.EDUTheo de Raadt
2001-06-17Set the delta for the particular source so telling mixerctl to decrease theMichael Shalayeff
volume (using --) adjusts it far enough to stick. from Eric Haszlakiewicz <erh@netbsd.org>
2001-06-16simplify; commiting at aazubel's place.Federico G. Schwindt