cegger
ea6211cb91
fix crash when bringing up the device and no cable is plugged in
2009-01-22 09:37:44 +00:00
agc
dc733729ad
Move back to printing the minor device as a 32-bit entity
2009-01-22 04:56:06 +00:00
cegger
ecc4ad527f
buildfix: re-adapt to major()/minor() returning a 32bit value.
2009-01-21 17:16:12 +00:00
jnemeth
c0f7445ba3
add a comment explaining how to regenerate videomode.c
2009-01-21 14:40:25 +00:00
jnemeth
ae69439f5d
add a comment explaining how to regenerate ediddevs.h and ediddevs_data.h
2009-01-21 14:40:02 +00:00
jnemeth
ebc311ebd3
add a comment explaining how to regenerate usbdevs.h and usbdevs_data.h
2009-01-21 14:36:10 +00:00
jnemeth
5d551dd0c7
add a comment explaining how to regenerate tcdevs.h and tcdevs_data.h
2009-01-21 14:34:18 +00:00
jnemeth
02b4a4a2af
add a comment explaining how to regenerate podules.h and podule_data.h
2009-01-21 14:31:04 +00:00
jnemeth
5384a2c3b7
add a comment explaining how to regenerate onewiredevs.h and onewiredevs_data.h
2009-01-21 14:27:58 +00:00
jnemeth
7a16c23c62
add a comment explaining how to regenerate mcadevs.h and mcadevs_data.h
2009-01-21 14:24:52 +00:00
jnemeth
3650fe6bb4
add a comment explaining how to regenerate isapnpdevs.h and isapnpdevs.c
2009-01-21 14:22:46 +00:00
jnemeth
8fef557086
add a comment explaining how to regenerate eisadevs.h and eisadevs_data.h
2009-01-21 14:18:44 +00:00
jnemeth
45ff970e0f
add a comment explaining how to regenerate acpidevs_data.h
2009-01-21 14:15:43 +00:00
jnemeth
dd35772633
add a comment explaining how to regenerate pcmicadevs.h and pcmciadevs_data.h
2009-01-21 14:13:09 +00:00
jnemeth
5a2d34426b
add a comment explaining how to regenerate pcidevs.h and pcidevs_data.h
2009-01-21 14:10:10 +00:00
jnemeth
059ed7c24a
add a comment explaining how to regenerate miidevs.h and miidevs_data.h
2009-01-21 14:08:03 +00:00
cegger
2f997eedf3
Roll our own ETHER_ALIGN #define like many other driver do.
...
Use ETHER_ALIGN to calculate number of segments correctly (actually the same way as FreeBSD and OpenBSD do).
Also use ETHER_ALIGN to correctly adjust new mbufs.
This makes the driver finally work. Tested by Jochen Kunz:
ping -nf 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
----192.168.2.1 PING Statistics----
28949 packets transmitted, 28949 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.157/0.364/2.272/0.023 ms
2710.6 packets/sec sent, 2710.6 packets/sec received
XXX Shouldn't if_ether.h provide ETHER_ALIGN instead of defining it in all drivers?
2009-01-21 07:48:54 +00:00
bjh21
ce80665a62
Convert more printfs to aprint_* and use the latter more consistently.
2009-01-20 20:57:26 +00:00
christos
ea2d6ba697
Fix obvious errors in conversion to device_t from Wojciech Galazka
...
Please compile-test at least!
2009-01-20 20:49:51 +00:00
bjh21
ca028b246f
sec(4): use device_t and cfdata_t rather than explicit structure pointers.
2009-01-20 20:45:11 +00:00
drochner
26a88cd4d5
-avoid eternal block if device is not streaming
...
-apply locking to avoid race in poll()
-fix an obviously wrong flag check
2009-01-20 20:18:28 +00:00
drochner
95dfcca096
kill unused variable
2009-01-20 20:15:15 +00:00
drochner
d767912be3
Change major()/minor() to return 32-bit types again, called
...
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
yamt
70a4009abb
comment
2009-01-20 15:13:54 +00:00
yamt
3852c7cb1c
bump lockstat interface version for timespec.
2009-01-20 14:49:00 +00:00
jmcneill
b7ae31c476
Decode and display PCI Power Management registers when available.
2009-01-20 13:54:43 +00:00
mjf
a3ff3b0296
mscp(4) was being a bad monkey! It's not OK to call config_found() from
...
interrupt context, as my vax kernel with DIAGNOSTIC told me. Instead, we
defer the work and get it to run in thread context via a workqueue(9).
Thanks to matt@ for the review.
2009-01-19 19:15:07 +00:00
jmcneill
0c302519a0
regen for Attansic L1E Gigabit Ethernet Adapter
2009-01-19 15:04:24 +00:00
jmcneill
371a1b3043
Attansic L1E Gigabit Ethernet Adapter
2009-01-19 15:03:50 +00:00
cegger
946c49f6ac
fix botched age_ioctl(): don't try to roll its own handling when ether_ioctl() is doing all of it right.
...
Tested by Jochen Kunz.
2009-01-18 21:24:44 +00:00
cegger
97f2088ea7
beautify dmesg output
2009-01-18 18:55:38 +00:00
christos
5dd7ffdfb6
add compat50 ioctls.
2009-01-18 16:37:19 +00:00
tnn
8daad4ac39
Fix swedish USB keymap. The apostrophe key was mapped to comma.
...
(How did this go unnoticed for so many years?)
2009-01-18 12:58:49 +00:00
cegger
d5fc4888bc
Bracket IRQ masking around nfe_intr() in nfe_init() rather inside nfe_intr().
...
Proposed by dyoung@ in PR 40345. Should fix PR 40345.
2009-01-18 11:21:06 +00:00
cegger
94a79c95d5
Use aprint_error_dev. Eliminates XNAME macro.
2009-01-18 10:40:40 +00:00
mrg
71e27a6efb
The PCI revision numbers are unique to a PCI vendor/product
...
ID pair. Misuse of the revision numbers was causing some of the chip
features to be disabled on some integrated Intel chips. So, move the
determination of the features into the bus frontend, where the
vendor/product ID is known. (Note: sc_rev should be removed. The
microcode patch stuff is also busted and needs to be fixed.) Also,
poll the actual flow control status in inphy, rather than making
assumptions.
contributed anonymously.
2009-01-18 10:37:03 +00:00
mrg
94ed4b4374
Don't attempt to unload a DRM device that's in use. (Note:
...
Unloading doesn't work right in any case -- it doesn't clean up the
sysctl tree, among other things. This code needs Work, but at least
this prevents it crashing randomly due to autounload while X is
running.) Also, fix the dependency list for radeondrm.
contributed anonymously.
2009-01-18 10:04:35 +00:00
mrg
dff35a2418
Enable flow control and poll the status appropriately.
...
contributed anonymously.
2009-01-18 10:00:51 +00:00
cegger
7971844bd8
Until we do WOL, the PCI power management suspend code is a noop.
2009-01-17 00:02:40 +00:00
cegger
8023f7432d
don't call age_stop and age_init in suspend/resume.
...
pmf network class is already doing that.
pointed out by jmcneill
2009-01-16 23:58:05 +00:00
cegger
09bd2fda5c
rename PCI_PMCSR_PME to PCI_PMCSR_PME_STS.
...
Per request from jmcneill
2009-01-16 23:23:34 +00:00
cegger
fe069f5185
- fix age_read_vpd_word().
...
- add power management support. From FreeBSD.
2009-01-16 23:10:32 +00:00
cegger
53033e6af4
add Power Management flag. From FreeBSD.
2009-01-16 23:09:27 +00:00
cegger
31614b9ad8
add RCSID
2009-01-16 21:47:56 +00:00
cegger
0da9122630
age driver needs mii_phy
2009-01-16 21:11:27 +00:00
cegger
7546e67ddd
Driver for Attansic Technology F1 10/100/1000 Ethernet PHY.
...
Written by Pyun YongHyeon for FreeBSD, ported to OpenBSD by Kevin Lo, ported to
NetBSD by me.
2009-01-16 21:06:24 +00:00
cegger
351ce8ab9a
Use mii_anar(). No functional change.
2009-01-16 20:52:20 +00:00
cegger
100faa2cd7
add mii_anar(). From OpenBSD.
2009-01-16 20:51:18 +00:00
cegger
20e2f309c1
regen
2009-01-16 20:42:19 +00:00
cegger
dc7d4d47a4
add ATHEROS F1 and F2 PHYs
2009-01-16 20:41:39 +00:00