Commit Graph

170803 Commits

Author SHA1 Message Date
dyoung 3a431966db Run ctags(1) on some of the ACPI files. 2008-06-11 08:14:14 +00:00
dyoung ac6193d02f *Always* update the desired power status of each CardBus function,
even if we cannot remove power from the function because its device
property 'pmf-powerdown' is present and equal to false.

Because we were not tracking the power status properly before, we
were not taking cards out of reset after a suspend/resume cycle on
their CardBus bridge.  We would lose the use of the card that way.
2008-06-11 07:01:54 +00:00
dyoung 3514b9346c Use device_t. 2008-06-11 06:28:18 +00:00
dyoung 1e479b72f8 In device_pmf_driver_deregister, postpone deleting a device_t's
reference to the PMF private data until the private data has no
more waiters.  This protects against a NULL dereference.

In device_pmf_lock1(), test a device_t for PMF registration before
dereferencing its PMF private data.
2008-06-11 06:26:32 +00:00
dyoung f100644906 Remove code that is redundant with cardbus_child_resume(), which
restores PCI configuration space and restores the power state to
D0.
2008-06-11 05:33:44 +00:00
kiyohara c89be31957 Enable siop and scsi bus/devices. 2008-06-11 02:23:52 +00:00
kiyohara 064d2af81d Fix use pci clock for siop(4), set value "use_pciclock" is 1 by
prop_dictionary_set_bool().
2008-06-11 02:14:29 +00:00
kiyohara c3b43ec571 Support use PCI Clock(SF_CHIP_USEPCIC). We can set the value "use_pciclock"
by prop_dictionary_set_bool().
2008-06-11 02:09:16 +00:00
cegger fc8fd752ef device_private(device_lookup()) -> device_lookup_private()
ok cube@
2008-06-10 22:53:08 +00:00
he 26a302aa36 Avoid the effects of name space pollution caused by <sys/rb.h>,
which defines rb_data, by instead naming the struct field rxb_data.
2008-06-10 22:44:07 +00:00
dyoung fa64da0d81 Fix a couple of mistakes in the device_t/softc split that cause
machines such as my HP Pavilion N3270 to freeze at boot.  This
should fix PR kern/38815, too.
2008-06-10 21:19:01 +00:00
tls f5792c6ee8 Apply patch from Darryl Miles which adjusts SSL_shutdown's behavior for
non-blocking BIOs so that it is sane -- so that, in other words, -1 with
a meaningful library error code (WANT_READ or WANT_WRITE) is returned
when we would block for I/O.  Without this change, you have to sleep or
spin -- you can't know how to put the underlying socket in your select
or poll set.

Patch from http://marc.info/?l=openssl-dev&m=115154030723033&w=2 and
rationale at http://marc.info/?l=openssl-dev&m=115153998821797&w=2 where
sadly they were overlooked by the OpenSSL team for some time.  It is hoped
that now that we've brought this change to their attention they will
integrate it into their sources and we can lose the local change in
NetBSD.
2008-06-10 19:45:00 +00:00
aymeric 2974b82da3 enable the wcurses-enabled vi as 'nvi', 'nex', and 'nview'.
Will be put in place of the default "non-n" variants when they are stable.
2008-06-10 18:41:47 +00:00
drochner b66156c7c9 Disable use of pseudo-devices defined "defpseudo" with interface
attributes, but provide compatibility for older source trees (according
to the "version" in conf/files and other files.*.
reviewed by cube
2008-06-10 18:11:31 +00:00
simonb c097615632 Describe the simonb-wapbl branch. 2008-06-10 14:43:36 +00:00
simonb a0f8ee25d3 In mount_domount() there is no need to initialise "mp" if the first time
we use it we set it.
2008-06-10 14:14:01 +00:00
cube 53faa53d5a Do proper config(5) version checking after previous changes [hi drochner!].
The rule is, if you change scan.l or gram.y, you bump the config(5)
version.  If you implement the changes under sys/conf/files or affiliate,
you bump the required version in sys/conf/files or in an appropriate place
to minimise annoyance.  If the changes makes new config(1) incompatible
with a previous version of config(5), embed it in config(1) using the
CONFIG_MINVERSION definition along with CONFIG_VERSION.

This has been in the tree for what, 3 years now?  It's even documented...
2008-06-10 14:03:57 +00:00
hamajima 842797c2cc revise for reorganized MI i2c_bitbang.c 2008-06-10 13:53:28 +00:00
wiz 3c60159914 Bump date for previous. 2008-06-10 12:56:33 +00:00
drochner 1f0a423884 use new "defpseudodev" where appropriate, and remove dummy interface
attribute definitions which were only to trick config(8)
2008-06-10 12:49:16 +00:00
drochner 8456b350de Seperate pseudo-devs which don't use device_t et al. (the classical
ones, mostly network pseudo interfaces) and those which use autoconf
to attach instances dynamically, or to attach child devices.
Use a new keyword "defpseudodev" for the latter.
Issue a warning if interface attributes are used with "old" pseudodevs,
but let it work as before for now. This will be removed soon.
approved by cube
2008-06-10 12:35:32 +00:00
ad 06da5288fa There can be existing waiters on a socket's condition variables when we
change socket::so_lock, and they rely on the old lock to synchronize.
Wake them up whenever we change so_lock so they can restart their waits.
2008-06-10 11:49:11 +00:00
ad 0964f00a45 Replace the example with something a bit more up to date. 2008-06-09 21:58:57 +00:00
njoly f7cecd2466 Do set mbuf in all cases, even for salen value of 0; otherwise this
will make a panic later when trying to free memory from a random
adress.

XXX Need to revisit it later to avoid mbuf allocation in this case.
2008-06-09 21:17:58 +00:00
he 28599b0f97 Mirror the changes to sys/arch/cats/conf/Makefile.cats.inc: remove
some more ELF sections when copying to a.out format: .debug_frame,
.debug_loc, .debug_pubnames, and .debug_aranges.
2008-06-09 20:05:12 +00:00
tsutsui bdb5991549 Emulate open collector output more properly to make it work with
reorganized MI i2c_bitbang.c:
- set GPOER register in set_dir function too according to GPOUTR value
- in set_bits function, don't set SDA_BIT implicitly in input mode and
  check current direction to handle GPOER register
- no need to check direction in read_check function because reading SCL
  is valid even if SDA is output

Tested by Donald T Hayford on port-arm.
2008-06-09 15:42:25 +00:00
ad da0a41c294 Update a comment. 2008-06-09 15:42:01 +00:00
ad 6bb1c8bc6f swappable: invert previous so we check for SACTIVE or SSTOP. 2008-06-09 11:52:34 +00:00
ad a3196ec57e swappable: return false if l->l_proc->p_stat == SDYING. 2008-06-09 11:51:43 +00:00
ad 0cd7bfa598 uvm_proc_exit: use macros to disable preemption. 2008-06-09 11:49:54 +00:00
ad f77c704577 Fix error in previous. 2008-06-09 11:49:40 +00:00
ad c862aeca6f ras_purgeall: avoid taking p_auxlock. 2008-06-09 11:46:34 +00:00
freza 6e9d339816 o Split device_t/softc for agp(4).
o agp_ali.c: remove unused 'agp' member from agp_ali_softc.
o drm: agp_find_device() returns 'void *', not a device_t.
o Use device_t, cfdata_t instead of struct pointers.
o Don't cast void pointers in assignments.
2008-06-09 06:49:54 +00:00
lukem 8cc604a385 Add missing RCSID. 2008-06-09 01:00:23 +00:00
lukem ef70558f4f Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.
2008-06-09 00:33:39 +00:00
uwe b3f49ac041 sh_vector_generic - reorder literals to improve locality of reference. 2008-06-08 23:45:33 +00:00
uwe 1a80db70f1 Match PC address for single-stepping, program BARA = tf->tf_spc before
returning from exception.

Makes single-stepping work on sh3 - without matching the address sh3
gets stuck at the instruction we are at, getting EXPEVT_BREAK before
executing the instruction.
2008-06-08 22:13:09 +00:00
uwe ce2ea531e9 Use "pc" and "sr" instead of "spc" and "ssr" to refer to those
registers in DDB.  Names with initial "s" (for "saved") are somewhat
confusing to use.  The fact that we use SPC/SSR registers to retrieve
values of PC/SR at the moment of trap is an immaterial implementation
detail.
2008-06-08 22:02:08 +00:00
tsutsui 62e807c2fe Use device_lookup_private() rather than using cd_devs[] directly to get softc. 2008-06-08 18:35:25 +00:00
tsutsui 9499107496 Use device_lookup_private() rathter than device_private(device_lookup()). 2008-06-08 18:34:06 +00:00
tsutsui 887a89aa5c Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.
2008-06-08 18:18:33 +00:00
tsutsui c9a8620b99 Replace homegrown pad_find_softc() with device_lookup_private(). 2008-06-08 18:14:31 +00:00
tsutsui fefb677d21 Use device_private() and device_lookup_private() to get softc
and to see if device unit is vaild.
2008-06-08 17:30:08 +00:00
tsutsui edcf0507a0 Use device_private() and device_lookup_private() in more places. 2008-06-08 17:27:51 +00:00
tsutsui e45b74073d Use device_private() and device_lookup_private() to get softc. 2008-06-08 17:08:23 +00:00
tsutsui a0e4edbb58 Use device_lookup_private() to get softc. 2008-06-08 16:39:43 +00:00
tsutsui 40b72ee81a Use device_private() and device_lookup_private() to get softc. 2008-06-08 16:39:11 +00:00
tsutsui 5b30cb96d9 Use device_lookup_private() to get softc. 2008-06-08 15:44:17 +00:00
joerg d2768df2f3 Mention 64bit support once during boot and not every time the controller
is reset.
2008-06-08 14:02:25 +00:00
tsutsui 1f459d82b5 Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00