mux
4068f70fba
Remove a bunch of #include "opt_pci.h".
2002-11-13 17:40:15 +00:00
alfred
6adba48a65
Fix an unparenthasized macro argument. md5s differ but this is likely
...
to order of operations that are actually fixed by the proper parenthasizing.
2002-11-09 20:13:16 +00:00
alfred
533541c47b
Fix instances of macros with improperly parenthasized arguments.
...
Verified by: md5
2002-11-09 12:55:07 +00:00
jhb
686416bfa5
Fix some sizeof(int) != sizeof(void *) warnings.
2002-11-08 21:30:26 +00:00
jhb
bf90740990
Wrap a device_printf() that violates bus space abstractions to figure out
...
if it's IO port resource is IO or memory mapped for the sake of a printf
using i386-specific values in #ifdef __i386__.
2002-11-08 15:01:02 +00:00
jhb
d102d4721a
Use %z to print a size_t value.
2002-11-08 14:58:35 +00:00
jhb
d39f72b79f
Use %z to print size_t values.
2002-11-08 14:57:18 +00:00
imp
2fe4c03943
Don't take out the rl_mtx lock in the attach routine. The only way
...
we'd need it is if we're interrupted. So, register the interrupt last
in the attach routine.
2002-10-29 19:02:19 +00:00
silby
2189f14fb7
Add some magic bits necessary to turn the transmitter on for some
...
(newer) 556B chips.
Requested & tested by: Dinesh Nambisan <dinesh@nambisan.net>
Magic bits found by: Dave Dribin & Donald Becker
MFC After: 3 days
2002-10-22 02:33:50 +00:00
brooks
47c985c054
Use if_printf(ifp, "blah") and device_printf(dev, "blah") instead of
...
printf("%s%d: blah", ifp->if_name, ifp->if_xname). This eliminates the
need to store the unit number in the softc.
2002-10-21 02:54:50 +00:00
phk
32fb67c36b
Be consistent about functions being static.
...
Properly put macro args in ().
Spotted by: FlexeLint.
2002-10-16 09:14:59 +00:00
phk
1e787bca2f
Be consistent about functions being static.
...
Spotted by: FlexeLint.
2002-10-16 09:04:52 +00:00
phk
046040c0fb
Rename struct softc to struct mn_softc.
2002-10-16 08:41:38 +00:00
marcel
4b884ea067
Fix previous commit: Don't cast integral types to pointers to
...
print them with %p. Cast to unsigned long and print with %#lx.
Discussed with: bde
2002-10-15 01:50:09 +00:00
peter
f44a0bb8f9
Turn off the premature locking in xl. The driver tries to use the mutexes
...
as spl replacements, but you cant sleep while holding mutexes.
This change has been made on many other drivers.
2002-10-14 23:58:46 +00:00
marcel
f3bd8dcc22
Make this compile on 64-bit architectures (e.g. ia64) by not assuming
...
pointers (but more precisely vm_offset_t) can be printed with %x. Use
%p instead and cast the argument to caddr_t.
2002-10-12 20:40:36 +00:00
imp
2afad356a8
Ooops. Need to free dc_srom on detach to not leak memory.
...
Pointy Hat to: The Mad Redhead of Niwot
2002-10-07 05:29:13 +00:00
imp
3c13760e8a
Dynamically configure the width of the srom. This code comes from
...
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).
2002-10-07 05:26:35 +00:00
alfred
eba16f8d01
Static'ify a variable.
...
Submitted by: Matt Emmerton <matt@gsicomp.on.ca>
2002-10-03 06:44:01 +00:00
anholt
fb0cbb0771
Correct an indentation.
...
Noticed by: phk
2002-10-03 06:10:54 +00:00
phk
6a45b57db1
Fix two misindents.
...
Spotted by: FlexeLint
2002-10-01 22:27:03 +00:00
silby
5a1846c762
Remove all DELAY(1) calls around MII operations in the XL driver.
...
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
2002-09-22 04:48:30 +00:00
nsouch
b57c1147d2
Cleanup of amdpm(4).
...
Add of NVIDIA nForce (nfpm) smbus support.
Obtained from: Thomas D. Dean <tomdean@speakeasy.org>
2002-09-21 21:43:49 +00:00
mbr
d4b724dda7
Fix the support for the AN985/983 chips, which do not set the
...
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
2002-09-20 15:18:13 +00:00
mbr
bca2116b24
Enable the automatic TX underrun recovery for the ADMtek chips.
...
This solves cvsup update on my laptop which aborts after a while
without this patch.
PR: 34236
Reviewed by: phk
MFC after: 2 weeks
2002-09-20 15:16:06 +00:00
peter
99bac58a2f
simos.c needs a to be updated from the old pci shims. Yell loudly but
...
stop breaking alpha LINT.
2002-09-19 03:40:17 +00:00
ambrisko
c0ce23344e
Clarify comment to "Code borrowed from if_fxp.c" to deal with running
...
out of fragments.
Suggested by: jhb
2002-09-18 21:32:48 +00:00
anholt
2c45f11386
Fix i810 after i830 commit.
...
Submitted by: David Dawes <dawes@XFree86.Org>
2002-09-15 08:43:23 +00:00
anholt
44b216d935
Fix an i830/i845 test that shouldn't get hit in normal use and remove a printf.
...
Submitted by: David Dawes <dawes@XFree86.Org>
2002-09-13 04:17:28 +00:00
anholt
20e15ff61d
Add AGP support for Intel i830M and i845 thanks to patches from moto kawasaki
...
<kawasaki@mbg.sphere.ne.jp> and David Dawes <dawes@XFree86.org>.
2002-09-12 04:23:18 +00:00
ambrisko
f185fabd5b
Only probe one PHY on the D-Link 580 version of the card (ie rev 0x12).
...
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
2002-09-11 21:26:22 +00:00
ticso
ca81a71128
add missing \n to printf
...
Approved by: gallatin (mentor)
2002-09-09 17:39:48 +00:00
iwasaki
7b8af44588
Add support for Corega FEther CB-TXD (CardBus 100M/10M).
2002-09-06 16:38:06 +00:00
markm
62b64ef509
Make consistent; turn spaces into tabs where there is a mixture.
2002-09-04 18:14:17 +00:00
joe
6d2baaab2d
Add a device description for Intel 82801CA/CAM (ICH3) USB controller
...
USB-C.
PR: kern/41963
2002-08-28 20:24:49 +00:00
bde
c513115b8c
Include <sys/lockmgr.h> for old lock interfaces instead of depending on
...
namespace pollution in <sys/lock.h>.
2002-08-27 11:51:55 +00:00
charnier
7dd9d47059
Replace various spelling with FALLTHROUGH which is lint()able
2002-08-25 13:23:09 +00:00
alc
cdcc7b3446
o Retire vm_page_zero_fill() and vm_page_zero_fill_area(). Ever since
...
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.
2002-08-25 00:22:31 +00:00
alfred
df2202b150
style: put return types on a line by themselves.
2002-08-24 00:02:03 +00:00
alfred
88a9b52926
style:
...
put return values on a line by themselves.
fix some paste issues where whitespace was used instead of tabs.
2002-08-23 23:49:02 +00:00
alfred
33c3846ca8
Put return values from functions on a line by themselves.
...
Ok'd previously by: wpaul
2002-08-23 23:19:25 +00:00
ambrisko
d0709eea67
Don't read the PCI config space during mii operations. Instead save whether
...
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
2002-08-19 16:54:26 +00:00
phk
b08a6ac7b9
Remove the SIS_LOCK/SIS_UNLOCK from sis_attach(). It makes WITNESS
...
barf and there seem to be little room for contention during attach.
2002-08-19 06:56:50 +00:00
joe
f01946b9bb
Use uhci_pci_match to return the device description and rework the
...
vendor description code.
2002-08-18 11:52:47 +00:00
joe
34ab7e6f06
Add a comment to remind that uhci_pci_match will never return NULL.
...
Don't display the "New UHCI DeviceId" message unless booting verbosely.
Use a switch statement for the vendor match code.
2002-08-18 11:42:11 +00:00
sobomax
f6cebc0606
Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid
...
breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in
SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's.
Reviewed by: -hackers, -net
2002-08-18 07:05:00 +00:00
joe
6935cdcb7c
Consolidate the device recognition code.
2002-08-18 00:24:03 +00:00
ambrisko
b9b7fbb25d
Revert change to detect multiply PHYs in mii code. There might be cases
...
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
2002-08-16 23:19:16 +00:00
joe
1db3df408a
UHCI_DEBUG -> USB_DEBUG.
2002-08-15 22:41:20 +00:00
silby
e4af9029cc
Improve handling of TX errors. Early reports indicate that this
...
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
2002-08-15 04:04:53 +00:00