summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement the fix in rev. 1.126.ru2005-01-101-5/+8
| | | | OK'ed by: phk
* correct direction for bus_dma sync of rx buffersam2005-01-091-1/+1
| | | | Submitted by: Tai-hwa Liang
* Revert local experiment which leaked into commit.phk2005-01-071-1/+1
|
* Fix compilation of DEVICE_POLLING code.phk2005-01-072-6/+6
|
* Fix typos from previous commit.scottl2005-01-072-0/+2
|
* /* -> /*- for license, minor formatting changesimp2005-01-0731-37/+39
|
* We no longer recurse the mutex.phk2005-01-071-1/+1
|
* If we get an interrupt and the interface is down, return before wephk2005-01-072-9/+5
| | | | | grab the lock. This should help a tiny bit on machines where unused if_sis interfaces share IRQ.
* Don't tweak DSP on the ..16 chips.phk2005-01-061-1/+1
|
* Fix for an issue with excessive collisions in half duplex mode.phk2005-01-061-0/+8
|
* Nail the short cable problem the exact way National says it should be.phk2005-01-061-19/+14
|
* Simplify and fix bugs in rx/tx ring cleanup.phk2005-01-061-24/+21
|
* Rewrite the rx/tx ring initialization to use pointers instead of arrays.phk2005-01-061-45/+34
|
* Eliminate a bunch of unnecessary prototypes.phk2005-01-061-54/+12
|
* Move the module related stuff to the bottom of the file. This willphk2005-01-061-30/+30
| | | | allow us to save prototypes.
* Make sure to clear any pending interrupts when we stop the interface.phk2005-01-061-0/+1
|
* Close a theoretical race: By the time the watchdog comes aroundphk2005-01-061-1/+5
| | | | the interface may have been stopped, so we should not restart it.
* Align if else if properlyphk2005-01-051-6/+4
|
* Style: new-speak functions, remove pointless "return".phk2005-01-051-137/+44
|
* Make sis_initl() take a typed argument.phk2005-01-051-24/+15
| | | | | Expect caller to lock before calling sis_stop() Various style stuff.
* Add locked/unlocked variants of sis_init()phk2005-01-051-15/+22
|
* Make a locked and unlocked variant of sis_start()phk2005-01-051-15/+20
|
* Don't declare variables "register", the compiler ought to know what to do.phk2005-01-051-6/+6
|
* Instead of keeping track of the index into the receive ring use the alreadyphk2005-01-042-8/+6
| | | | implemented "sis_nextdesc" pointer to keep a pointer instead.
* Forget about the sis_list_data and sis_ring_data structures and embeddphk2005-01-042-132/+109
| | | | | | | their fields directly in the softc structure. This is a no-op which shortens most of the affected source lines by N * 10 characters.
* Prototype busdma callback using the typedef.phk2005-01-041-1/+1
|
* Add PCI and device ID's to if_xl to support:rwatson2005-01-032-1/+6
| | | | | | | | | | | 3C920B-EMB-WNM Integrated Fast Ethernet Controller Submitter reports that the card appears to autonegotiate properly, and operate well with high levels of NFS traffic. PR: 75253 Submitted by: "Oleg V. Nauman" <oleg at reis dot zp dot ua> MFC after: 2 weeks
* [1] Remove the generic bridge support from those drivers that had it. Theanholt2004-12-304-15/+55
| | | | | | | | | | | generic bridge support was biting us more than it helped, whenever a new chipset came out from a vendor and misprogramming it caused strange hangs or corruption. [2] Add a large number of PCI IDs based on what the linux drivers support. Note that the new PCI IDs haven't been tested, they're just *likely* to work. In particular the VIA AGP 8x chipsets are concerning, due to lack of testing, possible issues (kern/69953), and not having a nice "does this bridge say it would do 8x" function. However, this shouldn't make the situation worse, since these chips would have probed in the past anyway.
* Enable sk(4) for ATLQ.mlaier2004-12-241-5/+7
| | | | | Thoroughly tested by: Ender <ender NO tog SPAM net> MFC after: 4 weeks
* Enable jumbo frames on Yukon variants of sk(4).bz2004-12-201-2/+9
| | | | | | | | | | In contrast to OpenBSD we enable jumbo frame support depending on MTU setting (like done for xmac). Approved by: pjd (mentor) Obtained from: OpenBSD if_sk.c r1.52 (YU_SMR_MFL_JUMBO flag) Tested by: Heinz Knocke <knockefreebsd at o2 dot pl> MFC after: 5 days
* Update the Tigon 1 and 2 driver to use the sf_buf API for implementingalc2004-12-061-15/+23
| | | | | | | | | | | | zero-copy receive of jumbo frames. This eliminates the need for the jumbo frame allocator implemented in kern/uipc_jumbo.c and sys/jumbo.h. Remove it. Note: Zero-copy receive of jumbo frames did not work without these changes; I believe there was insufficient locking on the jumbo vm object. Tested by: ken@ Discussed with: gallatin@
* - Simplify pcn_probe() by moving vendor/device matching code to pcn_match().mdodd2004-12-031-45/+44
| | | | - Avoid LOR in pcn_probe() by removing useless mutex stuff.
* - Move chip ID code into separate function.mdodd2004-12-031-42/+94
| | | | | | - Initialize sc->pcn_type during ATTACH as softc contents may not surivive from PROBE. - Print out chip-id to assist with ongoing pcn(4) debugging efforts.
* Additional register definitions.mdodd2004-12-031-1/+19
| | | | Obtained from: NetBSD
* Correct URL of the programming manual.brueffer2004-11-171-1/+1
|
* Add missing /* DEVICE_POLLING */brueffer2004-11-171-1/+1
|
* only clear the IFF_OACTIVE flag when we have a chance of being able tojmg2004-11-171-4/+4
| | | | | | | | | queue a packet to the hardware... instead of when the hardware queue is empty.. don't initalize cur_tx now that it doesn't need to be... Pointed out by: bde
* move the lock after the NULL check so we don't have a hard(er) to diagnosejmg2004-11-151-2/+2
| | | | | | panic... Pointed out by: Bjoern A. Zeeb
* fix the missing lock in sk_jfree (verified w/ an assert)jmg2004-11-152-10/+23
| | | | | | | | also fix up handling and proding of the tx, _OACTIVE is now handled better... Submitted by: Peter Edwards (sk_jfree) Obtained from: OpenBSD and/or NetBSD (tx prod)
* Commit more debugging output. This is a little bit of using a large hammer,obrien2004-11-141-0/+10
| | | | | | | | | but sk(4) is so prevalent on AMD64 motherboards we need to reduce the number of round trips in the mailing lists trying to get sufficient information to make sure we've got a handle on all the problems and are working towards making sk(4) solid. Submitted by: bz
* Set ramsize depending on a value from eprom instead of usingbz2004-11-131-3/+9
| | | | | | | | | | hardcoded 128k for Yukon devices. 88E8001 only has 64k of on-chip RAM[1]. [1] http://www.marvell.com/products/pcconn/yukon/Yukon_88E8001_10_073103_final.pdf Tested by: amd64, current Approved by: rwatson (mentor) MFC after: 1 week
* Add altq support.brueffer2004-11-121-7/+9
| | | | | | | Patch by mlaier. Approved by: mlaier MFC after: 2 weeks
* Add device polling supportbrueffer2004-11-102-0/+109
| | | | | | | | Original patch by me, improvements by ru Happy birthday to: BSDforen.de! Approved by: ru MFC after: 2 weeks
* Hide link up/down/media printfs behind bootverbosephk2004-11-081-1/+2
|
* Another missing ! in front of IFQ_DRV_IS_EMPTY, this time in an even moremlaier2004-11-081-3/+7
| | | | | | | | | | sensitive, but less excercised location (the watchdog). While here use the *_start_locked function directly to avoid drop, grab, drop lock. I have to be very careful with future ALTQ patches! Found & reviewed by: rwatson MFC after: 3 days
* * Correct an off-by-one reading vpd ro data.obrien2004-11-012-3/+33
| | | | | | | * Announce some more fields from ro area for better debugging of broken sk(4)s on various boards. Submitted by: Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net>
* Forcibly disable interrupts, if we find ourselves servicing one whenbms2004-10-271-1/+8
| | | | | | | | | | | | | | | | | the device is suspended or shutting down. This will need to be rethought slightly if we implement suspend/resume support within vr(4). This appears to fix the vr_shutdown() panic on SMP machines. My theory here is there's a race somewhere during vr_detach() with vr_intr() in the SMP case which was sometimes being triggered, although quite why this was happening is unclear (vr_stop() also explicitly disables interrupts by writing to the IMR register). MFC-to-RELENG_5* candidate. PR: kern/62889 Tested by: seb at struchtrup dot com MFC after: 10 days
* Workaround for a recursive acquisition of the driver mutex during devicebms2004-10-261-0/+2
| | | | | | | | detach; triggered by ether_ifdetach() -> if_delmulti() -> vr_ioctl(). MFC candidate. PR: kern/62889 MFC after: 3 days
* Use VM_ALLOC_NOBUSY to eliminate an unneeded vm_page_wakeup() call and thealc2004-10-241-4/+1
| | | | synchronization that one entails.
* Avoid repeated acquisition and release of the vm object lock inside ofalc2004-10-241-5/+6
| | | | | | two loops in agp_generic_bind_memory(). As an intended side-effect, all of the calls to vm_page_wakeup() are now performed with the containing vm object lock held.
OpenPOWER on IntegriCloud