]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAdd some debug messages.
Hidetoshi Shimokawa [Fri, 18 Jul 2003 05:28:30 +0000 (05:28 +0000)]
Add some debug messages.

21 years agoCleanup thread accounting. Don't reset a threads timeslice
Daniel Eischen [Fri, 18 Jul 2003 02:46:55 +0000 (02:46 +0000)]
Cleanup thread accounting.  Don't reset a threads timeslice
when it blocks; it only gets reset when it yields.

Properly set a thread's default stack guardsize.

Reviewed by: davidxu

21 years agoAdd a preemption point when a mutex or condition variable is
Daniel Eischen [Fri, 18 Jul 2003 02:46:30 +0000 (02:46 +0000)]
Add a preemption point when a mutex or condition variable is
handed-off/signaled to a higher priority thread.  Note that when
there are idle KSEs that could run the higher priority thread,
we still add the preemption point because it seems to take the
kernel a while to schedule an idle KSE.  The drawbacks are that
threads will be swapped more often between CPUs (KSEs) and
that there will be an extra userland context switch (the idle
KSE is still woken and will probably resume the preempted
thread).  We'll revisit this if and when idle CPU/KSE wakeup
times improve.

Inspired by: Petri Helenius <pete@he.iki.fi>
Reviewed by: davidxu

21 years agoClean up KSE specific data (KSD) macros a bit.
Daniel Eischen [Fri, 18 Jul 2003 02:45:56 +0000 (02:45 +0000)]
Clean up KSE specific data (KSD) macros a bit.

Reviewed by: davidxu

21 years agoWhen the file system to unmount is specified by device name instead
Ian Dowse [Fri, 18 Jul 2003 01:10:16 +0000 (01:10 +0000)]
When the file system to unmount is specified by device name instead
of by mount point, umount had to take care not to unmount the wrong
file system if another file system was covering the requested one.
Now that the file system to unmount is specified to the kernel using
the filesystem ID, this confusion cannot occur, so remove the code
that checked for it.

21 years agoObey NOCRYPT
David E. O'Brien [Fri, 18 Jul 2003 01:07:18 +0000 (01:07 +0000)]
Obey NOCRYPT

Submitted by: Skip Ford <skip.ford@verizon.net>

21 years agoMake the 80x60, 132x25, 132x43, 132x50, and 132x60 VESA text modes
Robert Drehmel [Fri, 18 Jul 2003 00:06:10 +0000 (00:06 +0000)]
Make the 80x60, 132x25, 132x43, 132x50, and 132x60 VESA text modes
work when using a graphics chipset which identifies itself as
`VIA CLE266', used in some VIA EPIA boards.  Two values need to be
patched in the VESA mode information structure: the widths of the modes
mentioned above are encoded in a format which was unknown to the VESA
module (and to my copy of the VBE spec.) whereas the window memory
segment values seem to be just incorrect.

I tested this on a VIA EPIA-M9000 and -M10000.

21 years agoChanges to allow top to decide whether or not to show multiple threads per
Julian Elischer [Thu, 17 Jul 2003 23:56:40 +0000 (23:56 +0000)]
Changes to allow top to decide whether or not to show multiple threads per
process. Option -H enables it and it is toggled at the interactive
screen by 'H'.

Submitted by: Jung-uk Kim <jkim@niksun.com>

21 years agoTo avoid a kernel panic provoked by a NULL pointer dereference,
Robert Drehmel [Thu, 17 Jul 2003 23:49:10 +0000 (23:49 +0000)]
To avoid a kernel panic provoked by a NULL pointer dereference,
do not clear the `sb_sel' member of the sockbuf structure
while invalidating the receive sockbuf in sorflush(), called
from soshutdown().

The panic was reproduceable from user land by attaching a knote
with EVFILT_READ filters to a socket, disabling further reads
from it using shutdown(2), and then closing it.  knote_remove()
was called to remove all knotes from the socket file descriptor
by detaching each using its associated filterops' detach call-
back function, sordetach() in this case, which tried to remove
itself from the invalidated sockbuf's klist (sb_sel.si_note).

PR: kern/54331

21 years agoAvoid exposing declarations for kernel variables to userland.
Jake Burkholder [Thu, 17 Jul 2003 23:42:08 +0000 (23:42 +0000)]
Avoid exposing declarations for kernel variables to userland.

PR: 54528

21 years agoo Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it
David Xu [Thu, 17 Jul 2003 23:02:30 +0000 (23:02 +0000)]
o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it
  is system bound thread and when it is blocked, no upcall is generated.

o Add ability to libkse to allow it run in pure 1:1 threading mode,
  defining SYSTEM_SCOPE_ONLY in Makefile can turn on this option.

o Eliminate code for installing dummy signal handler for sigwait call.

o Add hash table to find thread.

Reviewed by: deischen

21 years agoFix sigwait to conform to POSIX.
David Xu [Thu, 17 Jul 2003 22:52:55 +0000 (22:52 +0000)]
Fix sigwait to conform to POSIX.
When a signal is being delivered to process, first find a sigwait
thread to deliver, POSIX's argument is speed of delivering signal
to sigwait thread is faster than other ways. A signal in its wait
set will cause sigwait to return the signal number, a signal not
in its wait set but in not blocked by the thread also causes sigwait
to return, but sigwait returns EINTR, sigwait is oneshot operation,
only one signal can be delivered to its wait set, when a signal is
delivered to the sigwait thread, the thread's sigwait state is canceled.

21 years agoo Refine kse_thr_interrupt to allow it to handle different commands.
David Xu [Thu, 17 Jul 2003 22:45:33 +0000 (22:45 +0000)]
o Refine kse_thr_interrupt to allow it to handle different commands.
o Remove TDF_NOSIGPOST.
o Add a member td_waitset to proc structure, it will be used for sigwait.

Tested by: deischen

21 years agoCorrect six return statements which returned zero instead of
Robert Drehmel [Thu, 17 Jul 2003 22:44:41 +0000 (22:44 +0000)]
Correct six return statements which returned zero instead of
an appropriate error number after a failure condition.

In particular, three of the changed statements return ESRCH for a
failed pfind(), and in also three places a non-zero return
from p_cansee() will be passed back,

Also noticed by: rwatson

21 years agoMake sure that SWP_NPAGES always has the same value in all source
Poul-Henning Kamp [Thu, 17 Jul 2003 21:58:43 +0000 (21:58 +0000)]
Make sure that SWP_NPAGES always has the same value in all source
files, so that SWAP_META_PAGES does not vary either.

swap_pager.c ended up with a value of 16, everybody else 8.  Go with
the 16 for now.

This should only have any effect in the "kill processes because we
are out of swap" scenario, where it will make some sort of estimate
of something more precise.

21 years agoStyle(9) cleanup. There was no consistent style in this driver, and
Mark Murray [Thu, 17 Jul 2003 19:37:56 +0000 (19:37 +0000)]
Style(9) cleanup. There was no consistent style in this driver, and
The next round of commits will be to fix up locking in it. This lot
is to at least give a consistent base to work off.

OK'ed by: imp, mdodd

21 years agoFix a bogon in the previous commit. When suppressing multiple isab
John Baldwin [Thu, 17 Jul 2003 19:13:41 +0000 (19:13 +0000)]
Fix a bogon in the previous commit.  When suppressing multiple isab
devices, we have to allow for the case when the isab0 device is ourselves.

Tested by: markm

21 years agoCorrect comments to indicate that the EM_RADV and EM_TADV parameters
John Polstra [Thu, 17 Jul 2003 19:02:34 +0000 (19:02 +0000)]
Correct comments to indicate that the EM_RADV and EM_TADV parameters
are not applicable to the 82544.

21 years agoNew release notes: ipfw(8) -n flag, comma-separeted address lists.
Hiroki Sato [Thu, 17 Jul 2003 17:21:56 +0000 (17:21 +0000)]
New release notes:  ipfw(8) -n flag, comma-separeted address lists.

MFC: ipfw(4) C++-style comment, rules in set 31.

21 years agoThis file became OBE when we went to GCC 3.
David E. O'Brien [Thu, 17 Jul 2003 17:15:22 +0000 (17:15 +0000)]
This file became OBE when we went to GCC 3.

21 years agoNO_TCSH would be set in /etc/make.conf, not here. Also obey NO_IPFILTER.
David E. O'Brien [Thu, 17 Jul 2003 16:44:06 +0000 (16:44 +0000)]
NO_TCSH would be set in /etc/make.conf, not here.  Also obey NO_IPFILTER.

21 years agoconsistify the style some
David E. O'Brien [Thu, 17 Jul 2003 16:33:18 +0000 (16:33 +0000)]
consistify the style some

21 years agoNow that the dust has settled, make dflt_lock() always panic.
Scott Long [Thu, 17 Jul 2003 16:07:46 +0000 (16:07 +0000)]
Now that the dust has settled, make dflt_lock() always panic.

21 years agoAdd quirk entry for IntelligentStick disc-on-key USB devices.
Thomas Quinot [Thu, 17 Jul 2003 15:33:08 +0000 (15:33 +0000)]
Add quirk entry for IntelligentStick disc-on-key USB devices.
Reported by Samuel Tardieu <sam@rfc1149.net>.

Reviewed by: roberto
MFC after: 1 week

21 years agoThe card resets the S/Uni chip when it is resetted. Therefor
Hartmut Brandt [Thu, 17 Jul 2003 13:43:16 +0000 (13:43 +0000)]
The card resets the S/Uni chip when it is resetted. Therefor
we need to reinitialize the PHY after the call to reset when
stopping the interface.

21 years agoDrop Giant around syncache timer processing.
Jeffrey Hsu [Thu, 17 Jul 2003 11:19:25 +0000 (11:19 +0000)]
Drop Giant around syncache timer processing.

21 years agoFix umtx locking, for libthr, in the kernel.
Mike Makonnen [Thu, 17 Jul 2003 11:06:40 +0000 (11:06 +0000)]
Fix umtx locking, for libthr, in the kernel.
1. There was a race condition between a thread unlocking
   a umtx and the thread contesting it. If the unlocking
   thread won the race it may try to wakeup a thread that
   was not yet in msleep(). The contesting thread would then
   go to sleep to await a wakeup that would never come. It's
   not possible to close the race by using a lock because
   calls to casuptr() may have to fault a page in from swap.
   Instead, the race was closed by introducing a flag that
   the unlocking thread will set when waking up a thread.
   The contesting thread will check for this flag before
   going to sleep. For now the flag is kept in td_flags,
   but it may be better to use some other member or create
   a new one because of the possible performance/contention
   issues of having to own sched_lock. Thanks to jhb for
   pointing me in the right direction on this one.

2. Once a umtx was contested all future locks and unlocks
   were happening in the kernel, regardless of whether it
   was contested or not. To prevent this from happening,
   when a thread locks a umtx it checks the queue for that
   umtx and unsets the contested bit if there are no other
   threads waiting on it. Again, this is slightly more
   complicated than it needs to be because we can't hold
   a lock across casuptr(). So, the thread has to check
   the queue again after unseting the bit, and reset the
   contested bit if it finds that another thread has put
   itself on the queue in the mean time.

3. Remove the if... block for unlocking an uncontested
   umtx, and replace it with a KASSERT. The _only_ time
   a thread should be unlocking a umtx in the kernel is
   if it is contested.

21 years agoWhen reporting errors binding IPv6 TCP sockets, don't call them UDP
Robert Watson [Thu, 17 Jul 2003 10:11:26 +0000 (10:11 +0000)]
When reporting errors binding IPv6 TCP sockets, don't call them UDP
sockets in the printf.

Fix two minor co-located whitespace glitches.

Product of: France

21 years agoRemove the commented out 'rmail' before someone gets a really bad idea.
David E. O'Brien [Thu, 17 Jul 2003 08:02:21 +0000 (08:02 +0000)]
Remove the commented out 'rmail' before someone gets a really bad idea.

21 years agoFix a grammar bogon and a typo
Christian Brueffer [Thu, 17 Jul 2003 07:29:20 +0000 (07:29 +0000)]
Fix a grammar bogon and a typo

Submitted by: Warren Block <wblock@wonkity.com>
MFC after: 3 days

21 years ago*major* style problems.
David E. O'Brien [Thu, 17 Jul 2003 06:29:10 +0000 (06:29 +0000)]
*major* style problems.

21 years agoWe don't need so many -I's.
David E. O'Brien [Thu, 17 Jul 2003 06:18:13 +0000 (06:18 +0000)]
We don't need so many -I's.

21 years agoFix the ski loader, broken by the gcc upgrade. Update the linker
Marcel Moolenaar [Thu, 17 Jul 2003 01:49:59 +0000 (01:49 +0000)]
Fix the ski loader, broken by the gcc upgrade. Update the linker
script to match the one for the EFI loader and rewrite __start()
in assembly to have gp defined without getting in the way of the
compiler.

21 years agoHave the linker script look more like the default linker script
Marcel Moolenaar [Thu, 17 Jul 2003 00:32:08 +0000 (00:32 +0000)]
Have the linker script look more like the default linker script
on ia64. This fixes the breakage caused by the gcc upgrade that
resulted in a broken executable.

21 years agoVery big makeover in the way telnet, telnetd and libtelnet are built.
Mark Murray [Wed, 16 Jul 2003 20:59:15 +0000 (20:59 +0000)]
Very big makeover in the way telnet, telnetd and libtelnet are built.

Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".

As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).

Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.

21 years agoChange the style of the english used to print accounting enabled
Bosko Milekic [Wed, 16 Jul 2003 13:20:10 +0000 (13:20 +0000)]
Change the style of the english used to print accounting enabled
and disabled.  This means no period at the end and changing
"Process accounting <foo>" to "Accounting <foo>".

Pointed out by: bde

21 years agoSome grammatical and markup fixes.
Hiroki Sato [Wed, 16 Jul 2003 12:24:22 +0000 (12:24 +0000)]
Some grammatical and markup fixes.

21 years agoNew release notes: ipfw(8), and atkbd(4) bug fix.
Hiroki Sato [Wed, 16 Jul 2003 10:37:12 +0000 (10:37 +0000)]
New release notes:  ipfw(8), and atkbd(4) bug fix.

21 years agoFix a typo.
Don Lewis [Wed, 16 Jul 2003 08:22:47 +0000 (08:22 +0000)]
Fix a typo.

21 years agoDocument mutex pool API enhancements that allow creation and use of
Don Lewis [Wed, 16 Jul 2003 08:16:40 +0000 (08:16 +0000)]
Document mutex pool API enhancements that allow creation and use of
multiple mutex pools.

21 years agoseems like i386 && DIAGNOSTIC needs sys/proc.h
John-Mark Gurney [Wed, 16 Jul 2003 08:15:02 +0000 (08:15 +0000)]
seems like i386 && DIAGNOSTIC needs sys/proc.h

Noticed by: tinderbox

21 years agoNuke the declaration of a function which was not implemented.
Don Lewis [Wed, 16 Jul 2003 08:13:13 +0000 (08:13 +0000)]
Nuke the declaration of a function which was not implemented.

21 years agoFix a typo.
Hideyuki KURASHINA [Wed, 16 Jul 2003 06:54:59 +0000 (06:54 +0000)]
Fix a typo.

Submitted by: Pawel Worach <pawel.worach@telia.com>

21 years agoDocument the latest controllers from 3ware as being supported.
Paul Saab [Wed, 16 Jul 2003 05:49:40 +0000 (05:49 +0000)]
Document the latest controllers from 3ware as being supported.

21 years agoLog process accounting activation/deactivation.
Bosko Milekic [Wed, 16 Jul 2003 03:59:50 +0000 (03:59 +0000)]
Log process accounting activation/deactivation.
Useful for some auditing purposes.

Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
PR: kern/54529

21 years agoadd missing machine/bus.h that is necessary to build now that usb is bus_dma
John-Mark Gurney [Wed, 16 Jul 2003 03:43:14 +0000 (03:43 +0000)]
add missing machine/bus.h that is necessary to build now that usb is bus_dma
aware.

21 years agoadd missing machine/bus.h headers that are now necessary because of the
John-Mark Gurney [Wed, 16 Jul 2003 02:20:14 +0000 (02:20 +0000)]
add missing machine/bus.h headers that are now necessary because of the
bus_dma addition.

21 years agochange CLASS depending upon __ELF_WORD_SIZE. This is necessary if
John-Mark Gurney [Wed, 16 Jul 2003 01:14:40 +0000 (01:14 +0000)]
change CLASS depending upon __ELF_WORD_SIZE.  This is necessary if
someone wants to try to run 32bit binaries on sparc64.

21 years agoRearrange the SYSINIT order to call lockmgr_init() earlier so that
Don Lewis [Wed, 16 Jul 2003 01:00:39 +0000 (01:00 +0000)]
Rearrange the SYSINIT order to call lockmgr_init() earlier so that
the runtime lockmgr initialization code in lockinit() can be eliminated.

Reviewed by: jhb

21 years agoAdd support for the BCM5705 and its ilk. Changes:
Bill Paul [Wed, 16 Jul 2003 00:09:56 +0000 (00:09 +0000)]
Add support for the BCM5705 and its ilk. Changes:

- 5705 doesn't support jumbo frames
- Statistics must be read from registers
- RX return ring must be capped at 512 entries
- Omit initialization of certain device blocks
- Acknowledge link change interrupts by setting the 'link changed'
  bit in the status register (used to have no effect)
- Remember to toggle the MI completion bit too
- Set the mbuf low watermark differently (on-chip memory buffers,
  not BSD mbufs)
- Don't enable Ethernet@WireSpeed feature for certain 5705 chip revs
- Add additional PCI IDs for 5705 and 5782 parts
- Add a forgotten 5704 PCI ID

Most changes ripped kicking and screaming from the Broadcom linux driver.
Thanks to Paul Saab for sanity testing. (My lack of sanity has been
confirmed.)

21 years agoadd support for interrupt counting on sparc64. This copies part of the
John-Mark Gurney [Wed, 16 Jul 2003 00:08:43 +0000 (00:08 +0000)]
add support for interrupt counting on sparc64.  This copies part of the
code from i386.  The code has a slight bogon that interrupts are counted
twice.  Once on the ithread dispatch and once on the dispatch for the vector

vmstat -i and systat -vm now contains interrupt counts.

Reviewed by: jake

21 years agomake allocation of the necessary data structures most efficent by using
John-Mark Gurney [Tue, 15 Jul 2003 23:19:49 +0000 (23:19 +0000)]
make allocation of the necessary data structures most efficent by using
a full page instead of only part of a page.

Reviewed by: joe

21 years agofix support for umass and related devices on ohci. This is a partial
John-Mark Gurney [Tue, 15 Jul 2003 23:12:54 +0000 (23:12 +0000)]
fix support for umass and related devices on ohci.  This is a partial
sync of the NetBSD code.

fix isochornous support for ohci.  This gets webcams like my OV511
working on sparc64.

PR: kern/52589
Submitted by: Bruce R. Montague (isochonous support)
Reviewed by: joe among others

21 years agoUserland side of:
Luigi Rizzo [Tue, 15 Jul 2003 23:08:44 +0000 (23:08 +0000)]
Userland side of:
Allow set 31 to be used for rules other than 65535.
Set 31 is still special because rules belonging to it are not deleted
by the "ipfw flush" command, but must be deleted explicitly with
"ipfw delete set 31" or by individual rule numbers.

This implement a flexible form of "persistent rules" which you might
want to have available even after an "ipfw flush".
Note that this change does not violate POLA, because you could not
use set 31 in a ruleset before this change.

Suggested by: Paul Richards

21 years agoAllow set 31 to be used for rules other than 65535.
Luigi Rizzo [Tue, 15 Jul 2003 23:07:34 +0000 (23:07 +0000)]
Allow set 31 to be used for rules other than 65535.
Set 31 is still special because rules belonging to it are not deleted
by the "ipfw flush" command, but must be deleted explicitly with
"ipfw delete set 31" or by individual rule numbers.

This implement a flexible form of "persistent rules" which you might
want to have available even after an "ipfw flush".
Note that this change does not violate POLA, because you could not
use set 31 in a ruleset before this change.

sbin/ipfw changes to allow manipulation of set 31 will follow shortly.

Suggested by: Paul Richards

21 years agomake usb bus_dma aware.
John-Mark Gurney [Tue, 15 Jul 2003 22:42:37 +0000 (22:42 +0000)]
make usb bus_dma aware.

Reviewed by: joe among others

21 years agosync w/ NetBSD
John-Mark Gurney [Tue, 15 Jul 2003 22:19:00 +0000 (22:19 +0000)]
sync w/ NetBSD

part of:
revision 1.101
date: 2002/06/01 23:51:04;  author: lukem;  state: Exp;  lines: +5 -7

21 years agominor white space fix up
John-Mark Gurney [Tue, 15 Jul 2003 22:14:22 +0000 (22:14 +0000)]
minor white space fix up
initalize itds
remove extra htole32.  Things don't work to well when you do
htole32(htole32(var))

21 years agoUnify the "send high" and "recover" variables as specified in the
Jeffrey Hsu [Tue, 15 Jul 2003 21:49:53 +0000 (21:49 +0000)]
Unify the "send high" and "recover" variables as specified in the
lastest rev of the spec.  Use an explicit flag for Fast Recovery. [1]

Fix bug with exiting Fast Recovery on a retransmit timeout
diagnosed by Lu Guohan. [2]

Reviewed by: Thomas Henderson <thomas.r.henderson@boeing.com>
Reported and tested by: Lu Guohan <lguohan00@mails.tsinghua.edu.cn> [2]
Approved by: Thomas Henderson <thomas.r.henderson@boeing.com>,
Sally Floyd <floyd@acm.org> [1]

21 years agoChange the msleep part of EcWaitEvent to be a separate loop, fixing a
Nate Lawson [Tue, 15 Jul 2003 19:24:36 +0000 (19:24 +0000)]
Change the msleep part of EcWaitEvent to be a separate loop, fixing a
problem that for some very slow ECs (~6 ms occasionally) causes a
timeout.  Also finish resource cleanup in the error case in attach.

Tested by: ume

21 years agoRemove old defines since they are no longer used.
Nate Lawson [Tue, 15 Jul 2003 19:19:54 +0000 (19:19 +0000)]
Remove old defines since they are no longer used.

21 years agoFix the ACPI_DEBUG build for the non-module case. Move the #define into
Nate Lawson [Tue, 15 Jul 2003 19:18:41 +0000 (19:18 +0000)]
Fix the ACPI_DEBUG build for the non-module case.  Move the #define into
acfreebsd.h and remove it from the Makefile.  Now ACPI_DEBUG implies
ACPI_DISASSEMBLER.

Noticed by: marcel

21 years agoDon't directly use GCC warnings.
David E. O'Brien [Tue, 15 Jul 2003 18:05:28 +0000 (18:05 +0000)]
Don't directly use GCC warnings.

21 years agoMove my inetd maintainer note to src/MAINTAINERS.
David Malone [Tue, 15 Jul 2003 16:52:22 +0000 (16:52 +0000)]
Move my inetd maintainer note to src/MAINTAINERS.

21 years agoGet the connections per minute calculation right. By good fortune
David Malone [Tue, 15 Jul 2003 16:46:45 +0000 (16:46 +0000)]
Get the connections per minute calculation right. By good fortune
(or possibly testing) the previous formula worked for the default
constants compiled into inetd, but if you recompiled with different
values of CHTSIZE and CHTGRAN the calculation might not have worked.

PR: 54354
Submitted by: Claus Assmann <ca@sendmail.org>
Submitted by: Jose Marcio Martins da Cruz <Jose-Marcio.Martins@ensmp.fr>
MFC after: 5 days

21 years agoInstead of returning an error call the ioctl() handler of the interface
Hartmut Brandt [Tue, 15 Jul 2003 15:51:50 +0000 (15:51 +0000)]
Instead of returning an error call the ioctl() handler of the interface
when we get request that we cannot handle ourself. This allows userland
to reach the ATM interfaces for ioctls.

21 years agoTest the OPEN flag to see whether a VCI is already open on the hook instead
Hartmut Brandt [Tue, 15 Jul 2003 15:48:10 +0000 (15:48 +0000)]
Test the OPEN flag to see whether a VCI is already open on the hook instead
to look for vci != 0. We can now open VCI 0 for monitoring purposes.

21 years agoBe careful to call bus_dmamap_load with BUS_DMA_NOWAIT so that the
Hartmut Brandt [Tue, 15 Jul 2003 15:45:41 +0000 (15:45 +0000)]
Be careful to call bus_dmamap_load with BUS_DMA_NOWAIT so that the
callback will never be deferred. ATM needs to prevent cell and packet
ordering. Also use the default mutex and lock functions (those that
panic) for the tag creation.

21 years agoBump the version numbers used for man page reference.
Hiroki Sato [Tue, 15 Jul 2003 15:40:21 +0000 (15:40 +0000)]
Bump the version numbers used for man page reference.

21 years agoNew release notes: hatm(4), patm(4).
Hiroki Sato [Tue, 15 Jul 2003 15:39:52 +0000 (15:39 +0000)]
New release notes:  hatm(4), patm(4).
Updated release notes: OpenPAM.

Remove references to rescue(7).

21 years agoAdd a __DECONST() to unbreak the build.
Dag-Erling Smørgrav [Tue, 15 Jul 2003 14:36:36 +0000 (14:36 +0000)]
Add a __DECONST() to unbreak the build.

21 years agoIf initial thread is still a bound thread, don't change its signal mask.
David Xu [Tue, 15 Jul 2003 14:04:38 +0000 (14:04 +0000)]
If initial thread is still a bound thread, don't change its signal mask.

21 years agoMove a period out of an if... clause. The period terminates the
Mike Makonnen [Tue, 15 Jul 2003 12:39:37 +0000 (12:39 +0000)]
Move a period out of an if... clause. The period terminates the
line and must always appear on the line.

Submitted by: netchild

21 years agoBack out revision 1.22.
Ceri Davies [Tue, 15 Jul 2003 12:23:12 +0000 (12:23 +0000)]
Back out revision 1.22.

Requested by: bde

21 years agoReference the patm(4) man page from here, like the other ATM drivers are
Hartmut Brandt [Tue, 15 Jul 2003 12:07:45 +0000 (12:07 +0000)]
Reference the patm(4) man page from here, like the other ATM drivers are
referenced.

21 years agoThe man page for the new IDT77252 driver.
Hartmut Brandt [Tue, 15 Jul 2003 11:58:23 +0000 (11:58 +0000)]
The man page for the new IDT77252 driver.

21 years agoThis is a driver for IDT77252 based ATM interfaces. It has been tested
Hartmut Brandt [Tue, 15 Jul 2003 11:57:24 +0000 (11:57 +0000)]
This is a driver for IDT77252 based ATM interfaces. It has been tested
with a ProATM-155 and an IDT evaluation board and should also work
with a ProATM-25 (it seems to work at least, I cannot really measure
what the card emits). The driver has been tested on i386 and sparc64,
but should work an other archs also. It supports UBR, CBR, ABR and VBR;
AAL0, AAL5 and AALraw. As an additional feature VCI/VPI 0/0 can be
opened for receiving in AALraw mode and receives all cells not claimed
by other open VCs (even cells with invalid GFC, VPI and VCI fields and
OAM cells).

Thanks to Christian Bucari from ProSum for lending two cards and answering
my questions.

21 years agoRemove three unneccessary comparisons that were always true.
Hartmut Brandt [Tue, 15 Jul 2003 11:50:59 +0000 (11:50 +0000)]
Remove three unneccessary comparisons that were always true.

Spotted by: gcc

21 years agoImplement an utility function that can be used by device drivers to
Hartmut Brandt [Tue, 15 Jul 2003 10:37:09 +0000 (10:37 +0000)]
Implement an utility function that can be used by device drivers to
implement the ATMIOCGVCCS ioctls. This routine handles changing
VCC tables (which can occure because we cannot hold the driver mutex
while allocating memory) with a loop and a re-allocation, should the
table not fit in the allocated memory.

21 years agoThe mbuf put on the interface queue contains the 4-byte pseudoheader.
Hartmut Brandt [Tue, 15 Jul 2003 10:30:57 +0000 (10:30 +0000)]
The mbuf put on the interface queue contains the 4-byte pseudoheader.
Account for this in the byte count.

21 years agoAdd identifiers for ProSum's and IDT's cards that are based on
Hartmut Brandt [Tue, 15 Jul 2003 10:28:06 +0000 (10:28 +0000)]
Add identifiers for ProSum's and IDT's cards that are based on
the IDT77252 chip. The driver will follow soon.

21 years agoATM_PH_LLCSNAP and ATMIO_FLAG_LLCSNAP must have the same value, so
Hartmut Brandt [Tue, 15 Jul 2003 10:26:34 +0000 (10:26 +0000)]
ATM_PH_LLCSNAP and ATMIO_FLAG_LLCSNAP must have the same value, so
define one in terms of the other.

21 years agoMake sure that comments are printed at the end of a rule.
Luigi Rizzo [Tue, 15 Jul 2003 10:23:43 +0000 (10:23 +0000)]
Make sure that comments are printed at the end of a rule.

Reported by:  Patrick Tracanelli <eksffa@freebsdbrasil.com.br>

21 years agoProtect a kernel structure by _KERNEL.
Hartmut Brandt [Tue, 15 Jul 2003 10:22:55 +0000 (10:22 +0000)]
Protect a kernel structure by _KERNEL.

21 years agoAdd a facility for devices, specifically network interfaces, that require
Hartmut Brandt [Tue, 15 Jul 2003 08:59:38 +0000 (08:59 +0000)]
Add a facility for devices, specifically network interfaces, that require
large to huge amounts of small or medium sized receive buffers. The problem
with these situations is that they eat up the available DMA address space
very quickly when using mbufs or even mbuf clusters. Additionally this
facility provides a direct mapping between 32-bit integers and these buffers.
This is needed for devices originally designed for 32-bit systems. Ususally
the virtual address of the buffer is used as a handle to find the buffer as
soon as it is returned by the card. This does not work for 64-bit machines
and hence this mapping is needed.

21 years ago(Hopefully) Last set of changes so all of lpr uses __FBSDID() for
Garance A Drosehn [Tue, 15 Jul 2003 08:48:30 +0000 (08:48 +0000)]
(Hopefully) Last set of changes so all of lpr uses __FBSDID() for
setting rcsids, and uses a consistent format for 'sccsid' lines.

Reviewed by: discussed with bde and obrien
MFC after: 15 days

21 years agoMore changes to use __FBSDID() for setting rcsids, and fix the
Garance A Drosehn [Tue, 15 Jul 2003 08:45:06 +0000 (08:45 +0000)]
More changes to use __FBSDID() for setting rcsids, and fix the
format of 'sccsid' lines so they consistently match style(9).
A minor Makefile change is needed so lptest.c can find lp.cdefs.h.

Reviewed by: discussed with bde and obrien
MFC after: 15 days

21 years agoMore changes to use __FBSDID() for setting rcsids, and fix the
Garance A Drosehn [Tue, 15 Jul 2003 08:40:31 +0000 (08:40 +0000)]
More changes to use __FBSDID() for setting rcsids, and fix the
format of 'sccsid' lines so they consistently match style(9)
Also the 'sccsid' line is formatted to match style(9), and
a 'From:' is removed so the sccsid returns to what it was back
in the days of '-r CSRG' (1996).

Reviewed by: discussed with bde and obrien
MFC after: 15 days

21 years agoMore devices supported, but not in the man page
Warner Losh [Tue, 15 Jul 2003 07:27:57 +0000 (07:27 +0000)]
More devices supported, but not in the man page

21 years agoThis commit was generated by cvs2svn to compensate for changes in r117615,
Dag-Erling Smørgrav [Tue, 15 Jul 2003 07:23:52 +0000 (07:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r117615,
which included commits to RCS files with non-trunk default branches.

21 years agoOpenBSD calls this AIRVAST, so use that instead
Warner Losh [Tue, 15 Jul 2003 07:22:21 +0000 (07:22 +0000)]
OpenBSD calls this AIRVAST, so use that instead

21 years agosync to 1.58
Warner Losh [Tue, 15 Jul 2003 07:22:03 +0000 (07:22 +0000)]
sync to 1.58

21 years agoThis commit was generated by cvs2svn to compensate for changes in r117610,
Dag-Erling Smørgrav [Tue, 15 Jul 2003 07:18:26 +0000 (07:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r117610,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of OpenPAM Dogwood.
Dag-Erling Smørgrav [Tue, 15 Jul 2003 07:18:26 +0000 (07:18 +0000)]
Vendor import of OpenPAM Dogwood.

21 years agoMore changes to use __FBSDID() for setting rcsids. For the filter
Garance A Drosehn [Tue, 15 Jul 2003 07:01:01 +0000 (07:01 +0000)]
More changes to use __FBSDID() for setting rcsids.  For the filter
programs, minor Makefile changes are needed to find lp.cdefs.h.
For lpf.c, the 'sccsid' line is formatted to match style(9), and
a 'From:' is removed so the sccsid returns to what it was back
in the days of '-r CSRG' (1994).

Reviewed by: discussed with bde and obrien
MFC after: 15 days

21 years agoRename thread_siginfo to cpu_thread_siginfo.
Marcel Moolenaar [Tue, 15 Jul 2003 04:43:33 +0000 (04:43 +0000)]
Rename thread_siginfo to cpu_thread_siginfo.

21 years agoRename thread_siginfo to cpu_thread_siginfo
David Xu [Tue, 15 Jul 2003 04:26:26 +0000 (04:26 +0000)]
Rename thread_siginfo to cpu_thread_siginfo

21 years agoFix typo: Passing the first argument to exit() in out2 does not work.
Marcel Moolenaar [Tue, 15 Jul 2003 03:50:38 +0000 (03:50 +0000)]
Fix typo: Passing the first argument to exit() in out2 does not work.
Trust me.

21 years agoSiemens SpeedStream SS1021
Warner Losh [Tue, 15 Jul 2003 03:41:13 +0000 (03:41 +0000)]
Siemens SpeedStream SS1021

Obtained from: OpenBSD (minor mods for our stuff); millert

21 years agoAdd Siemens SpeedStream 1021
Warner Losh [Tue, 15 Jul 2003 03:34:08 +0000 (03:34 +0000)]
Add Siemens SpeedStream 1021

Obainted from: openbsd (in spirit); millert