]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoThis commit was generated by cvs2svn to compensate for changes in r147078,
Gregory Neil Shapiro [Tue, 7 Jun 2005 04:14:59 +0000 (04:14 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147078,
which included commits to RCS files with non-trunk default branches.

19 years agoImport sendmail 8.13.4
Gregory Neil Shapiro [Tue, 7 Jun 2005 04:14:59 +0000 (04:14 +0000)]
Import sendmail 8.13.4

19 years agoNULL is not a valid time_t.
Brooks Davis [Tue, 7 Jun 2005 04:14:54 +0000 (04:14 +0000)]
NULL is not a valid time_t.

Submitted by: sam

19 years agoWe don't support BPF write filters at this time.
Brooks Davis [Tue, 7 Jun 2005 04:13:52 +0000 (04:13 +0000)]
We don't support BPF write filters at this time.

Submitted by: sam

19 years agoTake the OpenBSD version of the Makefile to resolve conflicts as the old
Brooks Davis [Tue, 7 Jun 2005 04:08:50 +0000 (04:08 +0000)]
Take the OpenBSD version of the Makefile to resolve conflicts as the old
one is irrelevent.  Add $FreeBSD.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147072,
Brooks Davis [Tue, 7 Jun 2005 04:05:09 +0000 (04:05 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147072,
which included commits to RCS files with non-trunk default branches.

19 years agoImport the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag
Brooks Davis [Tue, 7 Jun 2005 04:05:09 +0000 (04:05 +0000)]
Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag
OPENBSD_3_7).

19 years agoRemove the bits to build the isc-dhclient.
Brooks Davis [Tue, 7 Jun 2005 04:02:10 +0000 (04:02 +0000)]
Remove the bits to build the isc-dhclient.

19 years agoTemporarily disconnect dhclient from the build while I import the
Brooks Davis [Tue, 7 Jun 2005 03:59:26 +0000 (03:59 +0000)]
Temporarily disconnect dhclient from the build while I import the
OpenBSD version.

19 years agoFinish adding _dhcp user.
Maxim Konovalov [Tue, 7 Jun 2005 03:41:20 +0000 (03:41 +0000)]
Finish adding _dhcp user.

19 years ago - Fix the case where we're not preempting but there is already a newtd
Jeff Roberson [Tue, 7 Jun 2005 02:59:16 +0000 (02:59 +0000)]
 - Fix the case where we're not preempting but there is already a newtd
   as this happens via thread_switchout().  I don't particularly like the
   structure of the code here.  We twice call out to thread code when
   a thread is voluntarily switching.  Once to thread_switchout() and once
   to slot_fill(), while sched_4BSD does even more work which is redundant
   to select another thread to use our remaining slice.  This should be
   simplified in the future, but for now I'm only going to fix the bug not
   the bad design.

19 years agoSet the correct IFS parameters for the beacon tx queue
Sam Leffler [Tue, 7 Jun 2005 00:12:40 +0000 (00:12 +0000)]
Set the correct IFS parameters for the beacon tx queue
when operating in ap and adhoc modes.

19 years agoWPA/802.11i interoperability fixes:
Sam Leffler [Tue, 7 Jun 2005 00:08:48 +0000 (00:08 +0000)]
WPA/802.11i interoperability fixes:
o only include capabilities word in the WPA ie when non-zero and
  not preauth
o always include the capabilities in the RSN ie

Obtained from: Atheros

19 years agoChange the maximum bpf program instruction limitation from being hard-
Christian S.J. Peron [Mon, 6 Jun 2005 22:19:59 +0000 (22:19 +0000)]
Change the maximum bpf program instruction limitation from being hard-
coded at 512 (BPF_MAXINSNS) to being tunable. This is useful for users
who wish to use complex or large bpf programs when filtering traffic.
For now we will default it to BPF_MAXINSNS. I have tested bpf programs
with well over 21,000 instructions without any problems.

Discussed with: phk

19 years agoMake "show msgbuf" use the pager instead of blasting the whole thing out.
Doug White [Mon, 6 Jun 2005 22:18:32 +0000 (22:18 +0000)]
Make "show msgbuf" use the pager instead of blasting the whole thing out.

MFC after: 3 days

19 years agoOpen devices RDONLY for ioctls. That makes it work on open devices to which
Søren Schmidt [Mon, 6 Jun 2005 20:46:51 +0000 (20:46 +0000)]
Open devices RDONLY for ioctls. That makes it work on open devices to which
GEOM doesn't allow WR access.

19 years agoAdd _dhcp user/group as required by the OpenBSD dhclient.
Brooks Davis [Mon, 6 Jun 2005 20:19:56 +0000 (20:19 +0000)]
Add _dhcp user/group as required by the OpenBSD dhclient.

19 years agoFix for a bug in the change that walks the scoreboard backwards from
Paul Saab [Mon, 6 Jun 2005 19:46:53 +0000 (19:46 +0000)]
Fix for a bug in the change that walks the scoreboard backwards from
the tail (in tcp_sack_option()). The bug was caused by incorrect
accounting of the retransmitted bytes in the sackhint.

Reported by:    Kris Kennaway.
Submitted by:   Noritoshi Demizu.

19 years agoNote read-only support for NVIDIA MediaShield.
Christian Brueffer [Mon, 6 Jun 2005 19:08:12 +0000 (19:08 +0000)]
Note read-only support for NVIDIA MediaShield.

19 years agoSend link state change notifications to /dev/devctl. This is needed to
Brooks Davis [Mon, 6 Jun 2005 19:08:11 +0000 (19:08 +0000)]
Send link state change notifications to /dev/devctl.  This is needed to
start the OpenBSD dhclient when links come up.

19 years agoFix libssh dependency.
Dag-Erling Smørgrav [Mon, 6 Jun 2005 19:01:01 +0000 (19:01 +0000)]
Fix libssh dependency.

19 years agoMisc keycache changes:
Sam Leffler [Mon, 6 Jun 2005 16:39:21 +0000 (16:39 +0000)]
Misc keycache changes:
o purge ath_initkeytable; it's not needed
o add multicast key search support for supporting multiple group keys
  (disabled for now; requires updated hal)
o create keycache entry for stations using open auth so they get h/w
  antenna management support
o add keycache -> node mapping table; eliminates mac-based lookup in
  the net80211 layer

19 years agoMake libssh an INTERNALLIB like it is in {Net,Open}BSD.
Dag-Erling Smørgrav [Mon, 6 Jun 2005 16:13:07 +0000 (16:13 +0000)]
Make libssh an INTERNALLIB like it is in {Net,Open}BSD.

19 years agoo Typo.
Maxim Konovalov [Mon, 6 Jun 2005 16:10:58 +0000 (16:10 +0000)]
o Typo.

Submitted by: Jung-uk Kim

19 years agoApply the usual woodoo for 64bitness.
Søren Schmidt [Mon, 6 Jun 2005 15:49:09 +0000 (15:49 +0000)]
Apply the usual woodoo for 64bitness.

19 years agoWhen operating the diopter adjustment knob with your eye to the view-
Wilko Bulte [Mon, 6 Jun 2005 15:43:00 +0000 (15:43 +0000)]
When operating the diopter adjustment knob with your eye to the view-
finder, be careful not to put your fingers or fingernails in your eye.
                -- found in the users manual of the Nikon D2x camera,
                   a camera for professional photographers
%

19 years agoAdd support for nVidia's software RAID "MediaShield".
Søren Schmidt [Mon, 6 Jun 2005 13:35:24 +0000 (13:35 +0000)]
Add support for nVidia's software RAID "MediaShield".

HW Sponsored by: Yahoo!

19 years agoo Fix the release dates of FreeBSD 1.1, 1.1.5.1, 2.0, add the release
Maxim Konovalov [Mon, 6 Jun 2005 13:08:22 +0000 (13:08 +0000)]
o Fix the release dates of FreeBSD 1.1, 1.1.5.1, 2.0, add the release
date of FreeBSD 1.1.5.

o URL to "Unix at 25" is reachable now.

PR: misc/81931
Submitted by: Gavin Atkinson
MFC after: 3 days

19 years agoUntil someone who owns the various TGA-based cards has time to fix the
Wilko Bulte [Mon, 6 Jun 2005 10:53:10 +0000 (10:53 +0000)]
Until someone who owns the various TGA-based cards has time to fix the
driver it is better to not include the driver in GENERIC as it panics
the system on probing a TGA.

19 years agoAllow to override the compiler, linker, and assembler used to build 32-bit
Ruslan Ermilov [Mon, 6 Jun 2005 09:39:46 +0000 (09:39 +0000)]
Allow to override the compiler, linker, and assembler used to build 32-bit
shim libraries on amd64.

19 years agoFix a silly little typo I just spotted.
Philip Paeps [Mon, 6 Jun 2005 06:47:33 +0000 (06:47 +0000)]
Fix a silly little typo I just spotted.

19 years agoNot yet ready to burn this, so unmark power stuff.... non-type 0 busses still need...
Warner Losh [Mon, 6 Jun 2005 06:05:32 +0000 (06:05 +0000)]
Not yet ready to burn this, so unmark power stuff.... non-type 0 busses still need to do this

19 years agoFix a bug relavant to debugging, a masked signal unexpectedly interrupts
David Xu [Mon, 6 Jun 2005 05:13:10 +0000 (05:13 +0000)]
Fix a bug relavant to debugging, a masked signal unexpectedly interrupts
a sleeping thread when process is being debugged.

PR: GNU/77818
Tested by: Sean C. Farley <sean-freebsd at farley org>

19 years agoadd force flag to enmic/demic crypto api for use in xmit fragmentation
Sam Leffler [Mon, 6 Jun 2005 04:04:38 +0000 (04:04 +0000)]
add force flag to enmic/demic crypto api for use in xmit fragmentation
and h/w mic verification

Reviewed by: avatar

19 years agohookup wpa tools to the build
Sam Leffler [Mon, 6 Jun 2005 03:58:02 +0000 (03:58 +0000)]
hookup wpa tools to the build

19 years agoAdd -R modifier for the mode when pkg_create(8) creates package file
Maxim Sobolev [Mon, 6 Jun 2005 03:24:14 +0000 (03:24 +0000)]
Add -R modifier for the mode when pkg_create(8) creates package file
from the locally installed package. When this modifier is specified
pkg_create(8) will also create package files for all packages on
which that locally installed package depends.

MFC after: 5 days

19 years agoCorrect comment
Warner Losh [Mon, 6 Jun 2005 03:22:51 +0000 (03:22 +0000)]
Correct comment

19 years agoRemove RCng files that were brought in from NetBSD, but we ended up not
David E. O'Brien [Mon, 6 Jun 2005 02:51:26 +0000 (02:51 +0000)]
Remove RCng files that were brought in from NetBSD, but we ended up not
using them (or did and no longer do).

19 years agoChange ipv6 packet filtering to match ipv4. It now checks pfil_member and
Andrew Thompson [Mon, 6 Jun 2005 02:41:29 +0000 (02:41 +0000)]
Change ipv6 packet filtering to match ipv4. It now checks pfil_member and
pfil_bridge to determine which interfaces to filter on.

Approved by: mlaier (mentor)

19 years agofreebsd pieces of hostapd support
Sam Leffler [Mon, 6 Jun 2005 02:13:42 +0000 (02:13 +0000)]
freebsd pieces of hostapd support

19 years agoRemove some variables the last commit stopped using so the code compiles.
Brooks Davis [Mon, 6 Jun 2005 02:12:12 +0000 (02:12 +0000)]
Remove some variables the last commit stopped using so the code compiles.

19 years agoAdd missing Va in ifi_epoch entry.
Brooks Davis [Mon, 6 Jun 2005 00:21:28 +0000 (00:21 +0000)]
Add missing Va in ifi_epoch entry.

19 years agoAdd entry for recoverdisk.
Maxim Sobolev [Mon, 6 Jun 2005 00:18:17 +0000 (00:18 +0000)]
Add entry for recoverdisk.

19 years agoAppend a newline character to the usage string.
Christian S.J. Peron [Sun, 5 Jun 2005 23:49:35 +0000 (23:49 +0000)]
Append a newline character to the usage string.

MFC after: 3 days

19 years agoAs threatened by BURN_BRIDGES, restire PCIR_MAPS and PCIR_HEADERTYPE
Warner Losh [Sun, 5 Jun 2005 23:08:59 +0000 (23:08 +0000)]
As threatened by BURN_BRIDGES, restire PCIR_MAPS and PCIR_HEADERTYPE

19 years agoUse same RID we allocated the resource with to free it
Warner Losh [Sun, 5 Jun 2005 23:05:26 +0000 (23:05 +0000)]
Use same RID we allocated the resource with to free it

19 years agoThese registers are saved by pci bus code. Remove from #if 0'd code anyway
Warner Losh [Sun, 5 Jun 2005 22:57:32 +0000 (22:57 +0000)]
These registers are saved by pci bus code.  Remove from #if 0'd code anyway

19 years agoPower state management now done in PCI bus code
Warner Losh [Sun, 5 Jun 2005 22:53:09 +0000 (22:53 +0000)]
Power state management now done in PCI bus code

19 years agoThe PCI bus code saves/restores these config registers now.
Warner Losh [Sun, 5 Jun 2005 22:50:55 +0000 (22:50 +0000)]
The PCI bus code saves/restores these config registers now.

19 years agoPowerstate stuff now done in PCI bus driver
Warner Losh [Sun, 5 Jun 2005 22:48:15 +0000 (22:48 +0000)]
Powerstate stuff now done in PCI bus driver

19 years agoThe PCI bus code saves/restores these config registers now.
Warner Losh [Sun, 5 Jun 2005 22:45:19 +0000 (22:45 +0000)]
The PCI bus code saves/restores these config registers now.

19 years agoapply important fixes from development branch
Sam Leffler [Sun, 5 Jun 2005 22:41:14 +0000 (22:41 +0000)]
apply important fixes from development branch

19 years agoimport/upgrade instructions
Sam Leffler [Sun, 5 Jun 2005 22:36:46 +0000 (22:36 +0000)]
import/upgrade instructions

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147021,
Sam Leffler [Sun, 5 Jun 2005 22:35:03 +0000 (22:35 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147021,
which included commits to RCS files with non-trunk default branches.

19 years agoStripped down import of hostapd v0.3.7
Sam Leffler [Sun, 5 Jun 2005 22:35:03 +0000 (22:35 +0000)]
Stripped down import of hostapd v0.3.7

19 years agofreebsd pieces of wpa supplicant support
Sam Leffler [Sun, 5 Jun 2005 21:18:53 +0000 (21:18 +0000)]
freebsd pieces of wpa supplicant support

Reviewed by: brooks

19 years agoMake nVidia SATA hotplug support DTRT.
Søren Schmidt [Sun, 5 Jun 2005 21:18:26 +0000 (21:18 +0000)]
Make nVidia SATA hotplug support DTRT.

HW sponsored by: Yahoo!

19 years agofix for ctrl interface socket setup
Sam Leffler [Sun, 5 Jun 2005 21:13:08 +0000 (21:13 +0000)]
fix for ctrl interface socket setup

Submitted by: brooks

19 years agoimport/ugprade instructions
Sam Leffler [Sun, 5 Jun 2005 20:55:01 +0000 (20:55 +0000)]
import/ugprade instructions

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147013,
Sam Leffler [Sun, 5 Jun 2005 20:52:14 +0000 (20:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147013,
which included commits to RCS files with non-trunk default branches.

19 years agoStripped down import of wpa_supplicant v0.3.8
Sam Leffler [Sun, 5 Jun 2005 20:52:14 +0000 (20:52 +0000)]
Stripped down import of wpa_supplicant v0.3.8

19 years agoUnbreak the ICH6 AHCI support in !48Bit mode.
Søren Schmidt [Sun, 5 Jun 2005 18:37:56 +0000 (18:37 +0000)]
Unbreak the ICH6 AHCI support in !48Bit mode.

19 years agoInstall ports defined in PORTS_MODULES at make reinstall time too.
Maxime Henrion [Sun, 5 Jun 2005 18:34:16 +0000 (18:34 +0000)]
Install ports defined in PORTS_MODULES at make reinstall time too.

Reviewed by: imp

19 years agoForgot to bump the version addendum.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 18:30:53 +0000 (18:30 +0000)]
Forgot to bump the version addendum.

19 years agoAllow sends sent from non page-aligned userspace addresses to be
Andrew Gallatin [Sun, 5 Jun 2005 17:13:23 +0000 (17:13 +0000)]
Allow sends sent from non page-aligned userspace addresses to be
considered for zero-copy sends.

Reviewed by: alc
Submitted by: Romer Gil at Rice University

19 years agoNew release notes: if_bridge(4).
Bruce A. Mah [Sun, 5 Jun 2005 16:16:31 +0000 (16:16 +0000)]
New release notes:  if_bridge(4).

Updated release notes:  OpenSSH 4.1p1.

19 years agoUpdate for OpenSSH 4.1p1.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:47:07 +0000 (15:47 +0000)]
Update for OpenSSH 4.1p1.

19 years agoRegenerate.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:46:27 +0000 (15:46 +0000)]
Regenerate.

19 years agoResolve conflicts.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:46:09 +0000 (15:46 +0000)]
Resolve conflicts.

19 years agoUpdate for 4.1p1.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:43:57 +0000 (15:43 +0000)]
Update for 4.1p1.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r147001,
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:41:57 +0000 (15:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r147001,
which included commits to RCS files with non-trunk default branches.

19 years agoVendor import of OpenSSH 4.1p1.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:41:57 +0000 (15:41 +0000)]
Vendor import of OpenSSH 4.1p1.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146998,
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:40:50 +0000 (15:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146998,
which included commits to RCS files with non-trunk default branches.

19 years agoVendor import of OpenSSH 4.0p1.
Dag-Erling Smørgrav [Sun, 5 Jun 2005 15:40:50 +0000 (15:40 +0000)]
Vendor import of OpenSSH 4.0p1.

19 years agoHook ichsmb to build.
Takanori Watanabe [Sun, 5 Jun 2005 12:00:03 +0000 (12:00 +0000)]
Hook ichsmb to build.

19 years agoMake ichsmb loadable.
Takanori Watanabe [Sun, 5 Jun 2005 11:55:29 +0000 (11:55 +0000)]
Make ichsmb loadable.

PR: kern/81912
Submitted by:  nork

19 years agoRemove superfluous breaks.
Marius Strobl [Sun, 5 Jun 2005 10:16:27 +0000 (10:16 +0000)]
Remove superfluous breaks.

19 years agoEliminate an unused field from struct aio_liojob.
Alan Cox [Sun, 5 Jun 2005 05:41:48 +0000 (05:41 +0000)]
Eliminate an unused field from struct aio_liojob.

19 years agoLet kmod.mk create an empty .h file.
Ruslan Ermilov [Sun, 5 Jun 2005 05:30:37 +0000 (05:30 +0000)]
Let kmod.mk create an empty .h file.

19 years agoFix deprecated name, and let kmod.mk create an empty .h file.
Ruslan Ermilov [Sun, 5 Jun 2005 05:28:41 +0000 (05:28 +0000)]
Fix deprecated name, and let kmod.mk create an empty .h file.

19 years agoFix indentation of two comment blocks from the last commit.
Andrew Thompson [Sun, 5 Jun 2005 03:49:23 +0000 (03:49 +0000)]
Fix indentation of two comment blocks from the last commit.

Approved by: mlaier (mentor)

19 years agoBump __FreeBSD_version for if_bridge.
Andrew Thompson [Sun, 5 Jun 2005 03:38:03 +0000 (03:38 +0000)]
Bump __FreeBSD_version for if_bridge.

Approved by: mlaier (mentor)

19 years agoConnect if_bridge to the build.
Andrew Thompson [Sun, 5 Jun 2005 03:32:53 +0000 (03:32 +0000)]
Connect if_bridge to the build.

Approved by: mlaier (mentor)

19 years agoAdd hooks into the networking layer to support if_bridge. This changes struct
Andrew Thompson [Sun, 5 Jun 2005 03:13:13 +0000 (03:13 +0000)]
Add hooks into the networking layer to support if_bridge. This changes struct
ifnet so a buildworld is necessary.

Approved by: mlaier (mentor)
Obtained from: NetBSD

19 years agoAdd if_bridge, which provides more advanced Ethernet bridging and 802.1d
Andrew Thompson [Sun, 5 Jun 2005 02:59:26 +0000 (02:59 +0000)]
Add if_bridge, which provides more advanced Ethernet bridging and 802.1d
spanning tree support.

Based on Jason Wright's bridge driver from OpenBSD, and modified by Jason R.
Thorpe in NetBSD.

Reviewed by: mlaier, bms, green
Silence from: -net
Approved by: mlaier (mentor)
Obtained from: NetBSD

19 years agoAvoid casting from (int *) to (size_t *) in order to fix udf_iconv on amd64.
R. Imura [Sun, 5 Jun 2005 02:09:48 +0000 (02:09 +0000)]
Avoid casting from (int *) to (size_t *) in order to fix udf_iconv on amd64.

Reviewed by: scottl
MFC after: 2 weeks

19 years agoUse the ki_udata field that was recently-added to kinfo_proc, instead of
Garance A Drosehn [Sat, 4 Jun 2005 23:40:09 +0000 (23:40 +0000)]
Use the ki_udata field that was recently-added to kinfo_proc, instead of
stealing ki_spare[0] to hold a pointer.

19 years agoAfter some input from bde@ and rereading the datasheet use a MTX_SPIN
Marius Strobl [Sat, 4 Jun 2005 23:24:50 +0000 (23:24 +0000)]
After some input from bde@ and rereading the datasheet use a MTX_SPIN
mutex instead of a MTX_DEF one in order to defer preemption while
reading the date and time registers. If we don't manage to read them
within the time slot where we are guaranteed that no updates occur we
might actually read them during an update in which case the output is
undefined.

19 years agoRewrite some of the regexps so they don't match themselves.
Dag-Erling Smørgrav [Sat, 4 Jun 2005 23:18:33 +0000 (23:18 +0000)]
Rewrite some of the regexps so they don't match themselves.

19 years agoMinor clean up for flags restoration: Use fchflags/lchflags when
Tim Kientzle [Sat, 4 Jun 2005 22:30:36 +0000 (22:30 +0000)]
Minor clean up for flags restoration: Use fchflags/lchflags when
available, stub out flags restore on platforms that don't support it,
update autoconf to probe for fchflags and lchflags support.

19 years agoSort archive_entry_ctime/archive_entry_ctime_nsec correctly.
Tim Kientzle [Sat, 4 Jun 2005 22:26:23 +0000 (22:26 +0000)]
Sort archive_entry_ctime/archive_entry_ctime_nsec correctly.

19 years agoSupport libarchive with C++ by adding appropriate conditional
Tim Kientzle [Sat, 4 Jun 2005 22:24:04 +0000 (22:24 +0000)]
Support libarchive with C++ by adding appropriate conditional
extern "C" declarations.

19 years agoFix one error in the example usage of the archive_write API and fill
Tim Kientzle [Sat, 4 Jun 2005 22:19:25 +0000 (22:19 +0000)]
Fix one error in the example usage of the archive_write API and fill
in a few missing details.  The example code here is now a complete,
functioning example program.

19 years agoFix getsecs(). It was not counting the seconds right. The immediate
Marcel Moolenaar [Sat, 4 Jun 2005 21:55:51 +0000 (21:55 +0000)]
Fix getsecs(). It was not counting the seconds right. The immediate
and visible effect of the bug what that autoboot would boot a kernel
after only a couple of seconds had passed instead of waiting the
full 10 seconds it's supposed to wait by default.
Add my copyright notice, since one was missing and I reimplemented
the one and only function in this file.

MFC after: 1 week

19 years agoReplace the band-aid for allowing to call sunkbd_configure() multiple
Marius Strobl [Sat, 4 Jun 2005 21:54:31 +0000 (21:54 +0000)]
Replace the band-aid for allowing to call sunkbd_configure() multiple
times which was added in the last revision with what should be a proper
solution as long as keyboards that were pluggged in after the kernel
has fully booted aren't supported. I.e. when sunkbd_configure() is
called for the high-level console probe make sure that the keyboard is
both successfully configured (i.e. also probed) and attached. The band-
aid left the possibility to attach the keyboard device to the high-level
console without attaching the keyboard device itself when the keyboard
is plugged in after uart(4) attached but before syscons(4) does.

19 years agoOn AXi and AXmp boards the NS16550 (used to connect keyboard and mouse)
Marius Strobl [Sat, 4 Jun 2005 21:52:56 +0000 (21:52 +0000)]
On AXi and AXmp boards the NS16550 (used to connect keyboard and mouse)
share their IRQ lines with the i8042. Any IRQ activity (typically during
attach) on the NS16550 used to connect the keyboard when actually the
PS/2 keyboard is selected in OFW causes interaction with the OBP i8042
driver resulting in a hang (and vice versa). As RS232 keyboards and mice
obviously aren't meant to be used in parallel with PS/2 ones on these
boards don't attach to these NS16550 in case the RS232 keyboard isn't
selected in order to prevent such hangs.

Ok'ed by: marcel

19 years agoFix delay(). The processor cycle counter is a 32-bit wrapping counter.
Marcel Moolenaar [Sat, 4 Jun 2005 21:50:44 +0000 (21:50 +0000)]
Fix delay(). The processor cycle counter is a 32-bit wrapping counter.
Hence, mask off the upper 32 bits and deal with wrap-arounds.

MFC after: 1 week

19 years agoChange the semantics of uart_cpu_getdev_keyboard() to only match SCCs/
Marius Strobl [Sat, 4 Jun 2005 21:33:18 +0000 (21:33 +0000)]
Change the semantics of uart_cpu_getdev_keyboard() to only match SCCs/
UARTs used to connect keyboards and not also PS/2 keyboards and only
return their package handle in case the keyboard is the preferred one
according to the OFW but otherwise still regardless of whether the
keyboard is used for stdin or not. This is simply achieved by looking
at the 'keyboard' alias and returning the corresponding package handle
in case it refers to a SCC/UART. This is change is done in order to
give the keyboard which the OFW or the user selected in OFW on boards
that support additional types of keyboards besides the RS232 ones also
preference in FreeBSD. It will be also used to determine on Sun AXi and
Sun AXmp boards whether a PS/2 or a RS232 is to be used as these are
sort of mutual exclusive there (see upcoming commit to uart_bus_ebus.c).
Note that Tatung AXi boards have the same issue but the former code
happened to already give the PS/2 keyboard preference by not identifying
the respective UART as keyboard system device there because the PS/2
keyboard node precedes the keyboard UART one in the OFW device tree of
these boards (which isn't the case for the Sun AXi).

Ok'ed by: marcel

19 years ago- In machfb_configure() when probed for the high-level console return
Marius Strobl [Sat, 4 Jun 2005 21:18:30 +0000 (21:18 +0000)]
- In machfb_configure() when probed for the high-level console return
  the number of registered adapters instead of determining again whether
  stdout is a supported card (and which might have failed to attach and
  register).
- Fix a bug in the handling of the FBIOSCURSOR IOCTL; the code was meant
  to return ENODEV for all invocations expect when used to disable the
  cursor and not just when used for enabling the cursor.
- In case the adapter is the OFW stdout move its OFW cursor to the start
  of the last line on halt so OFW output doesn't get intermixed with what
  FreeBSD left on the screen.
- Drop variable names in the prototypes of some functions in order to
  match the style of majority of the prototypes in this file.

19 years ago- In creator_configure() when probed for the high-level console return
Marius Strobl [Sat, 4 Jun 2005 21:15:27 +0000 (21:15 +0000)]
- In creator_configure() when probed for the high-level console return
  the number of registered adapters instead of determining again whether
  stdout is a supported card (and which might have failed to attach and
  register).
- Drop creator_set_mode() and move the relevant parts to creator_fill_rect()
  and creator_putc() respectively. This is a bit cleaner than having to
  make sure that creator_set_mode() was called before creator_fill_rect()
  or creator_putc() are used and matches better what Xorg does.
- Fix a bug in the handling of the FBIOSCURSOR IOCTL; the code was meant
  to return ENODEV for all invocations expect when used to disable the
  cursor and not just when used for enabling the cursor.
- In case the adapter is the OFW stdout move its OFW cursor to the start
  of the last line on halt so OFW output doesn't get intermixed with what
  FreeBSD left on the screen. With hindsight this is what the faking of a
  hardware cursor which was removed in the last revision really was about,
  i.e. to keep the OFW updated about the current cursor position. The new
  approach however is simpler while producing the same result and doesn't
  cause the first letter of the OFW output to be turned into a blank and
  a newline.
- Add variable names to the prototypes of creator_cursor_*() which were
  added in the last revision and list them alphabetically in order to match
  the style of this file.