summaryrefslogtreecommitdiffstats
path: root/sys/pci
Commit message (Collapse)AuthorAgeFilesLines
* Move the amd(4) driver to it's own directory in preparation for it growingscottl2002-12-132-3033/+0
| | | | an sbus front-end.
* Correct a harmless problem when creating the DMA tagmux2002-12-131-1/+1
| | | | | | | | used to map mbufs. The maximum size should be MCLBYTES and not SIS_TX_LIST_SZ. This is probably a typo in the original commit. Tested by: cognet
* Xircom cards store the MAC address in the CIS, so get it from the newimp2002-11-271-2/+8
| | | | | | | | pci_get_ether accesor, which gets it from the CIS for cardbus cards (and from other pci-like buses via whatever mechanism is used there). Submitted by: sam Approved by: re (blanket)
* Fix handling of IFF_ALLMULTI. The same bug in various forms affectsluigi2002-11-251-9/+7
| | | | | | | | the following drivers: dc mn sf sk ste ti tl xl an bge em gem gx ie lge sr aue cue kue wi xe Approved by: re
* Import some relevant changes from Via's if_fet driver:silby2002-11-252-2/+29
| | | | | | | | | | | | | | | 1. Detect the revision of the Rhine chip we're using. 2. Use the force reset command on revisions which support it whenever the normal reset command fails. This should solve a wide range of "my vr0 locks up with reset failed messages" problems. (Although the root causes should be eventually tracked down.) Tested by: grenville armitage <garmitage@swin.edu.au> Obtained from: Via's if_fet driver MFC after: 3 days Approved by: re
* o track either_ifattach/ether_ifdetach API changessam2002-11-1413-217/+91
| | | | | | | | | | | o use if_input for input packet processing o don't strip the Ethernet header for input packets o use BPF_* macros bpf tapping o call ether_ioctl to handle default ioctl case o track vlan changes Reviewed by: many Approved by: re
* Remove a bunch of #include "opt_pci.h".mux2002-11-137-7/+0
|
* Fix an unparenthasized macro argument. md5s differ but this is likelyalfred2002-11-091-1/+1
| | | | to order of operations that are actually fixed by the proper parenthasizing.
* Fix instances of macros with improperly parenthasized arguments.alfred2002-11-092-13/+13
| | | | Verified by: md5
* Fix some sizeof(int) != sizeof(void *) warnings.jhb2002-11-081-2/+2
|
* Wrap a device_printf() that violates bus space abstractions to figure outjhb2002-11-081-0/+2
| | | | | if it's IO port resource is IO or memory mapped for the sake of a printf using i386-specific values in #ifdef __i386__.
* Use %z to print a size_t value.jhb2002-11-081-1/+1
|
* Use %z to print size_t values.jhb2002-11-081-3/+3
|
* Don't take out the rl_mtx lock in the attach routine. The only wayimp2002-10-291-19/+15
| | | | | we'd need it is if we're interrupted. So, register the interrupt last in the attach routine.
* 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.
OpenPOWER on IntegriCloud