167416 Commits

Author SHA1 Message Date
christos
8fbaff1005 fix lint issues. 2008-02-23 15:18:04 +00:00
ad
6869216239 Fix pthread_mutex_trylock() for recursive mutexes. PR lib/38087.
Based on a patch provided by rafal@.
2008-02-23 15:15:57 +00:00
mlelstv
6b959e1dfc Always attach AHCI_SATA devices, even when not configured for AHCI mode.
Fixes PR kern/38081.
2008-02-23 14:53:31 +00:00
is
b9381f4be4 Fix comment. By Kris Katterjohn (from the tech-kern). 2008-02-23 09:37:54 +00:00
tsutsui
4ad6bc9eb7 - use bootprog_name[] generated by sys/conf/newvers_stand.sh
- constify, KNF
- fix bootloader names in comment
2008-02-23 06:51:28 +00:00
tsutsui
f4c4fc8b84 Bump version for working bootinfo support. 2008-02-23 06:46:56 +00:00
rafal
c1fc4aa545 Request DMA-coherent memory for the rx/tx descriptors. Makes this work on
sgimips (tested on my O2).  Hint re: descriptor size << cacheline size from
Tsutsui-san; thanks!
2008-02-23 06:12:30 +00:00
matt
aa6e59f5dc A number of performance changes:
Change internal register SSP to contain curlwp insread curcpu().  This
shrinks the GENERIC by 2KB.
Add rwlock stubs (rw_enter, rw_exit, rw_tryenter).
Simplify simple lock code for uniprocessors.
Do SPL raise/lower in cpu_handle_ipi instead of simple_locks.
2008-02-23 05:48:13 +00:00
tsutsui
d3005ea3b8 Use ${.TARGET}. 2008-02-23 05:43:27 +00:00
tsutsui
3f0427dce0 - preserver non-stripped boot binaries
- use ${.TARGET}
2008-02-23 05:42:51 +00:00
tsutsui
548d0c802d Fix NULL pointer dereference on CD boot.
Reported by Martin Husemann on port-sgimips.
2008-02-23 05:35:20 +00:00
dyoung
29e838604a Convert a complicated if/else if/else chain to a switch statement
that is a bit more readable.

ENODEV and ENOTTY are appropriate error codes for indicating
unsupported ioctls, but EINVAL is definitely not!  If an operation
is not supported, return ENODEV instead of EINVAL.
2008-02-23 02:26:53 +00:00
dyoung
932264266e Detach self and children. Make some functions static. Use device_t
and accessors.  Use PMF_FN_*.
2008-02-23 02:17:16 +00:00
dyoung
d0f117b7d2 Detach self and children. Use device_t and accessors. Use PMF_FN_*. 2008-02-23 01:54:44 +00:00
lukem
8346a6360d Use mkstemp() + fchmod() instead of mktemp(), since the latter
results in linker warnings.
2008-02-23 01:26:01 +00:00
dyoung
9aa9ebb999 Add a method to detach children. Use device_t and accessors. Use
PMF_FN_*.
2008-02-23 01:11:12 +00:00
dyoung
2511aa0b7f Reduce diffs between cardbus_set_powerstate_int() and
pci_set_powerstate_int().
2008-02-23 00:30:56 +00:00
dyoung
86fcf72f67 Simplify the switch-statement in pci_set_powerstate_int(), and fix
a couple of typos so that it will work as I think that it was
intended to: delay for 10000us or 200us on transitions to/from D3
or D2 state, respectively.  Discussed this with jmcneill@.
2008-02-23 00:27:53 +00:00
dyoung
212fa79969 Suspend, resume, detach.
Use mutex(9) and condvar(9) instead of splbio(9)/splx(9) and
tsleep(9)/wakeup(9).

Use device_t and accessors.  Use aprint_*_dev().
2008-02-22 23:40:49 +00:00
dyoung
d2cef052fc Add methods to detach self and children.
Use device_t and accessors.  Use aprint_*_dev().
2008-02-22 23:32:24 +00:00
dyoung
520b45a1f0 Make the CardBus D2/D3 power-handling more alike to PCI's, but
without the typos. :-)

Use device_t and accessors.  Use aprint_*_dev().  Use PMF_FN_*.
2008-02-22 23:30:42 +00:00
dyoung
288f7bb3b8 Use device_t and accessors. Use aprint_*_dev().
Add method to detach child.
2008-02-22 23:26:11 +00:00
dyoung
b982c25441 Use device_t and accessors. Use aprint_*_dev(). Use PMF_FN_*. 2008-02-22 23:24:07 +00:00
dyoung
aea7bb1ab3 use device_t and accessors. Use aprint_*_dev(). Do not cast the
softc to 'struct device *', but use &sc->bce_dev instead.  Use
PMF_FN_*.
2008-02-22 23:21:01 +00:00
dyoung
0ba85a6f89 Use device_t and accessors. Use &sc->sc_dev instead of cast to
device_t.  Remove superfluous detach warning.
2008-02-22 23:11:35 +00:00
ad
9a0b455f25 - Add a one line comment indicating what this file does.
- Move the check for PK_SYSTEM to a more sane place.
2008-02-22 23:10:12 +00:00
dyoung
cd44c43b28 Add a method to detach child.
Cosmetic: use device_t and accessors.  Use aprint_*_dev().  Use
PMF_FN_{ARGS,CALL,PROTO}.
2008-02-22 23:04:52 +00:00
dyoung
c0dffd675b Add another #definition, PMF_FN_CALL, for passing our suspend/resume
arguments to another function.
2008-02-22 22:33:21 +00:00
rmind
9850c0557d sys__sched_getparam and sys__sched_getaffinity: Do not assume that LWP
with LID=1 exists, use LIST_FIRST(&p->p_lwps) instead.
Fixes PR/37987 by <yamt>.

While here, adjust license.
2008-02-22 22:32:49 +00:00
dyoung
c7d0c816a2 Return EBUSY and do not detach if we are the console.
Cosmetic: use device_t and accessors.  Temporarily use PMF_FN_PROTO,
PMF_FN_ARGS.
2008-02-22 22:29:16 +00:00
dyoung
1fa24f5705 Add method to detach children.
Temporary: use PMF_FN_PROTO, PMF_FN_ARGS.
2008-02-22 22:22:27 +00:00
dyoung
22e9cad833 Add methods for detaching self and for detaching children.
Use device_t and accessors.  Use aprint_*_dev().
2008-02-22 22:19:36 +00:00
joerg
fdea345c9b pkg_install-20080223 2008-02-22 22:16:37 +00:00
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