mbalmer
071fb1f425
Fix (commented out) gpioow usage.
2009-07-29 11:58:31 +00:00
mbalmer
8bd20bf764
Add commented out entries for gpiosim and gpio at gpiosim.
2009-07-29 11:55:40 +00:00
mbalmer
3c801a163f
Add pseudo-device gpiosim, fix gpioow usage.
2009-07-29 11:52:44 +00:00
cegger
bba07db346
add TWSI registers. from OpenBSD.
2009-07-28 21:03:46 +00:00
ahoka
2e4db2573f
Add hungarian qwertz keyboard layout.
2009-07-28 18:48:27 +00:00
minskim
3c24e51c76
Remove LKM code from pf.
2009-07-28 18:15:26 +00:00
dyoung
974833df66
Make mdopen() and mdclose() maintain the openmask. md_detach()
...
depends on the openmask to know whether it should either return
EBUSY because the device is open, or tear the device down.
Alan Barrett reports that this fixes kern/41725, in part: it prevents
the UVM fault, and the kernel detaches /dev/md0a after unmounting
/ on /dev/md0a instead of before.
2009-07-28 17:55:27 +00:00
reinoud
ad5a398ed7
Enhance/fix read support for sparse files.
...
Extents read in wich there were no mappings at all were defined would error
out and files beginning with a sparse area were erroring out.
2009-07-28 15:31:21 +00:00
drochner
c07937acdd
add dummy pmf registration to allow suspend
2009-07-28 15:28:24 +00:00
skrll
55222df828
Use the right pointer to traverse the proc's lwp list.
...
From PR 41788.
2009-07-28 10:38:20 +00:00
cegger
40e186cdb8
print chipset name. From OpenBSD.
2009-07-28 06:02:34 +00:00
macallan
b8fa6b1208
forgot to commit that along with radeonfb.c
2009-07-28 00:10:51 +00:00
dyoung
1b6947b941
Do a complete device_t/softc split for the PCI attachment. I have
...
not finished the device_t/softc split for the SBus attachment
because I don't have an SBus gem(4) to test with.
Convert from legacy shutdownhooks to a PMF shutdown hook. Add PMF
suspend/resume handlers.
Factor a detachment hook out of gem_attach(). During device
attachment, track which resources are reserved in sc_attach_state,
and release only those resources during detachment.
Tested on gem0 and gem1 at pci1 on a Sun Fire V120.
2009-07-27 18:10:53 +00:00
mbalmer
9d8b69b23a
Do not attach gpiosim(4) at root, but make it a pseudo device.
...
With help from Matthias Drochner, thanks!
2009-07-27 17:40:57 +00:00
kiyohara
d9973100d4
Support Marvell Hercules-I/II SATA Controllers.
2009-07-27 15:09:58 +00:00
sketch
1d9fe50b80
Wrap ehcidebug in EHCI_DEBUG, not USB_DEBUG.
2009-07-27 14:41:19 +00:00
reinoud
1f6bbe277a
System nodes are not written out on becomming inactive; they should be written
...
out before automatically.
However, when dealing with faulty discs that fail to mount, system nodes are
of course not written out and thus may still be marked dirty, if only due to
access. Especially on sequential media this gave rise to panics on reading
trackinfo since the write track section had not yet been initialised.
2009-07-27 13:20:41 +00:00
reinoud
09d39e1a6c
Issue extra synchronise caches before closing tracks or sessions. It shouldn't
...
be needed as the caches should already be synchronised, but better be safe.
2009-07-27 13:13:33 +00:00
kiyohara
ce1343fcd9
Support Marvell Hercules-I/II SATA Controllers.
2009-07-27 12:34:12 +00:00
reinoud
5e6bd1d549
Significantly bump time for SCSI track/disc closure. DVD-RW when used
...
sequentially can significantly take more time.
2009-07-26 15:29:00 +00:00
mbalmer
bf5ef89e58
Fold long line, add comment to fix possible creation of duplicates.
2009-07-26 14:06:05 +00:00
mbalmer
9e8bcf597e
Simplify the use _a lot_ by hooking this to sysctl instead of bio(4).
...
When it attaches, it creates a hw.gpiosimN.value sysctl node which can
then be used to manipulate the simulated device state.
2009-07-26 13:45:20 +00:00
cegger
ae3b7e2af6
use __arraycount, kill N() macro.
2009-07-25 23:43:06 +00:00
tonnerre
5d2cc68d22
Instead of using the net.inet6.ip6.accept_rtadv sysctl for all devices,
...
make net.inet6.ip6.accept_rtadv the default for individual per-device
settings so people can use the ndp(8) utility to set per-device whether
or not to accept route advertisements.
rtadvd changes to follow.
(Debated on tech-net@ before but almost two weeks passed by without any
comment on the patch.)
2009-07-25 23:12:09 +00:00
cegger
97eb6082f5
use device_xname
2009-07-25 19:18:01 +00:00
cegger
880da38cf8
add GPIO_DEBUG
2009-07-25 19:04:41 +00:00
cegger
585d03dbd7
make this build w/ GPIO_DEBUG
2009-07-25 19:01:55 +00:00
mbalmer
4e71b44621
Change one more struct device * to device_t, noticed by cegger.
2009-07-25 16:41:58 +00:00
mbalmer
3270b18844
Use device_t instead of struct device * per cegger's request.
2009-07-25 16:30:44 +00:00
cegger
22b735eb9f
- replace magic number with proper define from mii.h. From OpenBSD.
...
- fix typo in comment. From OpenBSD.
2009-07-25 16:25:13 +00:00
mbalmer
953ebaaf3d
Allow gpiosim(4) to attach if configured in the kernel configuration.
2009-07-25 16:23:39 +00:00
mbalmer
8964d40bc5
Rework the GPIO framework. Tie it to the kauth(9) framework to control
...
access to the GPIO pins. Device drivers using GPIO pins can now be
attached and detached at runtime. GPIO pins can be named for easier
reference from userland programs. Introduce a new gpiosim(4) driver,
which is used for development.
Reviewed by many.
2009-07-25 16:17:10 +00:00
mbalmer
245a298f10
Extend the existing security models for upcoming gpio(4) changes.
...
Reviewed and feedback by Elad Efrat.
2009-07-25 16:08:02 +00:00
msaitoh
df316185c6
Call prop_dictionary_set_uint32() before mii_attach(), so that brgphy
...
can do prop_dictionary_get_uint32() correctly.
2009-07-25 13:52:47 +00:00
dyoung
2568e945f9
There's no such file as arch/i386/i386/core_machdep.c, so don't
...
list it here.
2009-07-24 21:22:22 +00:00
skrll
7a56aed863
spaces to tab.
2009-07-24 06:58:24 +00:00
skrll
01ec640001
G/C DCIAS
2009-07-24 06:57:53 +00:00
skrll
eaffbb9ed5
Remove trailing whitespace
2009-07-24 06:54:10 +00:00
skrll
aa9f2831e1
Wrap some long lines.
...
Whitespace.
2009-07-24 06:50:40 +00:00
christos
47736ab62e
check return code from soreserve() (Sean Boudreau)
2009-07-24 01:09:49 +00:00
dyoung
60e16c204c
Move the RAID shutdown to the raid(4) detachment routine, and use
...
config_detach(9) to shutdown a RAID.
Detach raid(4) units at shutdown.
Ok by oster@.
2009-07-23 21:58:06 +00:00
dyoung
90dc63ec14
Extract ldlastclose() and use it in ldclose(). At the top of
...
ldbegindetach(), call disk_begindetach(..., ldlastclose, ...).
Compiles. Not tested.
2009-07-23 21:38:33 +00:00
dyoung
487ea78a9c
Use kpause(9), cv_timedwait(9), and cv_signal(9) instead of tsleep(9)
...
and wakeup(9).
Use mstohz(9).
XXX Protection against spurious wakeups is still needed, but this patch
XXX makes the code no worse than before in this regard.
2009-07-23 21:22:25 +00:00
plunky
076d7e3e4e
Avoid a kernel assertion failure upstream by using FSTATE_NOTFOUND
...
rather than FSTATE_FOUND when setting the unit number directly.
config_attach_pseudo() will convert it to FSTATE_FOUND just after the
assertion.
2009-07-23 17:53:17 +00:00
jym
3974d05df6
Fix typos in comments and __PRINTKs.
2009-07-23 15:26:20 +00:00
skrll
0c186402f2
Provide bus_space_mmap. Still needs implementing.
2009-07-23 13:34:26 +00:00
macallan
680ff5c320
quick hack to allow brightness control via PMF
2009-07-23 07:21:45 +00:00
msaitoh
256f34e7cc
Reduce the difference against FreeBSD and OpenBSD
...
Define BGE_IS_JUMBO_CAPABLE and use it. No functional change.
Cleanup the code for BGE_PCI_DMA_RW_CTL regster setting. No functional
change.
Fix a printf message.
2009-07-23 05:05:13 +00:00
pooka
7982dc729e
Restore error behaviour bulldozed in rev 1.246.
...
might fix PR kern/41769
2009-07-23 01:10:02 +00:00
alc
2f42139c8e
Constify the fourth argument of sysctlbtname(3) (ie. `newp', the pointer to
...
the new value).
This change sync sysctl(3) and sysctlbtname(3) prototypes.
No objection on <tech-userlevel>
2009-07-22 22:53:41 +00:00