summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* Tag a last set of PCI network interfaces as IFF_NEEDSGIANT until theyrwatson2004-08-286-6/+12
| | | | are either locked down or demonstrated MPSAFE.
* Add support Corega CG-LAPCIGT Gigabit Ethernet(8169S)sanpei2004-08-281-0/+5
| | | | | | PR: [FreeBSD-users-jp 80667] Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp> MFC after: 1 week
* if_dc includes locking, but that locking is disabled by a #ifdefrwatson2004-08-251-1/+2
| | | | | | | | by default. As such, mark if_dc as IFF_NEEDSGIANT until such time as appropriate locking review and testing can take place, and the locking can be enabled by default. RELENG_5 candidate.
* Add support for Intel E7205 AGP.anholt2004-08-221-0/+6
| | | | | PR: kern/69858 Submitted by: Jacobo Arvelo <unix4all at gulic dot org>
* Fix aperture size detection on some ALi chipsets by only using the lowest 4 bitsanholt2004-08-211-4/+4
| | | | | | | | | to check aperture size, avoiding hangs. Maintain the rest of the bits when setting/unsetting ATTBASE. This essentially matches Linux's AGP driver as well. PR: kern/70037 Submitted by: Mark Tinguely <tinguely at casselton dot net> Obtained from: NetBSD
* Apply some stylistic changes based off of kern/70037 (content changes toanholt2004-08-211-10/+10
| | | | follow).
* fix LOR's in sk. Original patch from dwhite. This moves the memoryjmg2004-08-202-44/+56
| | | | | | | allocation earlier on in sk_attach so we don't have to lock until a bit later. PR: 69752
* put function's name at begining of column...jmg2004-08-201-1/+2
|
* add pci id for Belkin F5D5005 Gigabit ethernet card.jmg2004-08-202-0/+11
|
* Unconditionally support the AMD64 GART HW.obrien2004-08-193-15/+1
|
* AMD64 on-CPU GART support.obrien2004-08-165-1/+341
| | | | | | | This also applies to AMD64 HW running 'i386' OS. Submitted by: Jung-uk Kim <jkim@niksun.com> Integration by: obrien
* style.9.obrien2004-08-161-12/+8
|
* - Make OF_getetheraddr() honour the "local-mac-address?" system configmarius2004-08-141-1/+1
| | | | | | | | | | | | | | | variable. If set to "true" OF_getetheraddr() will now return the unique MAC address stored in the "local-mac-address" property of the device's OFW node if present and the host address/system default MAC address if the node doesn't doesn't have such a property. If set to "false" the host address will be returned for all devices like before this change. This brings the behaviour of device drivers for NICs with OFW support/ FCode, i.e. dc(4) for on-board DM9102A on Sun machines, gem(4) and hme(4), regarding "local-mac-address?" in line with NetBSD and Solaris. The man pages of the respective drivers will be updated separately to reflect this change. - Remove OF_getetheraddr2() which was used as a stopgap in dc(4). Its functionality is now part of OF_getetheraddr().
* Since the if_de driver doesn't contain locking, mark it asrwatson2004-08-131-1/+1
| | | | | IFF_NEEDSGIANT so that ifp->if_start won't be called without Giant when running debug.mpsafenet=1.
* Revert rev 1.93 and replace it by grabbing the vr lock before callingscottl2004-08-111-2/+2
| | | | | | mii_pollstat(). The previous was causing the vr lock to recurse. PR: kern/70189
* Minimal fix to prevent crashes when an AGP v2 card is used with the new v3 VIAanholt2004-08-092-1/+12
| | | | | | | | | | | | | chipsets, based on Linux's via-agp.c. On boot, the system selects which AGP version to use based on the inserted card. If v2 was chosen, the chipset needs to be programmed with the v2 registers still. Also included in kern/69953 are changes to make the programming of the v3 registers match linux, but that will be left out until the need to do so is confirmed (want specs or a tester). PR: kern/69953 Submitted by: Oleg Sharoiko <os@rsu.ru> Tested by: Oleg Sharoiko <os@rsu.ru>, Geoff Speicher <geoff@speicher.org> (full version from PR)
* Fix rl(4)'s lock behavior upon deinitialization. I would get a panicgreen2004-08-091-5/+6
| | | | when kldunloading due to its private locking being acquired recursively.
* Acquire vr lock before entering vr_setcfg() in vr_miibus_statchg(),rwatson2004-08-071-0/+2
| | | | | | since vr_setcfg() expects it. Reported by: Mike Bristow <mike@urgle.com>
* Do not attempt to clean up data that has not been initialized yet.roam2004-08-061-2/+4
| | | | | | | This fixes two kernel panics on boot when the xl driver fails to allocate bus/port/memory resources. Reviewed by: silence on -net
* Unbreak DEVICE_POLLING build / LINT. Sorry!mlaier2004-08-021-1/+1
| | | | Submitted by: roam
* Second part of ALTQ driver modifications, covering:mlaier2004-08-011-5/+7
| | | | | | | | | | an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4) Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/ Tested by: Vaidas Damosevicius (an, ath, wi) Roman Divacky (vr) Submitted by: yongari (hme)
* Update for the KDB framework:marcel2004-07-101-1/+2
| | | | o Call kdb_enter() instead of Debugger().
* Further improve locking in xl(4):bms2004-07-091-21/+34
| | | | | | | | | | | | | | - Avoid an additional lock acquire/release when leaving xl_intr(), by changing xl_start*() to xl_start*_locked(), and calling the appropriate routine by chip revision (as the DMA descriptors are different). - Simplify the appropriate routines now that they are called with the lock held. This should save a significant amount of CPU cycles spent on servicing each interrupt for both UP and SMP whilst remaining MPSAFE. Tested by: rwatson
* Apply the long-overdue hatchet of style(9) death to this file.bms2004-07-091-458/+547
|
* Further locking improvements for vr(4):bms2004-07-091-46/+69
| | | | | | | | | | | | - Add *_locked() entry points as needed to avoid unnecessary lock thrashing. - Use these entry points wisely. - Only acquire the lock once when servicing an interrupt. - Check 'suspended' on interrupt to avoid racing detach. - Correct a mis-spelled comment. - Don't take the lock in vr_reset() to avoid lock thrashing in attach. - Comment this. Reviewed by: -net (silence)
* Add a 'suspended' flag to softc so that we can avoid races on detach.bms2004-07-091-0/+1
|
* Actually turn on driver locking in xl(4).bms2004-07-091-10/+0
|
* Further rl(4) locking improvements:bms2004-07-091-48/+71
| | | | | | | | | | | - Avoid unnecessary re-acquisition elsewhere by adding *_locked() entry points as needed. - Correct locking for the DEVICE_POLLING case. - Hold the driver lock for the entire duration of interrupt servicing, to avoid unneeded, expensive re-acquisition; use *_locked() entry points as needed. Reviewed by: -net (silence)
* Whitespace nitbms2004-07-051-1/+1
|
* Eliminate redundant return keywords.bms2004-07-051-29/+0
|
* Whitespace pass.bms2004-07-051-40/+39
|
* style(9):bms2004-07-051-75/+75
| | | | | - Space before bracketized non-void function returns. - Space before condition for conditional blocks.
* Eliminate redundant return keywords.bms2004-07-051-48/+0
|
* Whitespace nitsbms2004-07-052-29/+29
|
* style(9) pass on prototypes.bms2004-07-051-21/+27
|
* Locking cleanup for rl(4).bms2004-07-051-52/+60
| | | | | | | | | | | | | - Eliminate the use of a recursive mutex. - Mark the driver INTR_MPSAFE. This work is incomplete and will be refined in a future commit. - Most notably, _locked() variants of entry points need to be introduced. - The mii upcall/downcall may still be racy. - Add a stubbed-out guard against racing rl_detach() for the time being. Tested on: UP, debug.mpsafenet && !debug.mpsafenet Reviewed by: silence on -net
* style(9) and whitespace cleanup.bms2004-07-052-390/+238
| | | | | | | | Use C99 types. Use ANSI function definitions. Sort prototypes. Split long lines correctly. Punctuate/wordsmith comments. Use device_printf()/if_printf() where possible. Reviewed by: -net (silence)
* Reintroduce and clean up locking in xl(4).bms2004-07-051-88/+178
| | | | | | | | | | | | | | - Eliminate the use of a recursive mutex. - Mark the driver as INTR_MPSAFE. - Split the default media choice code out into xl_choose_media() to avoid making poor assumptions about the state of the lock during attach. - The miibus upcall/downcall paths may still be racy. Change to commented-out locking assertions there for now. - Tested with nfsclient, routed, ssh, ntp, dhclient and quagga bgpd. - This needs SMP test coverage. I do not have such resources. Tested on: UP, !debug.mpsafenet && debug.mpsafenet Hardware: 3C905B-TX (0x905510b7)
* Use if_printf() and device_printf() where appropriate, i.e.:bms2004-07-051-88/+92
| | | | | | | - Use device_printf() during device probe/attach. - Move if_xname initialization to before xl_reset() is called. - Use if_printf() at all other times after struct ifnet has been initialized.
* ANSIfy function definitions.bms2004-07-041-259/+99
| | | | | Remove unnecessary return keywords. Other minor stylistic changes.
* Fix whitespace, indentation, long line wrapping and comments.bms2004-07-041-126/+122
|
* Fix whitespace and comments.bms2004-07-041-20/+25
|
* Consistently use __inline instead of __inline__ as the former is an empty macrostefanf2004-07-042-3/+3
| | | | in <sys/cdefs.h> for compilers without support for inline.
* SMPng locking cleanup for vr(4).bms2004-07-031-66/+58
| | | | | | | | | | | | | | | - Remove recursive locking situations. Remove the MTX_RECURSE bit. - Take the lock for any routine which is not called from within if_vr.c itself; this includes entry points called by newbus, ifnet, callout, ifmedia, and polling subsystems. - Remove spl references from the code added to miibus callbacks in rev 1.60. - Add the INTR_MPSAFE bit. - Tidy up some assignments; locks are not needed for taking the address of something at a known offset, for example. - Tested on the machine this was committed from. Tested on: UP only, !debug.mpsafenet && debug.mpsafenet Reviewed by: rwatson
* - Another whitespace pass; make locking calls more obvious.bms2004-07-031-12/+10
| | | | - Use C99 types for vr_miibus_readreg().
* style(9) compliance.bms2004-07-021-276/+164
| | | | | | | | | Put some braces around the busy-wait loop in vr_rxeoc() to make the no-op semicolon more obvious. No functional changes. Running on the machine I am committing from without problems. Reviewed by: jmallett
* Bring in the first chunk of altq driver modifications. This covers themlaier2004-07-024-26/+37
| | | | | | | | | | | following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4), sis(4) and xl(4) More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take a look and tell me if "your" driver is missing, so I can fix this. Tested-by: many No-objection: -current, -net
* Add support for the VIA Apollo KT400/400A/600 AGP host bridges which usejhb2004-07-021-0/+3
| | | | | | | the VIA v3 register offsets. PR: 68545 Submitted by: Ariff Abdullah <skywizard@mybsd.org.my>
* Remove saved_* from dc_softc. They are now no longer needed.imp2004-06-291-5/+0
| | | | Submitted by: Marius Strobl
* Remove burn bridges code that saved/restored the pci config registersimp2004-06-2811-338/+3
| | | | | that are now handled in the pci bus layer. They are no longer necessary.
OpenPOWER on IntegriCloud