summaryrefslogtreecommitdiff
path: root/sys/dev/ic
AgeCommit message (Collapse)Author
2004-12-11Invert the polarity of two tests in the recovery code that could causeKenneth R Westerback
the driver to issue a bus reset more quickly than intended. We want to wait if we find another SCB that could be the cause of this timeout, not proceed to a bus reset. This code is currently inside an #ifdef 0/#endif pair. From FreeBSD aic79xx.c r1.32.
2004-12-11Correct a very rare case where command ordering could be compromisedKenneth R Westerback
by a transaction performing a driver handled message sequence (an scb with the MK_MESSAGE flag set). Full details on changes in FreeBSD commit message. From FreeBSD aic79xx.c r1.30, using microcode generated from just committed new source. Tested in August by marco@.
2004-12-10Factor out repeated code into ahd_done_with_status().Kenneth R Westerback
From FreeBSD aic79xx.h r1.20 and aic79xx.c r1.30.
2004-12-10Include scsi id in debug message for queued SCB's.Kenneth R Westerback
From FreeBSD aic79xx_inline.h r1.16.
2004-12-08Defer reinitialisation of the RU until after the interrupt handler has hadChristopher Pascoe
a chance to process all pending packets, otherwise the chip may overwrite their mbuf clusters after we have freed them. Eliminates a race that can cause random pool corruption when reconfiguring an interface under heavy network load. ok brad@ mcbride@ beck@ deraadt@ dlg@
2004-12-02rev 1.126Brad Smith
Ignore CSR13, CSR14, CSR15 'Media Specific Data' registers for 21143 based cards which use SIA mode. This fixes 10mbit mode for ZNYX ZX346Q cards and other 21143 based cards. rev 1.108 Only use a SIA/SYM media info block if no MII block is detected. The submitter of PR 32118 told me that this patch also fixes autoselecting for znyx 4 port cards (10baseT, 100baseTX did work already). From FreeBSD ok deraadt@
2004-11-28rev 1.74Brad Smith
Fix if_timer logic to make sure that there is always a timeout pending if there are packets queued for transmission. From FreeBSD ok deraadt@
2004-11-24Long time not accurate anymore.Miod Vallat
2004-11-23replace old net/if_ieee80211.h header with the net80211 ones, kernel part.Federico G. Schwindt
millert@ mcbride@ jsg@
2004-11-23store number of supported gpio pinsReyk Floeter
2004-11-23support the gpio found on ath(4) devices.Reyk Floeter
ok grange@
2004-11-23More FreeBSD delta reduction. Use aic_* defines rather than ahd_* oneKenneth R Westerback
line and zero line functions. Fix a potential bug (ahd_set_transaction_status was used where ahd_set_scsi_status was intended) inside a currently #ifdef 0/#endif section of code. No functional changes intended except for a bit of extra locking via ahd_list_lock*. ok marco@.
2004-11-22ad1981 does not like init; from fgsch@Michael Shalayeff
2004-11-21revert part of rev 1.29 which caused a severe performance drop.Brad Smith
ok mcbride@
2004-11-21Fix theo's amd64Marco Peereboom
Fix vmware
2004-11-18a few more codecs from nbsdMichael Shalayeff
2004-11-18More NetBSD cruft removal/FreeBSD delta reduction. Whitespace, function and ↵Kenneth R Westerback
variable shuffle. No functional change.
2004-11-16if_dc.c rev 1.56Brad Smith
Do not call mii_pollstat() from within device tick routines; the status information is updated by mii_tick(). dcphy.c rev 1.13 Work around an Intel 21143 chip bug. Rev 1.56 of if_dc.c removed calls to mii_pollstat() from the dc_tick() routine. dc_tick() is called regularly to detect link up and link down status, especially when autonegotiating. The expectation was that mii_tick() (which is still called from dc_tick()) would update status information automatically in all cases where it would be sensible to do so. Unfortunately, with authentic 21143 chips this is not the case, and the driver never successfully autonegotiates. This is because (despite what it says in the 21143 manual) the chip always claims that link is not present while the autonegotiation enable bit is set. Autonegotation takes place and succeeds, but the driver tests the link bits before it switches off the autonegotiation enable bit, and success is not recognised. The simplest solution is to call dcphy_status() more often for MII_TICK calls by dropping out of the switch statement instead of exiting when we are autonegotiating and link appears to not be present. When autonegotiation succeeds, dcphy_status() will note the speed and fdx/hdx state and turn off the autonegotiation enable bit. The next call to dcphy_status() will notice that link is present, and the dc driver code will be notified. Macronix chips also use this code, but implement link detection as described in the manual, and hence don't need this patch. However, tests on a Macronix 98715AEC-C show that it does not adversely affect them. From FreeBSD ok deraadt@
2004-11-14More NetBSD cruft removal, starting with 'struct ahd_pci_busdata' andKenneth R Westerback
the fallout from that. Ensure pcireg_t variables are being used with pci_conf_read/write functions - found one uint16_t variable (pcix_status) being used to store and restore (32 bit) pcireg_t values. Some KNF. No functional changes.
2004-11-13Eliminate a structure member introduced via NetBSD, now superfluous.Kenneth R Westerback
2004-11-13Eliminate more cruft that crept in during FreeBSD -> NetBSD -> OpenBSDKenneth R Westerback
travels. Simplify create_dmamem/free_dmamem api.
2004-11-11some fixes for beeing compatible with gcc3 as noticed by some people.Reyk Floeter
thanks to Joerg Sonnenberger and Nathan Binkert.
2004-11-08use __packed instead of __attribute__ ((__packed__)) (ok miod@), checkReyk Floeter
possible NULL mac in the keycache function.
2004-11-07struct ucode.length should be in number of elements (u_int32_t), notDaniel Hartmeier
number of bytes. reported by Pyun YongHyeon, patch from mickey@, ok deraadt@
2004-11-06sync pci idsReyk Floeter
2004-11-04fix memory leak on deleting a screen; from janjaap@stack.nl via pr3977Michael Shalayeff
2004-11-03register typoReyk Floeter
2004-11-03oops missed to set devtype here rather than in sti_sgc.c:1.23Michael Shalayeff
2004-11-03knf, use positive error values (suggested by miod@)Reyk Floeter
2004-11-03Revert to 3.6-current code since IBM onboard mpt's act up. Found by pval & ↵Marco Peereboom
deraadt no cookie for me...
2004-11-02Remove __HAVE_NWSCONS and related remnants of pre-wscons days; no functionalMiod Vallat
change.
2004-11-02spacing, beautify dmesg outputReyk Floeter
2004-11-02removed some printfsReyk Floeter
2004-11-02import of a free hal part for the ath driver as a replacement for theReyk Floeter
binary-only hal module found in FreeBSD and NetBSD. OpenBSD's approach is based on reverse engineering because it is _not_ possible to include a non-free and binary-only piece of software in a 100% free operating system. it still lacks some features found in the "official" hal module but this will be done very soon with a help by a lot of contributors - because it's free. ok deraadt@
2004-11-02imported Sam Leffler's ath driver for atheros multimode wireless nicsReyk Floeter
from NetBSD and FreeBSD. ok deraadt@
2004-11-01back out previous commit.Brad Smith
2004-10-31don't swap zerosBrad Smith
2004-10-30Add missing manufacturing pages. Only the IO Unit pages are now missing but ↵Marco Peereboom
those are not relevant to RAID. Some cleanup.
2004-10-29rev 1.78Brad Smith
Enable the automatic TX underrun recovery for the ADMtek chips. This solves cvsup update on my laptop which aborts after a while without this patch. rev 1.79 Fix the support for the AN985/983 chips, which do not set the RXSTATE to STOPPED, but to WAIT. This should fix hangs which could only be solved by replugging the cable. From FreeBSD Thanks to C. Bensend <benny at bennyvision dot com> for testing.
2004-10-28add \n in 'invalid state' message; from Martin Reindl; ok miod@.Xavier Santolaria
2004-10-28Redo RAID volume pagesMarco Peereboom
Add RAID physical disk pages
2004-10-26Add RAID volume pageMarco Peereboom
Add more IOC pages Some cleanup
2004-10-24More freebsd delta reduction. Eliminate use of NetBSD scsipi definesKenneth R Westerback
in favour of OpenBSD ones where no FreeBSD equivalent exist. Backout random whitespace variances. Backout field name change, changeing physaddr back to original busaddr. Remove VL/EISA stuff mistakenly brought in from ahc. No change to generated code.
2004-10-24A missed ahd_htole16 -> aic_htole16 in an unused define.Kenneth R Westerback
2004-10-24Remove ahc/ahd NetBSD compatibility defines unused since we startedKenneth R Westerback
synching ahc/ahd directly with FreeBSD.
2004-10-24Missed file from previous aic diff.Kenneth R Westerback
2004-10-24Shuffle defines around so that ahc and ahd use the aic_ names thatKenneth R Westerback
come with the freebsd sources, rather than duplicating those names in the ahd_ and ahc_ namespaces. Big reduction in delta to freebsd sources, which reduces noise when updating the code. No .o differences found on i386. ok marco@.
2004-10-24Minimize delta to FreeBSD in preparation for bringing in updates.Kenneth R Westerback
Mostly using recently defined scsi_message.h defines, and new and existing aic7xxx_cam.h defines to eliminate magic numbers or name variations. A few whitespace revisions. If we aren't putting the code in KNF, no need to live with other whitespace modifications. ok marco@.
2004-10-23add missing braces, noticed by mcbride@Brad Smith
2004-10-23re-add old xl_encap_90xB() for 905B/C cards. removed in rev 1.52.Brad Smith
fixes reported mbuf leaks as well as transmit side breakage on macppc, PR 3892. ok mcbride@