summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* Add some magic bits necessary to turn the transmitter on for somesilby2002-10-222-0/+10
| | | | | | | | | (newer) 556B chips. Requested & tested by: Dinesh Nambisan <dinesh@nambisan.net> Magic bits found by: Dave Dribin & Donald Becker MFC After: 3 days
* Use if_printf(ifp, "blah") and device_printf(dev, "blah") instead ofbrooks2002-10-212-33/+32
| | | | | printf("%s%d: blah", ifp->if_name, ifp->if_xname). This eliminates the need to store the unit number in the softc.
* Be consistent about functions being static.phk2002-10-165-20/+20
| | | | | | Properly put macro args in (). Spotted by: FlexeLint.
* Be consistent about functions being static.phk2002-10-165-19/+21
| | | | Spotted by: FlexeLint.
* Rename struct softc to struct mn_softc.phk2002-10-161-27/+31
|
* Fix previous commit: Don't cast integral types to pointers tomarcel2002-10-151-2/+2
| | | | | | print them with %p. Cast to unsigned long and print with %#lx. Discussed with: bde
* Turn off the premature locking in xl. The driver tries to use the mutexespeter2002-10-141-0/+6
| | | | | | as spl replacements, but you cant sleep while holding mutexes. This change has been made on many other drivers.
* Make this compile on 64-bit architectures (e.g. ia64) by not assumingmarcel2002-10-121-2/+2
| | | | | pointers (but more precisely vm_offset_t) can be printed with %x. Use %p instead and cast the argument to caddr_t.
* Ooops. Need to free dc_srom on detach to not leak memory.imp2002-10-071-0/+1
| | | | Pointy Hat to: The Mad Redhead of Niwot
* Dynamically configure the width of the srom. This code comes fromimp2002-10-072-15/+106
| | | | | | | | | | | | | | OpenBSD who got the code (or the idea) from the NetBSD tlp driver. This gets some cardbus dc cards working (either completely or nearly so). It also appears to get additional pci cards working, without breaking working ones. # Maybe some additional work is needed here. Also, the cardbus attachment # might need to match on the CIS rather than on the vendor/device so we have # a finer level of detail as to what the card is. Technically, the # vendor/device fields are undefined for CardBus (even though most cards are # using common silicon with pci models).
* Static'ify a variable.alfred2002-10-031-1/+1
| | | | Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
* Correct an indentation.anholt2002-10-031-1/+1
| | | | Noticed by: phk
* Fix two misindents.phk2002-10-012-2/+2
| | | | Spotted by: FlexeLint
* Remove all DELAY(1) calls around MII operations in the XL driver.silby2002-09-221-17/+0
| | | | | | | | | | | According to the MII specification, the delay produced by our reads alone are sufficient for correct operation. This reduces the time mii_tick takes from 10ms to ~1ms here. That's still a lot, but much better than before. Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 3 weeks
* Cleanup of amdpm(4).nsouch2002-09-211-137/+178
| | | | | | Add of NVIDIA nForce (nfpm) smbus support. Obtained from: Thomas D. Dean <tomdean@speakeasy.org>
* Fix the support for the AN985/983 chips, which do not set thembr2002-09-201-1/+2
| | | | | | | | | RXSTATE to STOPPED, but to WAIT. This should fix hangs which could only be solved by replugging the cable. Submitted by: jhb Reviewed by: phk MFC after: 2 weeks
* Enable the automatic TX underrun recovery for the ADMtek chips.mbr2002-09-202-0/+5
| | | | | | | | | This solves cvsup update on my laptop which aborts after a while without this patch. PR: 34236 Reviewed by: phk MFC after: 2 weeks
* simos.c needs a to be updated from the old pci shims. Yell loudly butpeter2002-09-191-0/+7
| | | | stop breaking alpha LINT.
* Clarify comment to "Code borrowed from if_fxp.c" to deal with runningambrisko2002-09-181-1/+1
| | | | | | out of fragments. Suggested by: jhb
* Fix i810 after i830 commit.anholt2002-09-151-0/+2
| | | | Submitted by: David Dawes <dawes@XFree86.Org>
* Fix an i830/i845 test that shouldn't get hit in normal use and remove a printf.anholt2002-09-131-6/+4
| | | | Submitted by: David Dawes <dawes@XFree86.Org>
* Add AGP support for Intel i830M and i845 thanks to patches from moto kawasakianholt2002-09-122-49/+216
| | | | <kawasaki@mbg.sphere.ne.jp> and David Dawes <dawes@XFree86.org>.
* Only probe one PHY on the D-Link 580 version of the card (ie rev 0x12).ambrisko2002-09-111-6/+37
| | | | | | | | | | | | | | The 550 version is location at address 1 but since it works right we let the code find whatever PHY it can. Fix a fragment issue on TX. If the number of frags are more then the driver has allocated then bring all the frags together into one packet and send it out. Code derived from the fxp driver. Tested and found by: Francois Tigeot <francois.tigeot@nic.fr> Hellmuth Michaelis <hm@kts.org> MFC after: 1 week
* add missing \n to printfticso2002-09-093-6/+6
| | | | Approved by: gallatin (mentor)
* Add support for Corega FEther CB-TXD (CardBus 100M/10M).iwasaki2002-09-062-1/+13
|
* Make consistent; turn spaces into tabs where there is a mixture.markm2002-09-041-21/+21
|
* Add a device description for Intel 82801CA/CAM (ICH3) USB controllerjoe2002-08-281-0/+5
| | | | | | USB-C. PR: kern/41963
* Include <sys/lockmgr.h> for old lock interfaces instead of depending onbde2002-08-277-0/+7
| | | | namespace pollution in <sys/lock.h>.
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-252-8/+8
|
* o Retire vm_page_zero_fill() and vm_page_zero_fill_area(). Ever sincealc2002-08-252-2/+2
| | | | | | pmap_zero_page() and pmap_zero_page_area() were modified to accept a struct vm_page * instead of a physical address, vm_page_zero_fill() and vm_page_zero_fill_area() have served no purpose.
* style: put return types on a line by themselves.alfred2002-08-245-188/+376
|
* style:alfred2002-08-236-235/+466
| | | | | put return values on a line by themselves. fix some paste issues where whitespace was used instead of tabs.
* Put return values from functions on a line by themselves.alfred2002-08-231-36/+72
| | | | Ok'd previously by: wpaul
* Don't read the PCI config space during mii operations. Instead save whetherambrisko2002-08-192-3/+9
| | | | | | | | | or not we have to limit the PHY detection in the softc structure. Then just check the flag. Suggested by: jdp Reviewed by: jdp MFC after: 3 days
* Remove the SIS_LOCK/SIS_UNLOCK from sis_attach(). It makes WITNESSphk2002-08-191-3/+0
| | | | barf and there seem to be little room for contention during attach.
* Use uhci_pci_match to return the device description and rework thejoe2002-08-181-28/+22
| | | | vendor description code.
* Add a comment to remind that uhci_pci_match will never return NULL.joe2002-08-181-6/+11
| | | | | Don't display the "New UHCI DeviceId" message unless booting verbosely. Use a switch statement for the vendor match code.
* Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoidsobomax2002-08-183-9/+9
| | | | | | | breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's. Reviewed by: -hackers, -net
* Consolidate the device recognition code.joe2002-08-181-57/+4
|
* Revert change to detect multiply PHYs in mii code. There might be casesambrisko2002-08-161-0/+5
| | | | | | | | | when this is needed. Work around bogus second PHY in the DFE-580 card via a change in the if_ste.c driver. Suggested by: jdp Reviewed by: jdp MFC after: 3 days
* UHCI_DEBUG -> USB_DEBUG.joe2002-08-151-1/+1
|
* Improve handling of TX errors. Early reports indicate that thissilby2002-08-152-13/+28
| | | | | | | | | | elimiates the driver lockup problem reported by many. Concepts used were taken from Via's if_fet driver. Verification and implementation were done by Thomas Nystrom. Submitted by: Thomas Nystrom <thn@saeab.se> MFC after: 3 days
* o Use the VM_ALLOC_WIRED flag instead of calling vm_page_wire().alc2002-08-102-6/+3
|
* Fixes for the D-Link DFE-580 card.ambrisko2002-08-072-83/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is pretty much fixes any issue I can find: - Watchdog timeouts were due to starting the TX DMA engine before we had a packet ready for it. So the first packet sent never got out only if we sent more then one packet at a time did the others make it out and not blow up. Of course reseting the chip then caused us not to transmit the first packet again ie. catch-22. This required logic changes. - Combine interrupts on TX packets being queued up. - Don't keep running around the RX ring since we might get out of sync so only go around once per receive - Let the RX engine recover via the poll interface which is similar to the TX interface. This way the chip wakes up with no effort when we read enough packets. - Do better hand-shaking on RX & TX packets so they don't start of to soon. - Force a duplex setting when the link comes up after an ste_init or it will default to half-duplex and be really slow. This only happens on subsequent ste_init. The first one worked. - Don't call stat_update for every overflow. We only monitor the collisions so the tick interval is good enough for that. Just read in the collision stats to minimize bus reads. - Don't read the miibus every tick since it uses delays and delays are not good for performance. - Tie link events directly to the miibus code so the port gets set correctly if someone changes the port settings. - Reduce the extreme number of {R,T}FD's. They would consume 130K of kernel memory for each NIC. - Set the TX_THRESH to wait for the DMA engine to complete before running the TX FIFO. This hurts peak TX performance but under bi-directional load the DMA engine can't keep up with the FIFO. Testing shows that we end up in the case anyways (a la dc(4) issues but worse since the RX engine hogs everything). - When stopping the card do a reset since the reset verifies the card has stopped. Otherwise on heavy RX load the RX DMA engine is still stuffing packets into memory. If that happens after we free the DMA area memory bits get scribled in memory and bad things happen. This card still has seemingly unfixable issues under heavy RX load in which the card takes over the PCI bus. Sponsored by: Vernier Networks MFC after: 1 week
* Use new interface for ether_input().luigi2002-08-071-13/+4
| | | | | | | Remove some unnecessary assignments to mbuf fields in sis_newbuf(), the "length" fields are of no use while the mbuf is in the receive ring. MFC after: 3 days
* Make sure to set the DMA transfer length register, plus onesilby2002-08-051-1/+6
| | | | | | small style fix. Submitted by: Thomas Nystrom <thn@saeab.se>
* Use m_getcl() to allocate mbuf+cluster for the receive ring.luigi2002-08-041-25/+9
| | | | | | | Remove the sis_quick variable, as it was there for testing purposes only. MFC after: 3 days
* Repond properly to NGM_TEXT_CONFIG messages.phk2002-08-041-0/+1
|
* Make sure to set both sets of registers which control the RX and TX buffersilby2002-07-312-0/+49
| | | | | | | | | | sizes. Previously, the end result was at the mercy of the card's default setting. This change will reduce the number of buffer underruns for some users. PR: kern/37929 Submitted by: Thomas Nystrom <thn@saeab.se> MFC after: 7 days
* If we get 0xffff back when reading the status register, assume the cardjhb2002-07-301-0/+5
| | | | | | | has gone away instead of spinning in the interrupt handler. This stops my machine from hanging when I eject a rl(4)-based cardbus card. Reviewed by: imp
OpenPOWER on IntegriCloud