Commit Graph

171023 Commits

Author SHA1 Message Date
cegger 3e484e6172 - use device_lookup_private to get softc
- ansify
2008-06-11 18:46:24 +00:00
drochner 96a9f67868 in sme_battery_check(), explicitely check whether the battery is
present before using the values read, and clean up the logics
a bit to make it more understandable
2008-06-11 17:40:06 +00:00
drochner 733bb117b5 remove a KBC_ENABLE call in the console poll method -- this was
just a workaround and is not necessary anymore
2008-06-11 17:35:02 +00:00
drochner a39050eb5f use device_lookup_private() to get the softc -- while device/softc
are not split yet, it is better than a typecast
2008-06-11 17:32:30 +00:00
njoly a06f4beef4 Remove extra column in linux cpuinfo output. 2008-06-11 17:29:56 +00:00
drochner ddb238521e fix some missing pieces of device/softc split 2008-06-11 17:27:59 +00:00
perry dc28a7678e make the example more generic, and include a test 2008-06-11 17:14:52 +00:00
tsutsui d1336c20ea Use device_lookup_private() to get softc.
XXX this driver assumes cf_unit is always zero
2008-06-11 16:46:11 +00:00
joerg d40cb84328 If key usage validation is requested, ensure that all bits exist.
Check the certificates before printing that the signature is valid.
Improvide wording of error message as suggested by Love.
2008-06-11 16:31:09 +00:00
cegger 7028bd34e9 use device_lookup_private to get sc
ok cube
2008-06-11 16:17:01 +00:00
drochner 5e7d2c641f don't use cfdriver_t->cd_devs directly 2008-06-11 16:09:16 +00:00
drochner a748803de9 tighten type checking: use device_t instead of void* at some places 2008-06-11 15:56:11 +00:00
tsutsui e6a3083c69 Use device_lookup_private() to get softc. 2008-06-11 14:55:30 +00:00
tsutsui cb09de1924 Use device_private() and device_lookup_privat() to get softc. 2008-06-11 14:35:53 +00:00
ad 62c877a460 Don't call uvm_pageidlezero() if the CPU is marked offline. 2008-06-11 13:42:02 +00:00
njoly d0c76a36cb In linux_sys_sendto, do not unconditionnally set MSG_NAMEMBUF to
msg_flags; add it only if a target adress was provided and needs to be
converted.
2008-06-11 13:02:00 +00:00
tsutsui 937f5cd4e8 Use device_private() and device_lookup_private() to get softc. 2008-06-11 12:59:10 +00:00
tsutsui 13a1e15f0e Use device_lookup_private() to get softc. 2008-06-11 12:41:22 +00:00
drochner 520a61068b remove the hacks around fakemdrootdev[] which should be unnecessary now
that "md" devices show up in the "alldevs" list
2008-06-11 10:40:21 +00:00
drochner 29fbb6a62e Replace the weird method to create instances by config_attach_pseudo()
as everyone else does, and remove the private table of instances which
is replaced by the table in the cfdriver.
This could get more cleanup, and I didn't split device/softc yet.
2008-06-11 10:38:44 +00:00
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