]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoUtilize FILES and SYMLINKS.
ru [Sun, 17 Oct 2004 09:48:23 +0000 (09:48 +0000)]
Utilize FILES and SYMLINKS.

19 years agoDocument EMSGSIZE return from recvmsg due to insufficient free files
alfred [Sun, 17 Oct 2004 07:13:34 +0000 (07:13 +0000)]
Document EMSGSIZE return from recvmsg due to insufficient free files
when transfering rights (file descriptors.)

19 years agoRemove the obsolete <rune.h> interface.
tjr [Sun, 17 Oct 2004 06:51:50 +0000 (06:51 +0000)]
Remove the obsolete <rune.h> interface.

19 years agoCatch up with share/mk/bsd.cpu.mk revision 1.43.
obrien [Sun, 17 Oct 2004 05:36:20 +0000 (05:36 +0000)]
Catch up with share/mk/bsd.cpu.mk revision 1.43.

19 years agoEmbellish the AMD64 sections a little. Including supporting 'nocona'.
obrien [Sun, 17 Oct 2004 05:19:45 +0000 (05:19 +0000)]
Embellish the AMD64 sections a little.  Including supporting 'nocona'.

19 years ago+ Simplify by treating the standard x86 CPU names as the CPUTYPE vs.
obrien [Sun, 17 Oct 2004 05:08:29 +0000 (05:08 +0000)]
+ Simplify by treating the standard x86 CPU names as the CPUTYPE vs.
  treating them as an alias.  Treat the shorthand versions as aliases.
+ Separate the x86 GCC CPU CFLAGS from the ICC CFLAGS.  This greatly
  simplifies the GCC section.  It also makes it more clear which CPU's
  have the same ICC CPU CFLAGS.
+ Remove redundancy in the alpha section.
+ Add forgotten ICC CPU CFLAGS for the mobile Intel CPU's added in rev. 1.42.

19 years agoUse <runetype.h> instead of <rune.h> since the latter is going away.
tjr [Sun, 17 Oct 2004 03:02:50 +0000 (03:02 +0000)]
Use <runetype.h> instead of <rune.h> since the latter is going away.

19 years agoRemove support for the obsolete UTF2 encoding.
tjr [Sun, 17 Oct 2004 02:29:15 +0000 (02:29 +0000)]
Remove support for the obsolete UTF2 encoding.

19 years agoBump the libc major version number to 6.
tjr [Sun, 17 Oct 2004 01:52:48 +0000 (01:52 +0000)]
Bump the libc major version number to 6.

19 years agoRemove explicit support for generating LC_CTYPE data files that specify
tjr [Sun, 17 Oct 2004 01:08:11 +0000 (01:08 +0000)]
Remove explicit support for generating LC_CTYPE data files that specify
the obsolete "UTF2" encoding.

19 years agoWhen sf_buf_alloc() replaces a virtual-to-physical mapping, it needn't
alc [Sat, 16 Oct 2004 22:32:50 +0000 (22:32 +0000)]
When sf_buf_alloc() replaces a virtual-to-physical mapping, it needn't
invalidate the TLB(s) if the old mapping wasn't used by the CPU.  With
network interfaces that implement checksum off-loading, the old mapping is
almost never used by the CPU, only by the device driver for setting up the
DMA operation.

Reviewed by: tegge@

19 years agoUpdate manpage for the Vodafone Mobile Connect 3G datacard. Bump
le [Sat, 16 Oct 2004 21:36:19 +0000 (21:36 +0000)]
Update manpage for the Vodafone Mobile Connect 3G datacard.  Bump
document date.

Reminded by:  simon

19 years agoAdd support for the Vodafone Mobile Connect 3G datacard.
le [Sat, 16 Oct 2004 21:27:28 +0000 (21:27 +0000)]
Add support for the Vodafone Mobile Connect 3G datacard.

19 years agoInstall files with mode 444, as God intended.
ru [Sat, 16 Oct 2004 20:52:32 +0000 (20:52 +0000)]
Install files with mode 444, as God intended.

19 years agoUtilize FILES and SYMLINKS.
ru [Sat, 16 Oct 2004 20:42:18 +0000 (20:42 +0000)]
Utilize FILES and SYMLINKS.

19 years agoUtilize FILES and SYMLINKS, other simplifications.
ru [Sat, 16 Oct 2004 19:51:34 +0000 (19:51 +0000)]
Utilize FILES and SYMLINKS, other simplifications.

19 years agoDocument that the length modifier l is ignored for floating point
stefanf [Sat, 16 Oct 2004 16:00:01 +0000 (16:00 +0000)]
Document that the length modifier l is ignored for floating point
conversion specifiers (a, A, e, E, f, F, g and G).

19 years agoExplain it is a negative offset that EINVAL may indicate.
yar [Sat, 16 Oct 2004 09:53:35 +0000 (09:53 +0000)]
Explain it is a negative offset that EINVAL may indicate.
Now readers won't get an impression that pointing to beyond
the current end of file will result in EINVAL.

MFC after: 1 week

19 years agoImprove mdoc(7) markup.
yar [Sat, 16 Oct 2004 09:46:38 +0000 (09:46 +0000)]
Improve mdoc(7) markup.

19 years agoGive details on what will happen if the `offset' argument
yar [Sat, 16 Oct 2004 09:39:25 +0000 (09:39 +0000)]
Give details on what will happen if the `offset' argument
to sendfile(2) falls beyond the end of file.

Touch .Dd.

PR: bin/72649 (in the audit trail)
MFC after: 1 week

19 years agoFix an ancient typo: `sc' usually equals `ns*nt', not `nc*nt'
yar [Sat, 16 Oct 2004 08:36:28 +0000 (08:36 +0000)]
Fix an ancient typo: `sc' usually equals `ns*nt', not `nc*nt'
(the latter is actually the total number of tracks on the disk,
which has no field in disktab(5).)

MFC after: 1 week

19 years agoIf a process needs to be swapped in, wakeup the swapper from within
scottl [Sat, 16 Oct 2004 06:38:22 +0000 (06:38 +0000)]
If a process needs to be swapped in, wakeup the swapper from within
critical_exit as the process is getting scheduled to run.  This is subotimal
but for now avoid the LOR between the scheduler and the sleepq systems.
This is a 5.3 candidate.

Submitted by: davidxu
MFC After: 3 days

19 years agoEnable building with LIBC_SCCS defined.
obrien [Sat, 16 Oct 2004 06:32:43 +0000 (06:32 +0000)]
Enable building with LIBC_SCCS defined.

Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>

19 years agoTry to bring some sanity to the SCM ID's.
obrien [Sat, 16 Oct 2004 06:11:35 +0000 (06:11 +0000)]
Try to bring some sanity to the SCM ID's.
+ spell LIBC_SCCS consistently
+ enable builds with LIBC_SCCS defined to not syntax error
+ minor SCM reformatting to try to have some consistency

19 years agoBump document date
brueffer [Sat, 16 Oct 2004 00:13:38 +0000 (00:13 +0000)]
Bump document date

Reminded by: simon in ru-mode

19 years agoWe use /etc/pam.d/login nowadays
brueffer [Fri, 15 Oct 2004 23:46:00 +0000 (23:46 +0000)]
We use /etc/pam.d/login nowadays

19 years agoSkip probe attempts for ISA PnP devices.
gibbs [Fri, 15 Oct 2004 23:39:52 +0000 (23:39 +0000)]
Skip probe attempts for ISA PnP devices.

Pointed out by: imp

19 years agoUse .Xr in place of .I for Xref's.
trhodes [Fri, 15 Oct 2004 12:50:05 +0000 (12:50 +0000)]
Use .Xr in place of .I for Xref's.

PR: 71730
Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk> (original patch)
Commit ok: mbr (through GNATS PR)

19 years agoWe must not fall back to the old way (read-write)
yar [Fri, 15 Oct 2004 09:51:36 +0000 (09:51 +0000)]
We must not fall back to the old way (read-write)
if sendfile() transferred some data before throwing
a error condition because sendfile() won't move the
file offset for read() to start from.

MFC after: 2 weeks

19 years agoClean-up around sendfile(): drop an excessive check for error condition.
yar [Fri, 15 Oct 2004 09:38:13 +0000 (09:38 +0000)]
Clean-up around sendfile(): drop an excessive check for error condition.

19 years agoAccount for the fact that sendfile(2) may hit the end of file
yar [Fri, 15 Oct 2004 09:31:08 +0000 (09:31 +0000)]
Account for the fact that sendfile(2) may hit the end of file
prematurely, e.g., if the file has been truncated by someone else.

PR: bin/72649
Submitted by: Oleg Koreshkov (portions)
MFC after: 2 weeks

19 years agoMake pty's always come up in echo mode.
phk [Fri, 15 Oct 2004 09:03:07 +0000 (09:03 +0000)]
Make pty's always come up in echo mode.

19 years agoRemove a redundant "uname=root".
ru [Fri, 15 Oct 2004 08:57:24 +0000 (08:57 +0000)]
Remove a redundant "uname=root".

Forgotten by: dougb

19 years agoOverdue removal of COMPAT* knobs.
ru [Fri, 15 Oct 2004 08:51:12 +0000 (08:51 +0000)]
Overdue removal of COMPAT* knobs.

19 years agoMerged from sys/dev/sio/sio.c (Use generic tty code).
nyan [Fri, 15 Oct 2004 08:22:37 +0000 (08:22 +0000)]
Merged from sys/dev/sio/sio.c (Use generic tty code).

19 years agodocument host_start_mem.
imp [Fri, 15 Oct 2004 06:59:07 +0000 (06:59 +0000)]
document host_start_mem.

# feel free to wordsmith.

Suggested by: ru@

19 years agoPolish the last change.
ru [Fri, 15 Oct 2004 06:44:13 +0000 (06:44 +0000)]
Polish the last change.

19 years agoAdd Simplified Chinese translation for our release notes.
delphij [Fri, 15 Oct 2004 06:43:48 +0000 (06:43 +0000)]
Add Simplified Chinese translation for our release notes.

This translation is based on RELENG_5 so it should be tagged as
RELENG_5 when appropriate (This set of files DOES build under
6-CURRENT because a last-minute hack added to readme/article.sgml,
however, the contents is for RELENG_5).

This includes:
The Migration Guide
Errata
Hardware Notes (only i386 and amd64 at this time)
Installation Guide [2]
Readme [1]
Release Notes

Submitted by: delphij, gavin (local repository committer) [1],
zhangluo (additional local contributor; part of
i386 related contents) [2]
Approved by: murray (mentor)

19 years agoRe-add an acpi attachment for the legacy probe that was inadvertently
njl [Fri, 15 Oct 2004 05:13:25 +0000 (05:13 +0000)]
Re-add an acpi attachment for the legacy probe that was inadvertently
removed.

19 years agoRemove unused variable.
njl [Fri, 15 Oct 2004 04:59:21 +0000 (04:59 +0000)]
Remove unused variable.

19 years agoRemove unused variable. Pointy hat candidate.
njl [Fri, 15 Oct 2004 04:54:16 +0000 (04:54 +0000)]
Remove unused variable.  Pointy hat candidate.

19 years agoadd missing ';' that didn't show up with INVARIANTS enabled
sam [Fri, 15 Oct 2004 03:54:56 +0000 (03:54 +0000)]
add missing ';' that didn't show up with INVARIANTS enabled

19 years agoPlug possible memory leak in sound DMA buffer handling. It also
yongari [Fri, 15 Oct 2004 03:50:04 +0000 (03:50 +0000)]
Plug possible memory leak in sound DMA buffer handling. It also
changes return code to ENOMEM in case of allocation failure.

Approved by: jake (mentor), scottl (co-mentor)
Reviewed by: truckman, matk

19 years agoUse a taskqueue rather than an swi to handle deferred notifications.
kan [Fri, 15 Oct 2004 03:44:56 +0000 (03:44 +0000)]
Use a taskqueue rather than an swi to handle deferred notifications.
Obtained from: same change for umct(4) driver.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r136527,
kan [Fri, 15 Oct 2004 03:22:13 +0000 (03:22 +0000)]
This commit was generated by cvs2svn to compensate for changes in r136527,
which included commits to RCS files with non-trunk default branches.

19 years agoImport a patch from GCC PR c/16999 to stop quoting already quoted ident
kan [Fri, 15 Oct 2004 03:22:13 +0000 (03:22 +0000)]
Import a patch from GCC PR c/16999 to stop quoting already quoted ident
strings.

19 years agoMove session state from on-card memory to host memory so we no longer are
sam [Fri, 15 Oct 2004 00:36:07 +0000 (00:36 +0000)]
Move session state from on-card memory to host memory so we no longer are
constrained to a small number of sessions by the small on-card memories found
in newer devices.  This is really a stopgap solution as having session state
in main memory incurs a (small but noticeable) performance penalty. The better
solution is to manage session state so that it's cached on chip.

Obtained from: openbsd

19 years agoDocument hw.{pci,acpi}.host_start_mem
imp [Fri, 15 Oct 2004 00:15:07 +0000 (00:15 +0000)]
Document hw.{pci,acpi}.host_start_mem

Requested by: ru@

19 years agoLet nexus print our flags for us. Also, clean up an obfuscated if stmt.
njl [Thu, 14 Oct 2004 22:37:51 +0000 (22:37 +0000)]
Let nexus print our flags for us.  Also, clean up an obfuscated if stmt.

19 years agoPrint flags in the nexus for child devices.
njl [Thu, 14 Oct 2004 22:36:47 +0000 (22:36 +0000)]
Print flags in the nexus for child devices.

19 years agoRemove local hacks to set flags now that the device probe does this for us.
njl [Thu, 14 Oct 2004 22:21:59 +0000 (22:21 +0000)]
Remove local hacks to set flags now that the device probe does this for us.
Tested on every device except sio_pci and the pc98 fd.c.  Perhaps something
similar should be done for the "disabled" hints also.

MFC after: 2 weeks

19 years agoRemove extra closing parenthesis added in revision 1.4.
stefanf [Thu, 14 Oct 2004 21:31:42 +0000 (21:31 +0000)]
Remove extra closing parenthesis added in revision 1.4.

Noticed by: Andrea Campi

19 years agoAdd a missing newline character.
pjd [Thu, 14 Oct 2004 19:00:44 +0000 (19:00 +0000)]
Add a missing newline character.

19 years agoRemove unused ttys field.
phk [Thu, 14 Oct 2004 18:37:59 +0000 (18:37 +0000)]
Remove unused ttys field.

Spotted by: Peter Jeremy <PeterJeremy@optushome.com.au>

19 years agoAdd missing chunk of code to enforce the lock-bits of termios.
phk [Thu, 14 Oct 2004 18:30:24 +0000 (18:30 +0000)]
Add missing chunk of code to enforce the lock-bits of termios.

This solves the problem where serial consoles suddenly required
DCD to be asserted.

Reported by: Randy Bush <randy@psg.com>

19 years agoUpdate flags patch for the !ISA case.
njl [Thu, 14 Oct 2004 17:14:56 +0000 (17:14 +0000)]
Update flags patch for the !ISA case.

* Get flags first, in case there is no devclass.
* Reset flags after each probe in case the next driver has no hints so it
  doesn't inherit the old ones.
* Set them again before the winning probe.

Tested ok both with and without ACPI for ISA device flags.

Reviewed by: imp
MFC after: 1 day

19 years agoAdd missing flag to userland_sysctl()
phk [Thu, 14 Oct 2004 10:43:47 +0000 (10:43 +0000)]
Add missing flag to userland_sysctl()

19 years agoFix echo in console mode.
phk [Thu, 14 Oct 2004 08:58:28 +0000 (08:58 +0000)]
Fix echo in console mode.

19 years agoEhh. Introduce a hack: Wait for 3 seconds, so GEOM is able to give us
pjd [Thu, 14 Oct 2004 07:55:29 +0000 (07:55 +0000)]
Ehh. Introduce a hack: Wait for 3 seconds, so GEOM is able to give us
providers for tasting. Before this hack, race below is possible:
SI_SUB_RAID (no not-fully-configured geoms, so don't block)
GEOM tasting (now geoms are created)
SI_SUB_MOUNT_ROOT (if root file system is placed on a mirror, it is
possible that this mirror is not fully configured yet)
There is a lot of work to do to avoid such hacks and I need a working
solution before 5.3, sorry.

Reported by: John Hay <jhay@icomtek.csir.co.za>

19 years agoOnly allow for unloading when there are no geoms in LABEL GEOM class.
pjd [Thu, 14 Oct 2004 07:46:13 +0000 (07:46 +0000)]
Only allow for unloading when there are no geoms in LABEL GEOM class.
We have to use our own destroy_geom method, because default one, which
is a part of geom_slice is broken.
MT5 candidate.

PR: kern/72467
Submitted by: Vladimir Novoseltsev

19 years agoRemove requirement on FreeBSD keyword.
trhodes [Thu, 14 Oct 2004 04:37:57 +0000 (04:37 +0000)]
Remove requirement on FreeBSD keyword.

Skipped by: mtm (/me glares at mtm)  :)

19 years ago/me gets the wrong patch out of the pr :(
jmg [Thu, 14 Oct 2004 03:26:50 +0000 (03:26 +0000)]
/me gets the wrong patch out of the pr :(
/me had the write patch w/o comments on his test system.

Pointed out by: kuriyama and ache
Pointy hat to: jmg

19 years agoFix a spelling error in a panic string.
green [Thu, 14 Oct 2004 03:05:39 +0000 (03:05 +0000)]
Fix a spelling error in a panic string.

19 years agoFix warnings on non-i386 arch.
simokawa [Thu, 14 Oct 2004 00:21:32 +0000 (00:21 +0000)]
Fix warnings on non-i386 arch.

Submitted by: keramida

19 years agoAdd a regression test for floating-point output in the Greek locale.
keramida [Wed, 13 Oct 2004 22:32:12 +0000 (22:32 +0000)]
Add a regression test for floating-point output in the Greek locale.
See revision 1.3 of src/share/numericdef/el_GR.ISO8859-7.src

Reviewed by: das (a while ago)

19 years agoAdd the necessary magic to make the thousands separator work for
keramida [Wed, 13 Oct 2004 22:12:59 +0000 (22:12 +0000)]
Add the necessary magic to make the thousands separator work for
floating-point formats in the Greek locale.  This allows printing
numbers with the ' format modifier, like this:

$ env -i LC_NUMERIC=el_GR.ISO8859-7 printf "%'.3f\n" 1024000
1.024.000,000

Reviewed by: das

19 years agoFix maybe_preempt_in_ksegrp for !SMP.
ups [Wed, 13 Oct 2004 22:07:04 +0000 (22:07 +0000)]
Fix maybe_preempt_in_ksegrp for !SMP.

Tested   by: tegge
Reviewed by: julian
Approved by: sam (mentor)
MFC after: 3 days

19 years agofix a bug where signal events didn't set the flags for attach/detach..
jmg [Wed, 13 Oct 2004 20:55:19 +0000 (20:55 +0000)]
fix a bug where signal events didn't set the flags for attach/detach..

PR: 72234
MFC after: 2 days

19 years agoPrint a usage message if a non-option is specified.
schweikh [Wed, 13 Oct 2004 20:33:18 +0000 (20:33 +0000)]
Print a usage message if a non-option is specified.
MFC after: 3 weeks

19 years ago- Utilize standard means for installing files and symlinks.
ru [Wed, 13 Oct 2004 15:47:02 +0000 (15:47 +0000)]
- Utilize standard means for installing files and symlinks.

- Simplify the symlink list construction by implementing a
  generic mechanism to map LC_MONETARY files from one locale
  to another, possibly with a different <lang>_<territory>
  components of the locale name.  Example:

    ENCODING-1_ENCODING-2= fo_BA fo_FO:ba_BA

  in Makefile will result in the following symlinks:

    fo_BA.ENCODING-1/LC_MONETARY -> fo_BA.ENCODING-2/LC_MONETARY
    fo_FO.ENCODING-1/LC_MONETARY -> ba_BA.ENCODING-2/LC_MONETARY

- Install LC_MONETARY files with mode 444.

- While here, fixed trashing of the sr_YU.UTF-8/LC_MONETARY
  file by a symlink, and removed one duplicate symlink.

19 years agoRefine locking so it covers the "running" variable as well.
sos [Wed, 13 Oct 2004 15:16:35 +0000 (15:16 +0000)]
Refine locking so it covers the "running" variable as well.
Adjust comments etc to fit the new locking system.

19 years agoAdd device IDs for Intel ICH6.
le [Wed, 13 Oct 2004 14:51:42 +0000 (14:51 +0000)]
Add device IDs for Intel ICH6.

PR:             kern/72492
Submitted by:   Florian Le Goff <madflo@beertech.org>

19 years agos/Oct /October/
maxim [Wed, 13 Oct 2004 12:05:33 +0000 (12:05 +0000)]
s/Oct /October/

Pointed out by: ru

19 years ago1. Now that it's a thread's state is changed from within the kernel, where
mtm [Wed, 13 Oct 2004 11:42:20 +0000 (11:42 +0000)]
1. Now that it's a thread's state is changed from within the kernel, where
   no userland locks are heald, the dead thread lock can no longer protect
   access to it. Therefore, instead of using an if (!dead)...else clause
   after walking the active threads list test the thread pointer before
   deciding not to walk the dead threads list. If the thread pointer is null
   it means it was not found in the active threads list and the dead threads
   list should be checked.

2. Do not free the stack of a thread that is not marked dead. This is the
   2nd and final part of eliminating the race to free a thread's stack.

MFC after: 3 days

19 years ago- D-Link DFE-500TX verified to work
brueffer [Wed, 13 Oct 2004 11:03:50 +0000 (11:03 +0000)]
- D-Link DFE-500TX verified to work
- remove the 'Asante' entry which isn't very helpful

19 years agoRemove references to the second byte of a CCB containing the LUN, as this
bms [Wed, 13 Oct 2004 09:31:04 +0000 (09:31 +0000)]
Remove references to the second byte of a CCB containing the LUN, as this
is valid only for SCSI-2 and older devices.
Rename the second byte of the VERIFY CCB from 'lun' to 'byte2'.

Submitted by: ken
MFC after: 2 weeks

19 years agoUse generic tty code instead of local copy.
phk [Wed, 13 Oct 2004 09:27:18 +0000 (09:27 +0000)]
Use generic tty code instead of local copy.

19 years agoReflect sio driver device name change cuaa -> cuad
phk [Wed, 13 Oct 2004 08:32:34 +0000 (08:32 +0000)]
Reflect sio driver device name change cuaa -> cuad

19 years agoUse generic tty code instead of local stuff.
phk [Wed, 13 Oct 2004 08:27:20 +0000 (08:27 +0000)]
Use generic tty code instead of local stuff.

NB:  device names are now consistent:  {cua,tty}d$(port)[.lock,.init]

19 years agoBump the date of the document.
maxim [Wed, 13 Oct 2004 08:14:41 +0000 (08:14 +0000)]
Bump the date of the document.

19 years agoPrint before the footer, not after.
njl [Wed, 13 Oct 2004 07:29:29 +0000 (07:29 +0000)]
Print before the footer, not after.

19 years agoIf flags are present, print them like ISA does.
njl [Wed, 13 Oct 2004 07:27:21 +0000 (07:27 +0000)]
If flags are present, print them like ISA does.

MFC after: 1 day

19 years agoAccidentally removed the last component of the pathname when committing.
ru [Wed, 13 Oct 2004 07:12:14 +0000 (07:12 +0000)]
Accidentally removed the last component of the pathname when committing.

19 years agoSet flags for devices before probing them. In the non-ISA case, flags set
njl [Wed, 13 Oct 2004 07:10:41 +0000 (07:10 +0000)]
Set flags for devices before probing them.  In the non-ISA case, flags set
via hints were not getting passed to the child.

PR: kern/72489
MFC after: 1 day

19 years agoFirst half of tty code rework: unifdef -D__FreeBSD_Version=600000
phk [Wed, 13 Oct 2004 07:02:56 +0000 (07:02 +0000)]
First half of tty code rework:  unifdef -D__FreeBSD_Version=600000

The changes in the next commit would make the code totally unreadable
if the #ifdef'ing were maintained.

It might make a lot of sense to split if_cx.c in a netgraph related
and in a tty related file but I will not attempt that without hardware.

19 years agoFix a botched rev. 1.221 commit. Also, a number of people have
ru [Wed, 13 Oct 2004 07:00:21 +0000 (07:00 +0000)]
Fix a botched rev. 1.221 commit.  Also, a number of people have
pointed out that /usr/local/etc/rc.d/000.pkgtools.sh installed
with the portupgrade does an equivalent thing, so I personally
would like to see the change reverted, but let David handle it.

19 years agoLimit DMA address space to 1GB since the trident audio cards can't
yongari [Wed, 13 Oct 2004 06:04:01 +0000 (06:04 +0000)]
Limit DMA address space to 1GB since the trident audio cards can't
handle DMA addresses located above 1GB. The LBA(loop begin address)
register which holds DMA base address is 32bits register. But the
MSB 2bits are used for other purposes. This effectivly limits the
DMA address space up to 1GB.

Approved by: jake (mentor)
Reviewed by: truckman, matk

19 years agoAudio drivers failed to detect failure condition and attempted to
yongari [Wed, 13 Oct 2004 05:45:16 +0000 (05:45 +0000)]
Audio drivers failed to detect failure condition and attempted to
assign DMA address to the wrong address. It can cause system lockup
or other mysterious errors. Since most sound cards requires low DMA
address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the
audio driver is loaded after long running of operations.

Approved by: jake (mentor)
Reviewed by: truckman, matk

19 years agoAdd dcons_os.{c,h}.
simokawa [Wed, 13 Oct 2004 05:41:09 +0000 (05:41 +0000)]
Add dcons_os.{c,h}.

19 years ago- Split dcons core code and OS dependent code.
simokawa [Wed, 13 Oct 2004 05:38:42 +0000 (05:38 +0000)]
- Split dcons core code and OS dependent code.
- Implement dcons_ischar() and dcons_load_buffer().
- If loader passed a dcons buffer address, keep using it.
(We still need a patch to cheat memory management system.)

19 years agomdoc(7) police:
yongari [Wed, 13 Oct 2004 05:15:41 +0000 (05:15 +0000)]
mdoc(7) police:
.Dt should have a third argument.
new sentence should start on its own line.
use precise width specifier.
Add AUTHORS section and correct device name to /dev/led/auxioled.

Approved by: jake (mentor)
Pointed by: ru

19 years agoPermit fcntl(F_SETFL) to work on a ugen(4) device by not returning failure
green [Wed, 13 Oct 2004 04:13:05 +0000 (04:13 +0000)]
Permit fcntl(F_SETFL) to work on a ugen(4) device by not returning failure
for FIOASYNC.

19 years agoBack out rev.1.91 which implemented bulk read transfers in ugen(4) as
green [Wed, 13 Oct 2004 04:12:20 +0000 (04:12 +0000)]
Back out rev.1.91 which implemented bulk read transfers in ugen(4) as
asynchronous.  I realize that this means the custom application will
not work as written, but it is not okay to break most users of ugen(4).

The major problem is that a bulk read transfer is not an interrupt
saying that X bytes are available -- it is a request to be able to
receive up to X bytes, with T timeout, and S short-transfer-okayness.

The timeout is a software mechanism that ugen(4) provides and cannot
be implemented using asynchronous reads -- the timeout must start at
the time a read is done.

The status of up to how many bytes can be received in this transfer
and whether a short transfer returns data or error is also encoded
at least in ohci(4)'s requests to the controller.  Trying to detect
the "maximum width" results in using a single buffer of far too
small when an application requests a large read.

Even if you combat this by replacing all buffers again with the
maximal sized read buffer (1kb) that ugen(4) would allow you to
use before, you don't get the right semantics -- you have to
throw data away or make all the timeouts invalid or make the
short-transfer settings invalid.

There is no way to do this right without extending the ugen(4) API
much further -- it breaks the USB camera interfaces used because
they need a chain of many maximal-width transfers, for example, and
it makes cross-platform support for all the BSDs gratuitously hard.

Instead of trying to do select(2) on a bulk read pipe -- which has
neither the information on desired transfer length nor ability to
implement timeout -- an application can simply use a kernel thread
and pipe to turn that endpoint into something poll-able.

It is unfortunate that bulk endpoints cannot provide the same semantics
that interrupt and isochronous endpoints can, but it is possible to just
use ioctl(USB_GET_ENDPOINT_DESC) to find out when different semantics
must be used without preventing the normal users of the ugen(4) device
from working.

19 years agoooops.. vkbd(4) should not have been committed
emax [Tue, 12 Oct 2004 23:38:22 +0000 (23:38 +0000)]
ooops.. vkbd(4) should not have been committed

19 years agong_ubt(4) no longer provides device nodes interface. Update the
emax [Tue, 12 Oct 2004 23:35:34 +0000 (23:35 +0000)]
ng_ubt(4) no longer provides device nodes interface. Update the
man page to document this.

MFC after: 3 days

19 years agoGet rid of device nodes interface. It is useless and confusing.
emax [Tue, 12 Oct 2004 23:33:46 +0000 (23:33 +0000)]
Get rid of device nodes interface. It is useless and confusing.
The original idea was to use it for firmware upgrading and similar
operations. In real life almost all Bluetooth USB devices do not
need firmware download. If device does require firmware download
then ugen(4) (or specialized driver like ubtbcmfw(8)) should be
used instead.

MFC after: 3 days

19 years agoUse generic tty code instead of local copies.
phk [Tue, 12 Oct 2004 22:33:19 +0000 (22:33 +0000)]
Use generic tty code instead of local copies.

New devicename is ttyz{port}

No callout devices created.

Isn't this driver superseeded by uart(4) anyway ?

19 years agoupdate document date
jmg [Tue, 12 Oct 2004 21:43:03 +0000 (21:43 +0000)]
update document date

Reminded by: ru (a few weeks ago)

19 years agoDon't call driver close unless we have one.
phk [Tue, 12 Oct 2004 21:40:41 +0000 (21:40 +0000)]
Don't call driver close unless we have one.

19 years agoAttach the device description for ISA devices on the ACPI bus.
njl [Tue, 12 Oct 2004 21:33:08 +0000 (21:33 +0000)]
Attach the device description for ISA devices on the ACPI bus.

MFC after: 1 day