Commit Graph

148168 Commits

Author SHA1 Message Date
bouyer 82722a8d91 Backout previous: of course the change
"Allow optional /kern regular files to have custom read methods..."
works, it's used by Xen.
2006-06-23 16:26:59 +00:00
drochner 99f30cd9d2 add a comment telling which structure members are zero-initialized,
as requested by YAMAMOTO Takashi
2006-06-23 16:17:23 +00:00
kent f519fc40b7 add some constant macros for unsolicited response and jack sense 2006-06-23 15:49:28 +00:00
christos c8ee2595ab PR/33797: Geoff C. Wing: kernfs files are not supplying information
Roll back the change:
    'Allow optional /kern regular files to have custom read methods...'
which does not work.
2006-06-23 14:59:40 +00:00
yamt e408053d1b fix a simonb-timecounters regression.
the precision of getnanotime() is not suitable for file timestamps.
esp. when it's nfs-exported.

- introduce vfs_timestamp().
  (the name is from freebsd.  currently merely a wrapper of nanotime())
- for ufs-like filesystems, use it rather than getnanotime().

XXX check other filesystems.
2006-06-23 14:13:02 +00:00
mrg 9dcea3dbff add GCC4 mknative files for sun2. seems to build ok.. 2006-06-23 07:48:45 +00:00
garbled 17ca05a76f 1) Modify pnpbus attachment code to properly decode pnp memory range packets.
2) Modify pnpbus attachment code to record the chipid of the device if it
   has one.
3) Change the clock probes to use the chipid, rather than relying on
potentially untrustworthy subtype and interface.
4) Add decoding of memory ranges to the RESIDUAL_DUMP code.
5) Add a we@pnpbus device to allow netbooting and root device detection
from an IBM we ethernet.  (it will only work if your firmware detects it)
6) Because I moved the pnpbus probe to occur prior to pci and isa, it
screwed up the root device detection and firmware path building code.
Completely rewrite the fw-path detection code to deal with this.
2006-06-23 03:08:41 +00:00
christos e07adf704d PR/33794: Arnaud Degroote: Wiconfig is broken in current. I broke it with
the previous set of stack changes.
2006-06-22 21:53:37 +00:00
christos ab7ad9579e PR/33392: Aleksey Cheusov: Incorrect matching due to hard-coded limit in
number of states. Adapted from patch supplied.
2006-06-22 21:25:14 +00:00
mrg 0a294bff2f oops, powerpc64-netbsd should not include rs6000/netbsd.h. 2006-06-22 21:14:04 +00:00
mrg 1167183c92 make powerpc64 use GCC4. the first GCC4 platform!
add mipsel and mipseb to the list of platforms that could have GCC4
but not done yet.
2006-06-22 20:13:14 +00:00
mrg 1e5c7c79bc initial powerpc64-netbsd GCC configuration. this is only very minimally
tested and is not nearly ready for general use.

based on the 64 bit linux and 32 bit netbsd configurations.
2006-06-22 20:05:44 +00:00
mrg dbf21d98fa only build lint and lint2 if MKLINT != "no". 2006-06-22 20:03:41 +00:00
mrg d4ce694d06 preliminary support for powerpc64 toolchain:
- allow "-m macppc/evbppc" to also take "-a powerpc64" to build a
  powerpc64 toolchain.

XXX this may change, as an evbppc64 port may be required.
XXX deal with that when we have some code...
2006-06-22 20:00:18 +00:00
christos eadd73deca Centralize the TCP_NODELAY handling as discussed in tech-net. 2006-06-22 19:35:34 +00:00
christos aca1acfb3f Use the UTX sizes + 1 for the struct to save space.
Don't complain if pid == 0
2006-06-22 17:57:31 +00:00
jmcneill 242a0791bd Add timecounter support for Intel PIIX Power Management Controllers.
Ok kardel@.
2006-06-22 16:49:01 +00:00
jmcneill f86d875a7a Add an 'uninit' callback to PCI ICU drivers. This allows (for example) the
PIIX support to release its mapping on the edge/level control registers.

Now that these are guaranteed to be unmapped, capture and restore the
registers in piixpcib(4)'s powerhook. The same will need to be done on a
per-chipset basis.

Concerns were raised about calling pci_intr_fixup on resume WRT hotplug
devices, so this has been removed.

Ok cube@.
2006-06-22 16:24:34 +00:00
tnozaki d9cfca81ba fix typo. 2006-06-22 16:18:45 +00:00
tnozaki e476537d55 correct the code point incompatible with Big5. 2006-06-22 16:11:55 +00:00
jmcneill 58e47b4c68 Only call pci_intr_fixup if both PCI_INTR_FIXUP and PCIBIOS options are
defined.
2006-06-22 13:05:28 +00:00
tron 2087ddfc5a Create the configuration files for the 3.0.1 release ISOs. 2006-06-21 21:27:20 +00:00
explorer 02018a0856 formatting nit, newline, print device name 2006-06-21 21:09:36 +00:00
explorer b76f23191b Actually set amdpm_timecounter.tc_priv before using it later. 2006-06-21 20:16:35 +00:00
garbled 4c0cfa49ad Attach the pnpbus prior to attaching the pci bus on the prep. This
should allow us to probe for both pnp-attached devices and isa-attached
devices while preferring the pnpbus attachment point.
2006-06-21 20:08:11 +00:00
jmcneill c6b709de73 Call pci_intr_fixup on resume if options PCI_INTR_FIXUP is enabled. Solves
interrupt sharing issues on my Vaio PCG-Z505LEK after a suspend/resume
cycle.
2006-06-21 18:12:47 +00:00
jmcneill 287d6c5cf2 Allow pci_intr_fixup() to be called more than once. 2006-06-21 18:10:51 +00:00
drochner c14d23ac86 First cut on an implementation of an ACPI power management counter
backend for timecounters.
Due to known bugs in some chipsets, always read until we get 3 successive
samples which are monotonic, as FreeBSD does in its "safe" variant.
This can be refined later, either by chipset quirks or by a test (as
FreeBSD does).
2006-06-21 17:47:23 +00:00
drochner 9b00231778 zero-init callback_head by memset(). code is 12 bytes shorter 2006-06-21 17:16:00 +00:00
drochner f7c7c95eb6 make some bluetooth devices just devices, not interface attributes 2006-06-21 17:14:13 +00:00
yamt 8680c0eba3 yamt-lazymbuf: new base. 2006-06-21 15:20:39 +00:00
christos ece76dd170 Don't leak memory on success. Allocate only the type of struct that we'll
need for efficiency.
2006-06-21 13:46:17 +00:00
yamt 300d4b1ed6 bump default so_snd.sb_lowat to increase chance to use loaning.
the idea to tweak the watermark from Jonathan Stone.
reviewed by Bill Studenmund.
2006-06-21 12:55:12 +00:00
garbled e8a461299e Add INSTALL_SMALL here as well, otherwise we break the build. Thanks to
he for catching this.
2006-06-21 09:25:27 +00:00
lukem 884736fc9f add FTL, FTW. warcrack ftw! 2006-06-21 07:20:19 +00:00
rjs 74327480d3 Rename shadowing time variable. 2006-06-21 00:02:26 +00:00
jmcneill 92a6d96206 Regen. 2006-06-20 22:37:14 +00:00
jmcneill 93305d7b62 Make resetting the video BIOS in the ACPI wakecode optional. It can be
configured via sysctl machdep.acpi_vbios_reset. Defaults to 1 -- reset vbios
on resume.
2006-06-20 22:36:58 +00:00
drochner 5fea743b13 add license texts (public domain for hw header, minimal BSD for sw)
so that this stuff can be used by others
2006-06-20 20:30:22 +00:00
is d6a3b8fecd Fix typo in comment 2006-06-20 19:57:32 +00:00
rpaulo 63b3e9f51c It's not an error if we can't print CARP stats, it just means it's not built
in.
2006-06-20 19:22:17 +00:00
garbled d6f2802fd2 Build the INSTALL_SMALL kernel 2006-06-20 17:42:22 +00:00
garbled 5e21fd7369 Add support for the SMALL install image on prep 2006-06-20 17:40:36 +00:00
garbled cb76e8b6d7 Update install WRT recent clock changes, and break INSTALL into INSTALL
and INSTALL_SMALL.  Since floppy images have to fit on one floppy, we
have to really cut down on the drivers on that image, but people
netbooting don't have that problem, so they deserve a more featured
kernel to install with. (namely one with raid support and more ethernet
drivers)
2006-06-20 17:29:07 +00:00
christos a8b3562160 PR/33775: YAMAMOTO Takashi: /bin/sh doesn't accept "(" before case patterns 2006-06-20 15:57:44 +00:00
jmcneill 52f7cdcc1f Hook the lid switch, sleep button, and hibernate button into sysmon. This
enables special Fn keys on Sony Vaio laptops.
2006-06-20 15:35:11 +00:00
gdamore 1c8dd20510 Use portable | cat 1>&2 instead of > /dev/stderr. This allows this script
to work, and supports building on Solaris 10.

Reviewed/approved by jlam@.
2006-06-20 15:35:03 +00:00
skrll 86bff00eef Enable installation of ia64 includes - mostly from cherry. 2006-06-20 15:26:19 +00:00
perry 97da3b129c Power hook for ath pci front end.
Written and tested by George Michaelson [ggm at apnic.net]
2006-06-20 14:38:34 +00:00
oki aab3cbfbad Added saemul_pecoff structure, and (hope) work again w/ pthread. 2006-06-20 14:11:56 +00:00