Commit Graph

167333 Commits

Author SHA1 Message Date
dyoung 941db428bc Add methods for detaching self and for detaching children.
Use device_t and accessors.  Use aprint_*_dev().
2008-02-22 22:15:31 +00:00
reed 31c2217275 Mention the term "pseudo" for ptys. 2008-02-22 22:03:33 +00:00
dyoung 243cb848fd Add #definitions for additional arguments to PMF suspend/resume
routines.  The arguments are commented out.  The #defininitions
are a temporary measure that will help me commit changes to the
device suspend/resume/detach methods in my the tree piecemeal,
instead of all at once.
2008-02-22 21:59:35 +00:00
dyoung 27794e53e5 Add methods to detach lpt at isa. 2008-02-22 20:53:58 +00:00
dyoung 91c7d67975 Add methods to detach self and children. 2008-02-22 20:52:14 +00:00
drochner d9ffad8652 Add a horrible hack to allow the DRM driver to get at the bus_space_handle
allocated by the AGP driver in the case of Intel chipset graphics.
This is different from the patch by Yorick Hardy circulated a while ago
in that it doesn't change the semantics of reference counting within
the (3rd-party) DRM code -- it just bypasses it.
Needless to say that it is uglier, but it eases future updates to
the DRM code because the change there is just 2 LOC.

Imo, a cleaner solution for all that would be to attach "agp" to "vga"
in the intel chipset graphics case, which better reflects how the hardware
is structured. This would still need a hack to the DRM code, but
it would be confined to childs of the "vga" device, without need for
global variables.
Since there is a variety of intel chipsets with AGP and/or builtin
graphics options, this would need a considerable testing effort.
2008-02-22 19:47:06 +00:00
joerg 758ec1af13 Also cast before anding the characters. 2008-02-22 19:25:59 +00:00
manu ebc590d76a Fix address length, from Brian Haley 2008-02-22 18:50:03 +00:00
christos 5b9284aa07 GLOB_NO_DOTDIRS patch from mouse@
Fixes re-definition of GLOB_PERIOD.
2008-02-22 18:33:51 +00:00
matt 8310bd848b Revert last change. 2008-02-22 17:38:38 +00:00
joerg d0251018da Update for pkg_install-20080222 and sort sources. 2008-02-22 16:20:53 +00:00
joerg e30cd2c074 pkg_install-20080222 2008-02-22 16:14:57 +00:00
matt ca4e85e5a3 Fix panic in readdisksubr.c 2008-02-22 15:57:53 +00:00
tsutsui 4c7dba7079 Add an entry for I-O DATA RSA-PCI 2-port serial board.
(works only on 16550A compatible mode)
2008-02-22 14:51:38 +00:00
tsutsui 5f46094d00 Regen from pcidevs rev 1.930:
> Add I-O DATA RSA-PCI 2 port serial board.
2008-02-22 14:49:46 +00:00
tsutsui 6a37ffc123 Add I-O DATA RSA-PCI 2 port serial board. 2008-02-22 14:48:50 +00:00
joerg 966f3cc69d Add some explicit casts to stop GCC complains about signed char shifts. 2008-02-22 14:40:15 +00:00
joerg 2ca83a6a31 Replace O(nm) versions of strspn, strcspn and strpbrk with O(n+m)
implementations based on the suggestions I made for DragonFly's libc
ages ago. For charset with more than one entry and iterating over the
first two characters of s, this is consistently faster on amd64.
2008-02-22 13:32:19 +00:00
martin 1fc8a17916 Get rid of the IPI simple_lock. 2008-02-22 10:55:00 +00:00
matt 49ffaced1c Fix a bug in the pmap pcb tracking code. While here, rewrite it to simplier.
Use a field in the pcb itself (since it's basically free) and keep track of
what pmap "owns" a pcb (for consistency checking).  use M_ZERO as appropriate.
2008-02-22 08:46:48 +00:00
dogcow 653e53c49d As pointed out by Geoff Wing, 1.356 of wd.c needs sc_sdhook restored. 2008-02-22 06:46:46 +00:00
matt 9433f6a071 expand some printfs. Don't bother checking for curlwp == NULL; it can't
happen anymore.  Convert some variables to bool.
2008-02-22 03:20:39 +00:00
matt 6c90a57c76 Rethink softint cleanup. instead of post softint, do it before so we always
know it was done right.  This fixes KSP invalid panics.
2008-02-22 03:18:40 +00:00
matt 80798140ed Switch NetBSD/vax to the CAS model of mutexes. Fix the locking primitives
in lock_stubs.S so they actually function correctly.
2008-02-22 03:16:01 +00:00
matt a0283d03d4 Add back some includes which were inadvertantly removed. 2008-02-22 03:14:22 +00:00
oster 06f0c8e418 Make outputs.master and inputs.dac show up in mixerctl output for the ALC888. Patch from, and much thanks to, jmcneill @. 2008-02-22 02:59:31 +00:00
drochner 569b8a258b clean up the error bit clear code:
-use an aligned pci config space address as everyone else -- I'm sorry
 about that because I like gson's way a lot -- it keeps the address
 offset due to alignment visually close to the data shift --, but since
 aligned addresses are used everywhere else in definitions, this
 causes confusion
-the mask applied to the data didn't make much sense, a look at the
 FreeBSD code where this code originates from suggests that there
 was just a mistake -- one trailing zero missing --
 anyway, the datasheet tells that the error bits are all write-one-
 to-clear, so just write back the value and we are done
2008-02-21 22:26:35 +00:00
drochner efa71badb8 -fix the delay logics in "set powerstate" for the cases that D2 or D3
are switched to (was harmless because we don't do D2 yet and also
 don't (hmm - shouldn't) access devices in D3 (which would only make
 sense if we'd support D3hot)
-zero the io/mem/master enable bits before entering D3
 (The special handling of PCI_CLASS_DISPLAY devices is questionable
  here -- we can't care about the console if we are seriously follow
  the spec, and upstream bridges aren't considered anyway.)
-add exact references to the PCI PM spec
2008-02-21 22:02:22 +00:00
drochner e4b37a874e put back the old shutdown handlers to flush the disk cache,
the pmf API can't deal with all the different suspend/resume/reboot
cases well yet, so better keep suspend/resume and reboot/halt/poweroff
clearly seperated
2008-02-21 21:52:06 +00:00
mjf 1ca9f54774 Terminate mjf-devfs branch because of some CVS tagging error I must
have made somewhere. All new work will be on mjf-devfs2.

Long live mjf-devfs2!
2008-02-21 20:35:50 +00:00
uwe 8022c855dd Rasops and wsfont are now in MI conf/files so remove them from here. 2008-02-21 19:52:00 +00:00
garbled 7dac6a6965 Note 7046-B50 support and new asm routines on powerpc. 2008-02-21 17:39:22 +00:00
garbled f908c50890 Make use of ppc tuned assembler. 2008-02-21 17:37:00 +00:00
garbled 2ba84f0f9e Add tuned powerpc assembler written by IBM and released under a 3-clause
BSD Lisc as part of the perflib project.
http://sourceforge.net/projects/ppcperflib/

Tested the new functions with microbenchmarks on a number of different
CPU types, and  found that most cpus either benefited greatly, or were
unaffected.  Primarily G4 CPU's were unaffected, and all others showed
speedups.  My 7044 (POWER3) went from a 70.6 to a 73.2 (thats good) in
bytebench with a complete release built with these.  Also passed
regression tests.
2008-02-21 17:35:47 +00:00
skrll 60a9c724c0 Note nick-net80211-sync branch. 2008-02-21 17:23:24 +00:00
ad c64692e9f4 Use a hash of locks, instead of one per vm_page. 2008-02-21 17:12:58 +00:00
ad bc9a63754d #define __HAVE_ATOMIC_AS_MEMBAR, indicating that:
- atomic_cas_ni() does an implicit membar_exit()
- all other atomic operations do an implicit membar_sync()

While this might seem kind of arbitrary it's the basis for some important
optimizations.
2008-02-21 16:31:13 +00:00
tsutsui a683a1b3c2 u_int32_t -> uint32_t, remove __P(), ANSIfy. 2008-02-21 14:32:31 +00:00
tsutsui a62d10165d Use __arraycount(). 2008-02-21 14:30:41 +00:00
ad 110d5cc274 Make MFS MP-safe. Needed because of the funny tricks it plays. 2008-02-21 14:10:57 +00:00
martin e96ec76164 rasops is global now 2008-02-21 13:44:17 +00:00
keiichi 5a3480171e added keiichi-mipv6 branch for developing Mobile IPv6/NEMO BS functions
on NetBSD.
2008-02-21 11:09:39 +00:00
sekiya 209f5cf4d0 Increase MSGBUFSIZE so that we don't truncate dmesg before syslog
starts.
2008-02-21 09:32:12 +00:00
spz 5fefda665c add missing dot and tab 2008-02-21 09:30:07 +00:00
rafal 976dbbc142 Make this work on a new TrippLite USB->Serial Converter Model U209-000-R.
At least rev 3.00 of the device needs the HX hack(s).
2008-02-21 04:38:43 +00:00
matt 4e3cca57c1 More softint fixes. We need to restore the softint lwp's pcb to it's initial
state since it may have been blocked or interrupted by another softint.
2008-02-21 03:52:47 +00:00
joerg 199b0f6721 Fix logic error: memset arguments needs the whole size.
XXX nuke macro logic and just use sizeof.
2008-02-21 02:50:11 +00:00
uwe cff5aa6f0d Fix help string for "w" - it is "write" not "watch". 2008-02-21 02:07:45 +00:00
uwe a9092771b1 Use __arraycount. 2008-02-21 01:49:07 +00:00
joerg 36e75d7a01 Ensure that the keyboard is enabled before polling it.
This allows pressing a key to reboot the machine.
2008-02-21 01:42:20 +00:00