]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoarm defaults to unsigned char as well.
Olivier Houchard [Tue, 24 May 2005 21:25:32 +0000 (21:25 +0000)]
arm defaults to unsigned char as well.

19 years agoUse -march=armv5te for Xscale.
Olivier Houchard [Tue, 24 May 2005 21:24:40 +0000 (21:24 +0000)]
Use -march=armv5te for Xscale.

19 years agoDon't set the tuner type to TUNER_MT2032 if BKTR_OVERRIDE_TUNER is defined or
Olivier Houchard [Tue, 24 May 2005 21:12:49 +0000 (21:12 +0000)]
Don't set the tuner type to TUNER_MT2032 if BKTR_OVERRIDE_TUNER is defined or
if hw.bt848.tuner has been set, so that we can force the tuner.

19 years agoFix one more misuse of u_long when uint32_t is actually meant.
Olivier Houchard [Tue, 24 May 2005 20:42:08 +0000 (20:42 +0000)]
Fix one more misuse of u_long when uint32_t is actually meant.

Submitted by: oliver
MFC after: 3 days

19 years agoUpdate (reduce) the list of committers with MAINTAINER= lines in Makefiles.
Jens Schweikhardt [Tue, 24 May 2005 18:54:07 +0000 (18:54 +0000)]
Update (reduce) the list of committers with MAINTAINER= lines in Makefiles.

19 years ago- Move the REISERFS option in the MD NOTES file for i386, it doesn't
Maxime Henrion [Tue, 24 May 2005 18:31:34 +0000 (18:31 +0000)]
- Move the REISERFS option in the MD NOTES file for i386, it doesn't
  exist on other architectures yet.
- While I'm here, fix the formatting of the options line.  The keyword
  "options" should be followed by a space and then a tab, not 2 tabs.

19 years agoCopyout to userland if kern_sigaction succeeds
Paul Saab [Tue, 24 May 2005 17:52:14 +0000 (17:52 +0000)]
Copyout to userland if kern_sigaction succeeds

19 years agoAdd new ral(4) and ural(4) drivers.
Damien Bergamini [Tue, 24 May 2005 16:48:07 +0000 (16:48 +0000)]
Add new ral(4) and ural(4) drivers.

Approved by: silby (mentor)

19 years agoThe caller of Var_Value() should not change the variable value. Make
Hartmut Brandt [Tue, 24 May 2005 16:05:51 +0000 (16:05 +0000)]
The caller of Var_Value() should not change the variable value. Make
this clear by constifying the return value.

Obtained from: DragonFlyBSD

19 years agoGet rid of the third argument to Var_Value() the pointer it pointed
Hartmut Brandt [Tue, 24 May 2005 15:58:35 +0000 (15:58 +0000)]
Get rid of the third argument to Var_Value() the pointer it pointed
to has always been set to NULL for some time now.

Obtained from: DragonFlyBSD

19 years agoMake shell.o dependend on the Makefile just in case someone changes
Hartmut Brandt [Tue, 24 May 2005 15:48:10 +0000 (15:48 +0000)]
Make shell.o dependend on the Makefile just in case someone changes
the default shell in the Makefile.

19 years agoBump the warning level to 6.
Hartmut Brandt [Tue, 24 May 2005 15:46:50 +0000 (15:46 +0000)]
Bump the warning level to 6.

19 years agoFix a 64-bit warning by casting an int64_t to intmax_t and printing it
Hartmut Brandt [Tue, 24 May 2005 15:45:11 +0000 (15:45 +0000)]
Fix a 64-bit warning by casting an int64_t to intmax_t and printing it
with %jd.

19 years ago3Com 3C2000-T reported as working.
Christian Brueffer [Tue, 24 May 2005 15:42:42 +0000 (15:42 +0000)]
3Com 3C2000-T reported as working.

Submitted by: anonymous

19 years agoFactor out ProcExec() into its own file and rename it to Proc_Exec() for
Hartmut Brandt [Tue, 24 May 2005 15:41:34 +0000 (15:41 +0000)]
Factor out ProcExec() into its own file and rename it to Proc_Exec() for
consistency with the rest of make.

Obtained from: DragonFlyBSD (except for the rename)

19 years agoFix kiconv on the 64bit plathomes.
R. Imura [Tue, 24 May 2005 15:38:08 +0000 (15:38 +0000)]
Fix kiconv on the 64bit plathomes.

- Correct idxp pointer to point the properly address of the
  each array of the kiconv character conversion tables,
  so that character conversion work properly when file
  systems are mounted with kiconv options.

- The definition of ICONV_CSMAXDATALEN was also bogus
  because it was defined as if all machines were 32bit
  computers.

Tested on: amd64
MFC after: 1 month

19 years agoFactor out all the .SHELL parsing related stuff into its own file and
Hartmut Brandt [Tue, 24 May 2005 15:30:03 +0000 (15:30 +0000)]
Factor out all the .SHELL parsing related stuff into its own file and
rename the function to be consistent with the naming scheme in the rest
of make. No functional changes.

Obtained from: DragonFlyBSD (idea and most of shell.h)

19 years agoUse the name of the default shell instead of a numeric index to select
Hartmut Brandt [Tue, 24 May 2005 13:19:40 +0000 (13:19 +0000)]
Use the name of the default shell instead of a numeric index to select
the default shell.

Idea from: DragonFlyBSD

19 years agoAnother shell attribute 'unsetenv' that will cause to unsetenv("ENV")
Hartmut Brandt [Tue, 24 May 2005 13:14:24 +0000 (13:14 +0000)]
Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")
before executing the shell. Until now this was done when the default
shell was the ksh. This failed if the default shell was sh or csh and
the user switched to ksh.

19 years agoConnect mount_reiserfs(8) to the build.
Jean-Sébastien Pédron [Tue, 24 May 2005 12:37:18 +0000 (12:37 +0000)]
Connect mount_reiserfs(8) to the build.

Approved by: mux (mentor)

19 years agoImport of mount_reiserfs(8), used to mount a ReiserFS filesystem.
Jean-Sébastien Pédron [Tue, 24 May 2005 12:34:45 +0000 (12:34 +0000)]
Import of mount_reiserfs(8), used to mount a ReiserFS filesystem.

Approved by: mux (mentor)

19 years agoAccomodate for parameter name change, 'cnp' to 'data'.
Hiten Pandya [Tue, 24 May 2005 12:33:29 +0000 (12:33 +0000)]
Accomodate for parameter name change, 'cnp' to 'data'.

Submitted-by: Andrew R. Reiter <arr@watson.org>
19 years agoConnect the ReiserFS filesystem to the modules build (i386 only).
Jean-Sébastien Pédron [Tue, 24 May 2005 12:30:13 +0000 (12:30 +0000)]
Connect the ReiserFS filesystem to the modules build (i386 only).

Approved by: mux (mentor)

19 years agoConnect the ReiserFS filesystem to the build (i386 only).
Jean-Sébastien Pédron [Tue, 24 May 2005 12:28:21 +0000 (12:28 +0000)]
Connect the ReiserFS filesystem to the build (i386 only).

Approved by: mux (mentor)

19 years agoImport of ReiserFS filesystem support (currently limited to read-only on
Jean-Sébastien Pédron [Tue, 24 May 2005 12:24:45 +0000 (12:24 +0000)]
Import of ReiserFS filesystem support (currently limited to read-only on
i386). Source code is under the GNU GPL license.

Approved by: mux (mentor)

19 years agoDescribe the meta and builtins attributes for the .SHELL special
Hartmut Brandt [Tue, 24 May 2005 10:59:08 +0000 (10:59 +0000)]
Describe the meta and builtins attributes for the .SHELL special
target.

19 years agoDescribe the -x option and the .WARN pseudo-target.
Hartmut Brandt [Tue, 24 May 2005 10:55:00 +0000 (10:55 +0000)]
Describe the -x option and the .WARN pseudo-target.

19 years agoCheck for NULL pointer return.
Poul-Henning Kamp [Tue, 24 May 2005 10:10:38 +0000 (10:10 +0000)]
Check for NULL pointer return.

Spotted by: marcus

19 years agoBefore doing any parsing parse the builtin shell specifications and
Hartmut Brandt [Tue, 24 May 2005 09:14:46 +0000 (09:14 +0000)]
Before doing any parsing parse the builtin shell specifications and
set the current shell to DEFSHELL. Put all these specifications into
a list. Add user specified new shells to this list. If the user
just selects one of the already know shells just pick the right one
off the list. This let's one do something like:

# Full specification of the user's shell. This also selects the shell.
.SHELL: name=myshell path=/somewhere/foo echo=loud ...

FOO != bar # use myshell here

.SHELL: name=sh

BAR != baz # use /bin/sh here

.SHELL: name=myshell # no need for full spec here.

# continue to use the user's special shell.

19 years agoAdd an -I option to pkg_version:
Colin Percival [Tue, 24 May 2005 08:26:44 +0000 (08:26 +0000)]
Add an -I option to pkg_version:

  -I  Use only the index file for determining if a package is out of
      date.  This is much faster than using the version number from a
      port's Makefile, at the expense of potentially giving an incor-
      rect result if the index file is out of date.

Without this option, the index file is only consulted if "make -V PKGNAME"
cannot be used.

Approved by: portmgr (krion)

19 years agoPut myself on behalf of portmgr as maintainer of pkg_install tools.
Kirill Ponomarev [Tue, 24 May 2005 08:23:01 +0000 (08:23 +0000)]
Put myself on behalf of portmgr as maintainer of pkg_install tools.

19 years agoAllow the .SHELL target to specify the list of shell meta characters and
Hartmut Brandt [Tue, 24 May 2005 07:45:49 +0000 (07:45 +0000)]
Allow the .SHELL target to specify the list of shell meta characters and
the list of shell builtins. Both of these are needed for the compat
mode where make directly executes commands if the command line contains
neither a shell meta character nor a shell builtin. The list of builtins
is not changed, but csh has '@' added as a meta-character.

Initialize the default shell by parsing a string as one would specify
to the .SHELL target. So we get rid of the CShell clone of struct Shell which
just contained const char * where struct Shell had char *.

Add a debugging function for dumping a parsed shell description to
stdout.

19 years agoFix a particularly egregious grammar error.
Adam Weinberger [Tue, 24 May 2005 04:50:07 +0000 (04:50 +0000)]
Fix a particularly egregious grammar error.

Approved by: wpaul
MFC after: 1 day

19 years agoConsolidate some release notes items regarding new manual pages
Bruce A. Mah [Tue, 24 May 2005 03:14:46 +0000 (03:14 +0000)]
Consolidate some release notes items regarding new manual pages
and add some entries for recently-added sound manual pages.

Submitted by: joel
Reviewed by: bmah, hrs

19 years agoUse low level constructs borrowed from interrupt threads to wait for
Stephan Uphoff [Mon, 23 May 2005 23:01:53 +0000 (23:01 +0000)]
Use low level constructs borrowed from interrupt threads to wait for
work in proc0.
Remove the TDP_WAKEPROC0 workaround.

19 years agoRewrite of tcp_sack_option(). Kentaro Kurahone (NetBSD) pointed out
Paul Saab [Mon, 23 May 2005 19:22:48 +0000 (19:22 +0000)]
Rewrite of tcp_sack_option(). Kentaro Kurahone (NetBSD) pointed out
that if we sort the incoming SACK blocks, we can update the scoreboard
in one pass of the scoreboard. The added overhead of sorting upto 4
sack blocks is much lower than traversing (potentially) large
scoreboards multiple times. The code was updating the scoreboard with
multiple passes over it (once for each sack option). The rewrite fixes
that, reducing the complexity of the main loop from O(n^2) to O(n).

Submitted by:   Mohan Srinivasan, Noritoshi Demizu.
Reviewed by:    Raja Mukerji.

19 years agoSync the style of these two files.
David E. O'Brien [Mon, 23 May 2005 17:36:54 +0000 (17:36 +0000)]
Sync the style of these two files.

19 years agoFix semantics of ph_busy_count == -1 to pass instead of block.
Max Laier [Mon, 23 May 2005 17:07:16 +0000 (17:07 +0000)]
Fix semantics of ph_busy_count == -1 to pass instead of block.

PR: kern/81128
Submitted by: Joost Bekkers
MFC-after: 2 weeks

19 years agoAdd cdce(4) into the list of ethernet interfaces.
Maxim Sobolev [Mon, 23 May 2005 16:23:28 +0000 (16:23 +0000)]
Add cdce(4) into the list of ethernet interfaces.

19 years ago- do DNS lookup for symbolic names specified for a destination
Hajimu UMEMOTO [Mon, 23 May 2005 14:12:32 +0000 (14:12 +0000)]
- do DNS lookup for symbolic names specified for a destination
  or gateway.
- improves error reporting using gai_strerror(3) instead of
  printing "bad value".
- remove "0" for servname argument for getaddrinfo(3).

Submitted by: Andreas Kohn <andreas __at__ syndrom23.de>
MFC after: 1 week

19 years agoRemove local error variable, which leads to hiding error from return
Gleb Smirnoff [Mon, 23 May 2005 13:49:49 +0000 (13:49 +0000)]
Remove local error variable, which leads to hiding error from return
value.

PR: kern/81371
Submitted by: Wojciech A. Koszek
MFC after: 1 week

19 years agoReturn EINVAL for incorrect hook names.
Gleb Smirnoff [Mon, 23 May 2005 13:39:20 +0000 (13:39 +0000)]
Return EINVAL for incorrect hook names.

PR: kern/81349
Submitted by: Wojciech A. Koszek

19 years agoMake the ArgArray_Init() function visible to the rest of make.
Hartmut Brandt [Mon, 23 May 2005 13:27:52 +0000 (13:27 +0000)]
Make the ArgArray_Init() function visible to the rest of make.
It will soon be needed for the .SHELL parsing code.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146539,
Hartmut Brandt [Mon, 23 May 2005 13:08:32 +0000 (13:08 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146539,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of NgATM kernel part 1.2
Hartmut Brandt [Mon, 23 May 2005 13:08:32 +0000 (13:08 +0000)]
Virgin import of NgATM kernel part 1.2

19 years agoAdd some debug code to diagnose root-on-mirror problems with recent -current.
Pawel Jakub Dawidek [Mon, 23 May 2005 13:05:07 +0000 (13:05 +0000)]
Add some debug code to diagnose root-on-mirror problems with recent -current.

Reported by: Daniel Eriksson

19 years agoWe need to use 'applyset' command for devfs, 'apply hide' is not enough,
Pawel Jakub Dawidek [Mon, 23 May 2005 12:25:33 +0000 (12:25 +0000)]
We need to use 'applyset' command for devfs, 'apply hide' is not enough,
because new devfs entries can show up later and one can access such entires
from inside named chroot.
In rc.d scripts we can use devfs_domount() function with devfsrules_hide_all
policy and unhide 'null' and 'random' manually.

19 years agoThis module was wrongly including header from /usr/include. Give it
Hartmut Brandt [Mon, 23 May 2005 12:24:46 +0000 (12:24 +0000)]
This module was wrongly including header from /usr/include. Give it
the correct path to the source headers.

19 years agoVirgin import of NgATM user part 1.2
Hartmut Brandt [Mon, 23 May 2005 12:22:12 +0000 (12:22 +0000)]
Virgin import of NgATM user part 1.2

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146532,
Hartmut Brandt [Mon, 23 May 2005 12:22:12 +0000 (12:22 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146532,
which included commits to RCS files with non-trunk default branches.

19 years agoCatch up with the bsnmpd daemon's 64bit time ticks.
Philip Paeps [Mon, 23 May 2005 11:41:14 +0000 (11:41 +0000)]
Catch up with the bsnmpd daemon's 64bit time ticks.

19 years agoNew release notes:
Christian Brueffer [Mon, 23 May 2005 11:31:26 +0000 (11:31 +0000)]
New release notes:

- uftdi(4) supports the FTDI FT2232C chip.
- bge(4) support for several new chips. (merged)

Note merges:

- uaudio(4) sync
- dc(4) polling
- xl(4) polling
- ixgb(4) MPSAFE

19 years agoThe ticks delivered by the SNMP daemon are now 64-bit, so make our
Hartmut Brandt [Mon, 23 May 2005 11:24:39 +0000 (11:24 +0000)]
The ticks delivered by the SNMP daemon are now 64-bit, so make our
local tick variable which is used to reduce the number of updates from
kernel structures and to ensure intra-PDU consistency also 64 bit.

19 years agoBump the shared library version number of the modules because of
Hartmut Brandt [Mon, 23 May 2005 11:22:54 +0000 (11:22 +0000)]
Bump the shared library version number of the modules because of
changes in the module interface.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146525,
Hartmut Brandt [Mon, 23 May 2005 11:19:11 +0000 (11:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146525,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of bsnmpd 1.10
Hartmut Brandt [Mon, 23 May 2005 11:19:11 +0000 (11:19 +0000)]
Virgin import of bsnmpd 1.10

19 years agoStop redundantly rebuilding texinfo on the next __FreeBSD_version bump.
Ruslan Ermilov [Mon, 23 May 2005 11:15:16 +0000 (11:15 +0000)]
Stop redundantly rebuilding texinfo on the next __FreeBSD_version bump.

19 years agoUpdate for version 4.8 import.
Ruslan Ermilov [Mon, 23 May 2005 10:55:29 +0000 (10:55 +0000)]
Update for version 4.8 import.

19 years agoUpdate for texinfo 4.8.
Ruslan Ermilov [Mon, 23 May 2005 10:52:07 +0000 (10:52 +0000)]
Update for texinfo 4.8.

19 years agoMerge texinfo 4.8 changes onto the trunk.
Ruslan Ermilov [Mon, 23 May 2005 10:50:48 +0000 (10:50 +0000)]
Merge texinfo 4.8 changes onto the trunk.

19 years agoUse stock (FSF) version of this file.
Ruslan Ermilov [Mon, 23 May 2005 10:50:32 +0000 (10:50 +0000)]
Use stock (FSF) version of this file.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146518,
Ruslan Ermilov [Mon, 23 May 2005 10:47:04 +0000 (10:47 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146518,
which included commits to RCS files with non-trunk default branches.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r146515,
Ruslan Ermilov [Mon, 23 May 2005 10:46:22 +0000 (10:46 +0000)]
This commit was generated by cvs2svn to compensate for changes in r146515,
which included commits to RCS files with non-trunk default branches.

19 years agoImport of stripped down GNU texinfo 4.8
Ruslan Ermilov [Mon, 23 May 2005 10:46:22 +0000 (10:46 +0000)]
Import of stripped down GNU texinfo 4.8

19 years agoMake snd_maestro3(4) mpsafe
Pyun YongHyeon [Mon, 23 May 2005 06:27:07 +0000 (06:27 +0000)]
Make snd_maestro3(4) mpsafe
 - Let m3_pchan_trigger()/m3_rchan_trigger() acquire lock and call
   m3_pchan_trigger_locked()/m3_rchan_trigger_locked() respectivly.
 - Mark interrupt handler INTR_MPSAFE.
 - Add locks in sound/channel interface.

Tested by: nork

19 years agoAccording to STP2002QFP User's Guide, it seems that driver should
Pyun YongHyeon [Mon, 23 May 2005 05:45:36 +0000 (05:45 +0000)]
According to STP2002QFP User's Guide, it seems that driver should
program RXMAC to discard frames with SA field matching the stations's
MAC address. Experimentation shows that HME receives its own frames
when it operates at 10Mbps half-duplex. With this change HME runs at
10Mbps half-duplx should work with IPv6.
(No more "DAD detected duplicate IPv6 address".)

Reported by: jacques brierre <jbrierre AT bellsouth DOT net>
Reviewed by: marius

19 years agoMake the liveCD separate ala ia64 - the combined live/install is
Peter Grehan [Mon, 23 May 2005 03:14:56 +0000 (03:14 +0000)]
Make the liveCD separate ala ia64 - the combined live/install is
too large.

19 years agoNew release notes: gethostby*(3) thread-safe (+MFC), getnetby*(3)
Bruce A. Mah [Mon, 23 May 2005 02:37:35 +0000 (02:37 +0000)]
New release notes:  gethostby*(3) thread-safe (+MFC), getnetby*(3)
thread-safe (+MFC).

19 years agoFix some of the problems Bruce observed with this code.
Peter Wemm [Sun, 22 May 2005 23:28:17 +0000 (23:28 +0000)]
Fix some of the problems Bruce observed with this code.

19 years agoProtect fsid in freebsd4_getfsstat() in simlar way as it is done in
Pawel Jakub Dawidek [Sun, 22 May 2005 23:05:27 +0000 (23:05 +0000)]
Protect fsid in freebsd4_getfsstat() in simlar way as it is done in
getfsstat().

19 years agoThe code is under '#ifdef not_that_way', but anyway:
Pawel Jakub Dawidek [Sun, 22 May 2005 22:30:31 +0000 (22:30 +0000)]
The code is under '#ifdef not_that_way', but anyway:

- Add missing prison_check_mount() check.

19 years agoAdd missing jail.h include.
Pawel Jakub Dawidek [Sun, 22 May 2005 22:23:37 +0000 (22:23 +0000)]
Add missing jail.h include.

19 years agoThis code seems to be dead, but anyway:
Pawel Jakub Dawidek [Sun, 22 May 2005 22:20:46 +0000 (22:20 +0000)]
This code seems to be dead, but anyway:

- Don't leak fsid.
- Don't forget about prison_check_mount().
- Don't use additional variable when there is no need to.

19 years agoIf we need to hide fsid, kern_statfs()/kern_fstatfs() will do it for us,
Pawel Jakub Dawidek [Sun, 22 May 2005 21:52:30 +0000 (21:52 +0000)]
If we need to hide fsid, kern_statfs()/kern_fstatfs() will do it for us,
so do not duplicate the code in cvtstatfs().
Note, that we now need to clear fsid in freebsd4_getfsstat().

This moves all security related checks from functions like cvtstatfs()
and will allow to add more security related stuff (like statfs(2), etc.
protection for jails) a bit easier.

19 years agoSwap in can occur safely without Giant. Release Giant on entry to
Alan Cox [Sun, 22 May 2005 21:06:07 +0000 (21:06 +0000)]
Swap in can occur safely without Giant.  Release Giant on entry to
scheduler().

19 years agoo Clear device-specific PCI register 0x41 (Retry Timeout) during attach
Damien Bergamini [Sun, 22 May 2005 18:55:32 +0000 (18:55 +0000)]
o Clear device-specific PCI register 0x41 (Retry Timeout) during attach
  and on resume (reported to fix issues with ACPI)
o Add monitor mode support
o Add WPA (802.11i) support (not tested extensively though!)
o Add a device specific sysctl to control the tx antenna (default to
  antenna diversity)
o Fix sensitivity setting
o Fix setting of the capinfo field when associating
o Temporarly disable 802.11a channels scanning that was causing firmware
  panics with 2915ABG adapters until I find a better fix.  This breaks
  802.11a support.
o Temporarly switch back to software WEP until I implement hardware
  encryption for AES and TKIP too.

Approved by:    silby (mentor)

19 years agoFix WPA (802.11i) support.
Damien Bergamini [Sun, 22 May 2005 18:34:20 +0000 (18:34 +0000)]
Fix WPA (802.11i) support.

Approved by: silby (mentor)

19 years agoClear device-specific PCI register 0x41 during attach and on resume.
Damien Bergamini [Sun, 22 May 2005 18:31:08 +0000 (18:31 +0000)]
Clear device-specific PCI register 0x41 during attach and on resume.

Appoved by: silby (mentor)

19 years agoMFCs noted: New ndisulator driver generation procedure, getproto*(3)
Bruce A. Mah [Sun, 22 May 2005 18:24:31 +0000 (18:24 +0000)]
MFCs noted:  New ndisulator driver generation procedure, getproto*(3)
thread-safe, getserv*(3) thread-safe, kldstat(8) -m, default stack
size increases.

19 years agoSort the sound section by driver name. The exception to this is sound(4),
Christian Brueffer [Sun, 22 May 2005 17:12:42 +0000 (17:12 +0000)]
Sort the sound section by driver name.  The exception to this is sound(4),
which is the master driver and will hopefully be renamed to snd(4) soon.

19 years ago- Autogenerate device listings for sound(4) aka pcm(4)
Christian Brueffer [Sun, 22 May 2005 17:04:04 +0000 (17:04 +0000)]
- Autogenerate device listings for sound(4) aka pcm(4)
- Rename the Audio Devices section into Sound Devices, this is more
  in line with out sound and snd_* drivers

MFC after: 1 week

19 years agoMFi386: set PMC vector
Peter Wemm [Sun, 22 May 2005 16:32:02 +0000 (16:32 +0000)]
MFi386: set PMC vector

19 years agoMFi386: remove comment
Peter Wemm [Sun, 22 May 2005 16:31:32 +0000 (16:31 +0000)]
MFi386: remove comment

19 years agoStyle: mostly tabs vs blanks, and semicolon placement.
Jens Schweikhardt [Sun, 22 May 2005 16:22:23 +0000 (16:22 +0000)]
Style: mostly tabs vs blanks, and semicolon placement.

19 years agosoundcard -> sound card
Christian Brueffer [Sun, 22 May 2005 16:14:55 +0000 (16:14 +0000)]
soundcard -> sound card

MFC after: 3 days

19 years ago- Add a HARDWARE section based on the previous 'Supported Cards'
Christian Brueffer [Sun, 22 May 2005 15:25:14 +0000 (15:25 +0000)]
- Add a HARDWARE section based on the previous 'Supported Cards'
  subsection and the hardware notes.
- Xref all snd_* drivers

MFC after: 1 week

19 years agoBCM5789 support.
Christian Brueffer [Sun, 22 May 2005 10:27:51 +0000 (10:27 +0000)]
BCM5789 support.

MFC after: 3 days

19 years agoAdd PCI ID for BCM5789.
Mike Silbersack [Sun, 22 May 2005 03:16:45 +0000 (03:16 +0000)]
Add PCI ID for BCM5789.

Submitted by: S. Aeschbacher

19 years agoRemove GIANT_REQUIRED from swapout_procs().
Alan Cox [Sun, 22 May 2005 00:30:50 +0000 (00:30 +0000)]
Remove GIANT_REQUIRED from swapout_procs().

19 years ago- Hook up machfb(4) to the sparc64 build, not enabled in GENERIC
Marius Strobl [Sat, 21 May 2005 20:50:45 +0000 (20:50 +0000)]
- Hook up machfb(4) to the sparc64 build, not enabled in GENERIC
  by default, yet.
- Replace "graphics cards" with "framebuffers" in the description
  of creator(4) in order to make it uniform with the description of
  machfb(4) and the latter occur both on-board and as add-on cards.

19 years agoAdd machfb(4), a driver for ATI Mach64 graphics chips intended for
Marius Strobl [Sat, 21 May 2005 20:47:38 +0000 (20:47 +0000)]
Add machfb(4), a driver for ATI Mach64 graphics chips intended for
use with syscons(4) on sparc64. It's based on the respective NetBSD
driver with some additional info (initialisation/hardware cursor)
obtained from the Xorg 'ati' driver and some ideas taken from
creator(4). ATI Mach64 chips ("ATI Rage") are quite common as low-
end graphics chips in PCI-based sun4u machines and are used on-board
in e.g. Blade 100 and a couple of OEM products. Most if not all of
the Sun PGX add-on cards family (descriptions of the PGX32 are
conflicting but most say it's a Rage Pro) are also based on these
chips. Depending on the version of the OBP Mach64 cards destined for
use in i386 machines also work in sun4u machines.
The driver uses pixel mode with hardware acceleration as far as
syscons(4) currently permits on sparc64 so text mode is already
quite fast. The hardware cursor is used for the mouse pointer;
for one because this is a "restriction" induced in syscons(4) on
sparc64 by creator(4) and also because of issues with mapping
the aperture when used as a low-level early during boot. Due to
insufficiencies in the available documentation I didn't manage to
get mode switch work properly (sync problems), yet. So for now
this driver relies on the OBP having initialised a mode (as does
creator(4)). On all of the tested machines is even true when using
a serial console (and also not only when the OBP switched to a
serial console because no keyboard is present). In general however
the states the Mach64 chips are left in by the OBP vary a lot
depending on the version of the OBP. This e.g. includes the aperture
not being mapped in even when used as the console and the OBP just
barfing when asked to map it. The latter is also the reason for the
existence of this native driver in FreeBSD rather than taking an
OFW frambuffer approach.
Xorg is also happy to talk to these chips by mmap'ing them through
this driver. For some hardware configs like on the Blade 100 a fix
for the Xorg sparc64 MD bus code is however needed (added in version
6.8.2_2 of the xorg-server port).
The video driver font loading and saving methods are not implemented,
yet, as syscons(4) needs more work in that area to work viable on
sparc64.
With minor modifications machfb(4) would most likely also work on
powerpc, when #ifdef'ing the OFW and possibly implementing mode
setting probably also on the other archs. The latter is however
not very practible at the moment as it would conflict with vga(4).

Tested/developed with: Rage II+ add-on card on AX1105 and AXi board,
AXe board (on-board Rage Pro)
Additional testing by: marcel (Ultra 5 w/ on-board Rage Pro),
scottl (Naturetech GENIALstation 777S w/ on-board
Rage Mobility M1),
Michiel Boland and Ilmar S. Habibulin (Blade 100
w/ on-board Rage XL)

19 years agoGrab FBTYPE_NOTSUN3 and use it for FBTYPE_PCIMISC. The value matches
Marius Strobl [Sat, 21 May 2005 20:40:51 +0000 (20:40 +0000)]
Grab FBTYPE_NOTSUN3 and use it for FBTYPE_PCIMISC. The value matches
the one used in NetBSD for FBTYPE_PCIMISC.

19 years agoo creator(4):
Marius Strobl [Sat, 21 May 2005 20:38:26 +0000 (20:38 +0000)]
o creator(4):
  - Use register macros instead of magic values in the code. [1]
  - Check the return values of OF_getprop() and other stuff that actually
    can fail.
  - Let the unimplemented video driver methods return ENODEV rather
    than 0 so other code isn't tricked into thinking a certain operation
    was successfull. In case of e.g. the video driver creator_ioctl()
    this caused vidcontrol(1) to return random garbage information.
    Remove the TODO macros in the unimplemented video driver methods
    which did a printf("%s: unimplemented\n", __func__). Under certain
    circumstances these managed to invoke a printf() when a low-level
    console device wasn't attached, yet, causing a Fast Data Access MMU
    Miss. These macros were only really usefull for development anyway.
  - Set the struct video_adapter and struct video_info va_flags and
    vi_flags etc. as appropriate.
  - In creator_configure() don't rely on hitting the node which is the
    chosen console device first when searching the OFW tree for adapters
    compatible with this driver. Instead just check whether the chosen
    console device is a viable target for this driver. Targets that are
    not the console (including additional cards in multi-head configs)
    will be attached through creator_upa_attach(). I think this how the
    code in creator_configure() was actually meant to work.
    Honour the VIO_PROBE_ONLY flag and don't initialise and register the
    console device twice when creator_configure() is called a second time
    during sc_probe_unit().
    Let creator_configure() return the number of the found adapters,
    i.e. 1 in case probing succeeds, as it's expected. The return values
    of video adapter configure functions however currently aren't checked
    so this doesn't make a difference at the moment.
  - In creator_upa_attach() don't rely on probing and attaching the
    adapter which is the console first, in case there are multiple
    adpaters and one of them is the console this could lead into using
    the video adapter unit 0 twice.
  - Make the check for DACs with inverted cursor control a bit more
    precise and actually honour that information when turning the cursor
    on or off. Add a helper function creator_cursor_enable() for this
    in order to keep code duplication low. [1]
  - Don't bother with faking a hardware cursor in case a device is the
    console. Apparently this was meant to start kernel output right after
    where the firmware left. In general this isn't worth the fuzz and
    also had no real effect as creator_set_mode() did clear the screen
    in any case, not just in case a device was not the console.
  - Implement creator_fill_rect() and use it to actually blank the
    display in creator_blank_display() when the mode is V_DISPLAY_BLANK,
    moving blanking the display out of creator_set_mode(). Use it also
    to implement creator_set_border() so the border can be re-drawn
    when switching to a VTY from X, exiting X, etc. (which leaves us
    with a black border most of the time).
  - Implement the video driver creator_ioctl(), moving the implementation
    of the IOCTL interface from the fbN CDEV version of creator_ioctl()
    into the video driver version and use the latter to implement the
    former. Use fb_commonioctl() to handle most of the FBIO IOCTLs.
    This gives programs like vidcontrol(1) which use the video driver
    creator_ioctl() a chance of working.
    Implement turning off the cursor via the FBIOSCURSOR IOCTL, which
    Xorg uses to in order to inform the OS that it's taking over the
    cursor. In creator_putm() check whether the cursor is enabled and
    (re-)install it if necessary, moving installing the cursor out of
    creator_init() and into a helper function creator_cursor_install().
    This fixes the missing mouse pointer when switching to a VTY from X,
    exiting X, etc.
  - Some clean-up (remove unused/useless code, etc.).

o sparc64/creator/creator_upa.c / sparc64/sparc64/sc_machdep.c:
  - Attach syscons(4) as an own pseudo-device on the nexus rather than
    directly in creator_upa_attach(), similiar to attaching syscons(4)
    as a pseudo-device on isa(4) on other archs. This makes it a whole
    lot easier to do the right thing in multi-head configs, especially
    with different types of graphics adapters. [2]
  - Set SC_AUTODETECT_KBD by default so USB keyboards work out of the
    box. [2]

Based on/obtained from: Xorg 'ffb' driver [1]
Based on/obtained from: FreeBSD/powerpc [2]

19 years ago- Remove duplicate FBSDID.
Marius Strobl [Sat, 21 May 2005 20:34:22 +0000 (20:34 +0000)]
- Remove duplicate FBSDID.
- Start copyright comments with /*- where missing.

19 years ago- Not every architecture defaults to a black background (e.g. sparc64
Marius Strobl [Sat, 21 May 2005 20:32:27 +0000 (20:32 +0000)]
- Not every architecture defaults to a black background (e.g. sparc64
  uses white) so base the color of the border on SC_NORM_ATTR rather
  than hardcoding BG_BLACK.
- Use SC_DRIVER_NAME rather than hardcoding 'sc' in message strings
  (see also sys/dev/syscons/syscons.h rev. 1.82).

19 years agoOn sparc64 use 'syscons' rather than 'sc' for SC_DRIVER_NAME so
Marius Strobl [Sat, 21 May 2005 20:29:58 +0000 (20:29 +0000)]
On sparc64 use 'syscons' rather than 'sc' for SC_DRIVER_NAME so
syscons(4) and its pseudo-devices don't get confused (including by
other device drivers) with the system controller devices which are
also termed 'sc' in the OFW tree (and which we probably want to
interface with hwpmc(4) one day).

19 years agoRemove superfluous braces and add #ifndef __sparc64__ around the
Marius Strobl [Sat, 21 May 2005 20:28:15 +0000 (20:28 +0000)]
Remove superfluous braces and add #ifndef __sparc64__ around the
VTB_FRAMEBUFFER specific code. On sparc64 we don't use a buffer of
type VTB_FRAMEBUFFER (see syscons.c) and excluding the respective
code here allows to compile syscons(4) without isa(4).

Requested by: joerg, marcel, yongari

19 years ago- Sprinkle some KBD_IS_* and KBD_*_DONE macros in sunkbd_configure() as
Marius Strobl [Sat, 21 May 2005 20:26:30 +0000 (20:26 +0000)]
- Sprinkle some KBD_IS_* and KBD_*_DONE macros in sunkbd_configure() as
  a band-aid allowing to call this function savely multiple times, e.g.
  during sckbdprobe() and sc_probe_unit(). Otherwise calling it a second
  time results in a non-working keyboard. This needs a lot of more work
  to actually do the right thing and work like expected.
- Let sunkbd_configure() return the number of the found keyboards, i.e.
  1 in case probing succeeds, as it's expected. The return values of the
  keyboard configure functions however currently aren't checked so this
  doesn't make a difference at the moment.
- Use FBSDID.

19 years ago- MFpowerpc: sys/powerpc/powerpc/nexus.c rev. 1.7 (partial)
Marius Strobl [Sat, 21 May 2005 20:19:27 +0000 (20:19 +0000)]
- MFpowerpc: sys/powerpc/powerpc/nexus.c rev. 1.7 (partial)
  Use bus_generic_probe() and add a bus_add_child() interface method to
  allow device drivers to use the identify method to add themselves if
  need be (e.g. syscons(4)).
- Use FBSDID.

19 years ago- Make sure that the OFW address properties that are going to be decode
Marius Strobl [Sat, 21 May 2005 20:17:01 +0000 (20:17 +0000)]
- Make sure that the OFW address properties that are going to be decode
  consist of the expected number of address and size cells (we can't use
  dynamic arrays here because at the point in the boot process when this
  code is used malloc() doesn't work, yet). This fixes a Fast Data Access
  MMU Miss when uart(4) (erroneously) calls OF_decode_addr() to decode
  the address of PS/2 keyboards. PS/2 keyboards use a different and also
  undocumented scheme at the first parent node than mapping at 'ranges'
  properties. It's however not worth implementing that other scheme and
  actually also fits atkbdc(4) better to just start at the first parent
  node of PS/2 keyboards which is the 8042 controller (I have atkbdc(4)
  working that way).
- Use FBSDID.

MFC after: 1 month