summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* clarify a comment slightlymjacob2006-12-091-1/+1
|
* Find another spot where tagged command queueing gotmjacob2006-12-091-2/+7
| | | | accidentally nuked.
* PH! Forgot to do my cross-compile check. Also now rearranged things somjacob2006-12-072-14/+17
| | | | the ENDIAN defines are consistent between mpt.h and mpt.c.
* MFP4: principally to reapply tagged command support to FC and SAS cards.mjacob2006-12-075-285/+389
|
* Add header files <sys/lock.h> and <sys/mutex.h> for mtx_init() and friends.kevlo2006-12-073-0/+6
| | | | Approved by: cognet
* Don't try to workaround broken apps (if any). If this still the case,ariff2006-12-071-16/+1
| | | | lets fix the broken apps instead.
* Remove comment that is no longer relevant since previousariff2006-12-071-7/+0
| | | | buffering fix.
* Fix compile with BCE_DEBUG. The last one tripped up gcc 2.95 on 4.x evenjhb2006-12-061-4/+4
| | | | with BCE_DEBUG turned off.
* Drop the iwi softc lock when calling back into net80211 on rx. This fixes amlaier2006-12-061-0/+3
| | | | | | | | LOR with direct dispatch in the netisr. Reported and tested by: Munehiro Matsuda Submitted by: jhb LOR id: 194
* Fix some edge cases in detach() as well as a memory leak if we fail tojhb2006-12-061-2/+8
| | | | | | | talk to the BMC. Reported by: Alexander Logvinov : ports at logvinov_com MFC after: 1 week
* Correct a signedness bug which allowed members of the operatorcperciva2006-12-061-1/+1
| | | | | | group to read kernel memory. Security: FreeBSD-SA-06:25.kmem
* Use our own callout instead of if_slowtimo() for driving lance_watchdog()marius2006-12-064-12/+25
| | | | in order to avoid races accessing if_timer.
* - Use the hme_tick() callout instead of if_slowtimo() for drivingmarius2006-12-062-17/+22
| | | | | | hme_watchdog() in order to avoid races accessing if_timer. - Use bus_get_dma_tag() so hme(4) works on platforms requiring it. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that.
* - Use the gem_tick() callout instead of if_slowtimo() for drivingmarius2006-12-062-22/+25
| | | | | | | | gem_watchdog() in order to avoid races accessing if_timer. While at it relax the watchdog a bit by reloading it in gem_tint() if there are still packets enqueued. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that. - Fix inconsistencies in prototypes.
* - Use our own callout (the dc_tick() callout uses varying periodsmarius2006-12-062-27/+35
| | | | | | | | | depending on the NIC and isn't used at all with HomePNA links) instead of if_slowtimo() for driving dc_watchdog() in order to avoid races accessing if_timer. - Use bus_get_dma_tag() so dc(4) works on platforms requiring it. - Don't bother to set if_mtu to ETHERMTU, ether_ifattach() does that. - Remove an alpha remnant in dc_softc.
* Fix an off by one error in struct nve_tx_desc's frags[] array as a resultjhb2006-12-051-1/+1
| | | | | | | | of the nvenet lib upgrade (the constant went from 63 (2^n - 1) to 32 (2^n)). For reasons that are not obvious to me this fixes the driver on at least some NICs. MFC after: 3 days
* Make ISPCTL_PLOGX find a handle to log into the management servermjacob2006-12-053-75/+88
| | | | | | with- not hope for the best. Change some things which were gated off of 24XX to be gated off of 2K login support. Convert some isp_prt calls to xpt_print calls.
* Add a chip timeout to ENABLE/MODIFY/DISABLE lun calls.mjacob2006-12-051-0/+1
| | | | MFC after: 1 month
* use xpt_print functionmjacob2006-12-051-3/+2
|
* const poisonimp2006-12-053-3/+3
| | | | submitted by: john wehle
* More properly cleanup the iicbus child when deleting it.imp2006-12-051-6/+27
| | | | | | | These are from patches by John Wehle, but the commentary has been updated by me. Obtained from: ports/multimedia/pvr250, indirectly
* Reference Hauppage's cxm_iic bit-bang device here.imp2006-12-051-0/+5
| | | | | | | | Add a note that suggests a cleanup. Note: This patch was derived based on looking at the pvrxxx/pvr250 ports' Makefiles only, and may be incomplete. It is not derived from anything I saw from Hauppage.
* - Add BGE_FLAG_JUMBO flag which idicates jumbo frame capability. Some day wejkim2006-12-042-22/+24
| | | | | may be able to support jumbo frames for BCM5714 and BCM5780. - Rename BGE_IS_5705_OR_BEYOND() to BGE_IS_5705_PLUS() for consistency.
* Use bge_flags to save chipset family and remove dead code while I am here.jkim2006-12-042-53/+43
|
* Fix my error in rev. 1.152glebius2006-12-041-1/+1
| | | | Submitted by: oleg
* Remove the HME_LOCK_ASSERT() in hme_mifinit(), which was added in themarius2006-12-041-1/+0
| | | | | previous revision; it's actually ok when invoking hme_mifinit() from hme_config() without the lock held.
* - In hme_stop() mask all interrupts.marius2006-12-041-45/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - In hme_eint() print MIF register contents on MIF interrupts. - In hme_mifinit() don't bother to preserve the previous MIF config. This was mainly done in order to preserve the PHY select bit (external or internal PHY) but which only needs to be set as appropriate when reading from or writing to the desired PHY in hme_mii_{read,write}reg(). Similarly don't bother to set the PHY select bit in hme_mii_statchg(). - In hme_mii_{read,write}reg() ignore requests to PHYs other than the external and internal PHY one. - Move enabling/disabling the MII drivers of the external transceiver from hme_init_locked() and based on the sheer presence of an external to hme_mifinit() and based on the currently selected media, defaulting to the internal transceiver when the media hasn't been set, yet. Invoke hme_mifinit() from the newly added hme_mediachange_locked() so the setting of the MII drivers is updated when changing media. These changes keep the MII bus from wedging (which manifests in the HME and the PHYs no longer being able to communicate with each other) when the PHY device drivers isolate the unused PHY in two-PHY configurations as present in f.e. Netra t1 100 while changing media, either from hme_init_locked() (see also below) or via ifconfig(8). They also allow for using both transceivers/PHYs. - In the newly added hme_mediachange_locked() also reset the PHYs in two- PHY configurations before invoking mii_mediachg(). This is required for successfully unisolating the previously unused PHY when switching between PHYs. - Now that changing media should no longer cause problems back out rev. 1.27 and re-enable setting the current media in hme_init_locked() (see the commit message of rev. 1.23 for more info). These changes are roughly a merge of NetBSD gem.c rev. 1.32 - 1.35 (1.30 was already fixed differently in our 1.36; 1.31 and 1.32 were wrong) with some parts reworked and things that don't make sense like setting the MII drivers and restoring the previous MIF and XIF settings in hme_mii_{read, write}reg() omitted. MFC after: 2 weeks
* Fix a massive couple of botches here: the NVRAM settingsmjacob2006-12-031-23/+15
| | | | | | | | | | | | | read wasn't flagging the SYNC mode was enabled. The temp values for offset and sync period were uint8_t, but were being assigned and shifted from a uint32_t value. This didn't show up in testing because a random number of 1030 cards set a bit that says "honor BIOS negotiation", which means this whole code path was skipped. This should clear up at least some of the negotation issues that have been seen.
* Fix XPT_GET_TRANSPORT_SETTINGS to zero validity and flags-mjacob2006-12-031-13/+24
| | | | | this was causing us to not negotiate sync at all, or at random.
* Forced commit: previous revision just correctly reflected thatmjacob2006-12-031-1/+0
| | | | the number of attached devices is 16 bits wide, not 8 bits wide.
* Fix a debug message which didn't quite get it right about data direction.mjacob2006-12-034-102/+163
| | | | | | Fix things to use the LSI-Logic Fusion Library mask and shift names for offset and sync, no matter how awkward they are, in preference to just plain numbers.
* - Probe Davicom DM9102 PHYs.marius2006-12-021-30/+8
| | | | | | | | | | | | | | - Don't set MIIF_NOISOLATE so amphy(4) can be used in configurations with multiple PHYs. There doesn't seem to be a problem with isolating AM79c873 and workalikes per se nor in combination with the NICs they're used with and amphy(4) was already adding IFM_NONE anyway. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). - Fix a whitespace nit. Obtained from: NetBSD dmphy(4) (except for the last item) MFC after: 2 weeks
* - In acphy_service() for the MII_TICK case don't bother to check whethermarius2006-12-021-30/+7
| | | | | | | | | | | | | | | | | | | the currently selected media is of type IFM_AUTO as auto-negotiation doesn't need to be kicked anyway. - Fix a whitespace nit. - Probe another Altima PHY, which is a AC101 workalike and integrated in at least ADMtek ADM8511 but apparently is not mentioned in any publically available data sheet so the actual identifier is unknown. - Don't set MIIF_NOISOLATE so acphy(4) can be used in configurations with multiple PHYs. There doesn't seem to be a problem with isolating AC101 and workalikes per se nor in combination with the NICs they're used with. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). Obtained from: NetBSD (except for the first and second item) MFC after: 2 weeks
* - Add another Altima PHY, which is a AC101 workalike and integratedmarius2006-12-021-1/+3
| | | | | | | | | | | in at least ADMtek ADM8511 but apparently is not mentioned in any publically available data sheet so the actual identifier is unknown. - Add Davicom DM9102 PHY. - Add DM9101 to the description of AMD 79C873 as at least some Davicom DM9101F identify identical to AMD 79C873. Obtained from: NetBSD MFC after: 2 weeks
* - Don't set MIIF_NOISOLATE so tdkphy(4) can be used in configurationsmarius2006-12-021-37/+9
| | | | | | | | | | | | | | | | | with multiple PHYs. There doesn't seem to be a problem with isolating 78Q2120 per se nor in combination with the NICs they're used with and tdkphy(4) was already adding IFM_NONE anyway. - Set MIIF_NOLOOP as loopback doesn't work with this PHY. The MIIF_NOLOOP flag currently triggers nothing but hopefully will be respected by mii_phy_setmedia() later on. - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). Thanks to Hans-Joerg Sirtl for lending me test hardware. Obtained from: NetBSD tqphy(4) MFC after: 2 weeks
* - Don't set MIIF_NOISOLATE so rgephy(4) can be used in configurationsmarius2006-12-021-13/+3
| | | | | | | | | | | with multiple PHYs and un-comment case IFM_NONE in case MII_MEDIACHG rgephy_service(). There doesn't seem to be a problem with isolating RTL8169S and their internal PHY. - Take advantage of mii_phy_add_media(). [1] Obtained from: NetBSD [1] Tested by: yongari MFC after: 2 weeks
* Some style changes to a couple of PHY drivers:marius2006-12-027-94/+53
| | | | | | | | | | | | | - Fix some whitespace nits. - Fix some spelling in comments. - Use MII_ANEGTICKS instead of 5. - Don't define variables in nested scope. - Remove superfluous returns at the end of void functions. - Remove unused static global rgephy_mii_model. - Remove dupe $Id$ in tdkphy(4). - Sort brgphys table. MFC after: 2 weeks
* Add support for Apple Intel/Mac.ariff2006-12-021-10/+48
| | | | | | | | | | - Playback and headphone/speaker automute works. - Recording untested due to me being deaf doing back-and-forth remote debugging. Free Macbook donation is highly appreciated :) Tested by: Dennis Pielken <mips128@gmx.net>
* Add a helper function mii_phy_dev_probe(), which wraps around themarius2006-12-0219-249/+135
| | | | | | | | | | | mii_phy_match() API and takes care of the PHY device probe based on the struct mii_phydesc array and the match return value provided. Convert PHY drivers to take advantage of mii_phy_dev_probe(), converting drivers to provide a mii_phydesc table in the first place where necessary. Reviewed by: yongari MFC after: 2 weeks
* ALTQify ep(4).mlaier2006-12-011-5/+7
| | | | | Tested and Requested by: Andy Brook MFC after: 3 days
* clarify shortcut returnsam2006-12-011-2/+2
| | | | | Submitted by: cognet, kevlo MFC after: 1 week
* Grammar nit.ru2006-12-011-1/+1
|
* Add inverted amplifier sense quirk for HP Compaq nx4300.ariff2006-12-011-0/+1
| | | | | | PR: kern/106104 Submitted by: Shun-ichi Kobayashi <koba@mbox.kudpc.kyoto-u.ac.jp> MFC after: 3 days
* Fix white spaces.jkim2006-12-011-1/+1
|
* Simplify statistics updates, remove redundant register reads, and addjkim2006-12-012-28/+19
| | | | | | | | discarded RX packets to input error for BCM5705 or newer chipset as the others. Unfortunately we cannot do the same for output errors because ifOutDiscards equivalent register does not exist. While I am here, replace misleading and wrong BGE_RX_STATS/BGE_TX_STATS with BGE_MAC_STATS. They were reversed but worked accidently.
* Fix the hardware VLAN tagging. TX was broken on little-endianru2006-11-301-2/+7
| | | | | | | | | | | | | | machines and both TX and RX were broken on big-endian machines. The chip design is crazy -- on RX, it puts the 16-bit VLAN tag in network byte order (big-endian) in the 32-bit little-endian register! Thanks to John Baldwin for helping me document this change! ;-) Tested by: sat (amd64), test program (sparc64) PR: kern/105054 MFC after: 3 days
* o ciss.ko depends on cam and pci.maxim2006-11-301-0/+2
| | | | | | PR: kern/105989 Submitted by: nork MFC after: 1 month
* - Instead of if_watchdog/if_timer interface use our own timerglebius2006-11-302-13/+19
| | | | that piggybacks on fxp_tick() callout.
* - Instead of if_watchdog/if_timer interface use our own timerglebius2006-11-302-24/+18
| | | | | that piggybacks on bge_tick() callout. - Lock bge_tick() using callout_init_mtx().
* Remove pre-5.3 compatibility ifdefs.brueffer2006-11-291-61/+0
| | | | | Approved by: rwatson (mentor) MFC after: 5 days
OpenPOWER on IntegriCloud