jmcneill
cdd511a2fb
For WSDISPLAY_GINFO, depth should be sc->bits_per_pixel, not
...
sc->color_depth. While we're here, implement WSDISPLAYIO_LINEBYTES.
2008-01-15 02:00:49 +00:00
drochner
69ac8d9d9e
fix some PCI config space offsets to be 32-bit aligned, the code
...
did already do the right bit shifting
2008-01-15 00:27:58 +00:00
drochner
98da2f9c50
fix some unaligned PCI config space accesses in suspend/resume functions
2008-01-15 00:24:47 +00:00
drochner
84c211c56c
On suspend/resume, just detach/attach the X server (or whatever might
...
be using the "syncops" protocol) rather than doing a full switch
to virtual screen 1. The latter doesn't have the expected result if
the X server is running on screen 1, and is too much policy for inside
the kernel anyway.
Introduce a mutex+condvar to synchronize these operations, to replace
the spltty()/tsleep(). (for now only used by the new functions,
should be extended to the normal vt switching code)
2008-01-14 21:38:50 +00:00
martin
e91d982a78
Make sure pci config space access only happens on 32bit aligned addresses.
2008-01-14 21:33:04 +00:00
drochner
8644062c1c
restructure things a bit so that proclist_mutex is held between the
...
p_find() and the psignal() which is its purpose after all
2008-01-14 21:17:00 +00:00
xtraeme
7e8220d319
Fix the BARs on nForce 430, which failed to attach. Reported by
...
atsushi fukumoto in PR kern/37756.
2008-01-14 20:30:10 +00:00
tsutsui
e88df705a1
Use htole32() to write parameters to DMA descriptors for big endian machines.
...
Tested on Pegasos by mrg@ on port-ofppc.
2008-01-14 06:32:10 +00:00
dyoung
b6c0385fe0
Use device_t, device_private().
2008-01-14 06:12:13 +00:00
dyoung
132fca675f
In pccbbdetach(), panic if interrupt handlers are still registered
...
after detaching children.
Use PCI_CB_MEMBASE0, PCI_CB_MEMLIMIT0, PCI_CB_IOBASE0, PCI_CB_IOLIMIT0
instead of magic numbers.
2008-01-14 03:01:41 +00:00
cube
55f21981d9
workqueue(9) has the non-evident limitation that the caller cannot reuse
...
the same struct work before workqueue(9) has internally started to work on
the task.
So to make sure that doesn't happen, provide a semaphore not to run the
workqueue multiple times. It might be clearer just skip using workqueue(9)
and use a thread for about everything, but oh well, I leave that to
someone else.
Now is@ can yank his USB-to-Ethernet adapter while the interface is up.
2008-01-12 22:32:51 +00:00
tnn
103f966e33
regen (add ServeRAID 6/7)
2008-01-11 20:49:14 +00:00
tnn
2abb4192af
Add ServeRAID 6/7
2008-01-11 20:47:21 +00:00
ragge
1d93d6da72
Add entry to match the "Intel® PRO/1000 PT Quad Port Server Adapter".
2008-01-11 13:04:39 +00:00
ragge
9360a7471b
Regen
2008-01-11 12:01:20 +00:00
ragge
5f5a2ae52a
Add Intel quad 1000baseT copper PCI express card.
2008-01-11 11:31:25 +00:00
tsutsui
fba7c262a8
Move todr_attach(9) calls from each MD attachment to MI intersil7170_attach().
2008-01-10 16:04:57 +00:00
tsutsui
05517e38f5
- move todr_attach(9) calls from each MD attachment to MI mk48txx_attach()
...
- don't clear todr_setwen in mk48txx_attach() since it might be set by
MD attachments
2008-01-10 15:31:26 +00:00
tsutsui
db09bcc34f
Move todr_attach(9) calls from each MD attachment to MI mc146818_attach().
2008-01-10 15:17:39 +00:00
tsutsui
6dfc7d1b78
- use aprint_normal(9)
...
- use __func__ to print function names
2008-01-10 14:52:32 +00:00
tsutsui
57e50507c9
Use aprint_normal(9).
2008-01-10 14:51:49 +00:00
tsutsui
af18f23ec2
- use aprint_normal(9)
...
- use __arraycount()
- use __func__ to print a function name
2008-01-10 14:51:17 +00:00
dyoung
bf192f5d8d
In pcppi_detach(), s/pmf_device_register/pmf_device_deregister/.
...
Why that never blew up when I tested, I will never know. Thanks
wiz@ for catching my mistake.
2008-01-10 08:55:31 +00:00
dyoung
b0b0d490fb
Straggler: change generic ifmedia_X names to lmc_ifmedia_X.
2008-01-10 08:50:52 +00:00
dyoung
636e434283
Support pcppi(4) detachment.
...
Use device_t, device_private(). Get rid of a struct device * cast.
2008-01-10 07:58:39 +00:00
dyoung
d3a283186c
Use device_t.
2008-01-10 07:49:04 +00:00
dyoung
92e5e1c722
Oops, remove some debug statements that slipped in there.
2008-01-10 07:48:22 +00:00
dyoung
3a66b9167f
Let us detach atabus* from wdc*, and wdc* from isa*.
...
Use device_t, device_private().
2008-01-10 07:44:07 +00:00
dyoung
1415c1d7aa
Use device_t, device_xname(), device_private(). Add atabus_childdetached()
...
to clean up pointers to detached children.
2008-01-10 07:41:20 +00:00
dyoung
c329a611cb
Add a helper routine for ethernet drivers, mii_ifmedia_change().
...
Remove an mii_softc from its mii_data in mii_phy_detach(), not in
mii_detach(), so that we do not leave dangling pointers to a PHY
in an mii_data.
2008-01-10 07:29:41 +00:00
dyoung
49df706f87
Re-use ether_mediachange(), ether_mediastatus(). Stop using
...
shutdownhook_establish(9).
2008-01-10 07:25:33 +00:00
uwe
829ba69fd1
Don't bury &sc->sc_dev idiom inside arglist of aprint_error_dev(), use
...
explicit device_t self variable instead to make future conversion easier.
2008-01-09 22:29:20 +00:00
uwe
9ea46456ee
Autoconf allocates softc with M_ZERO, so there's no need to explicitly
...
init missing todr methods to NULL.
2008-01-09 22:20:40 +00:00
uwe
1825805f68
Use todr_{get,set}time_ymdhms methods and let MI code in kern_todr.c
...
do conversion and checks.
2008-01-09 22:09:22 +00:00
degroote
b69cd173f5
Make sure BBP is ready before writing to it
...
From DragonflyBSD
2008-01-09 20:21:23 +00:00
degroote
94aebeb732
Add some sysctl to retrieve the radio state (and the debug level).
...
While here, fixe the return value in case where radio is off (suggested by
joerg@).
2008-01-09 20:15:40 +00:00
uwe
b2fb3432e4
rtc_offset is handled by kern_todr.c, so nuke it here.
...
Pointed out by joerg@
2008-01-09 18:29:37 +00:00
xtraeme
53fd152fd5
Remove useless returns at the end of void functions.
2008-01-09 14:52:52 +00:00
xtraeme
cbfd19ee15
+ gcscpcib(4)
2008-01-09 14:44:51 +00:00
simonb
d8de5b102b
Remove support for NetBSD/pc532.
2008-01-09 11:25:58 +00:00
dyoung
50b7998db1
After rtw_attach() is called, the hardware has been powered down,
...
so don't fiddle with the Function Event Registers.
2008-01-08 18:26:09 +00:00
joerg
808b08ff6f
Short-cut interrupt processing if device has been suspended.
...
uvm_fault reported by xtraeme.
2008-01-08 15:50:35 +00:00
dogcow
ca9c510ab2
explicitly include simplelock.h
2008-01-08 13:28:22 +00:00
matt
6d2503c7a9
Don't do arithmetic on void pointers.
2008-01-08 06:28:29 +00:00
gdt
1424adf410
Support FIONBIO.
...
Support non-blocking reads from USB printers. With this, escputil can
query the printer model, and I can print a test page with gutenprint
5.1 and cups. Add many comments explaining why the support is not
quite right. (This change is quite a bit less invasive than a
"correct" fix, and thus more reasonable to pull up to netbsd-4.)
Rototill debugging, so that all DPRINTFN have a level, and so that the
message is printed if the debug level is >= the number in the source
code. Document debug level plan.
Fix bug where only one status change would be printed (by inspection,
not tested).
Document scheme for reading/discarding data when ulpt(4) is opened for
write only.
Delete dead code.
Plan and patch posted on tech-kern without objections.
2008-01-08 00:58:09 +00:00
tsutsui
2b341ae01b
Add timecounter(9) support for mvme68k.
...
Based on a patch from Garrett D'Amore and several tweaks by me.
Compile tested only, but reviewed by joerg@ and
no objection from scw@ on port-mvme68k.
2008-01-07 14:39:28 +00:00
tnn
303f9ebb5b
Make the ACPI_MADT_DEBUG code compile again.
2008-01-07 06:04:07 +00:00
ad
d534bbfa2e
Really, remove last vestiges of simplelock debugging.
2008-01-07 01:55:15 +00:00
ad
b439191858
Remove vestiges of simplelock debugging.
2008-01-07 00:27:35 +00:00
bjs
521d96c676
The stamp mutex is not unsafe, so remove this comment so people don't get the wrong idea. ok ad@
2008-01-07 00:25:19 +00:00