]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoDefine OPENSSL_DES_LIBDES_COMPATIBILITY so that Heimdal will build with
nectar [Tue, 21 Jan 2003 14:08:24 +0000 (14:08 +0000)]
Define OPENSSL_DES_LIBDES_COMPATIBILITY so that Heimdal will build with
OpenSSL 0.9.7 when it is imported.  (This currently has no effect.)

21 years agoRemove NEXTDOSPART.
nyan [Tue, 21 Jan 2003 14:02:11 +0000 (14:02 +0000)]
Remove NEXTDOSPART.

21 years agoUse NDOSPART instead of NEXTDOSPART.
nyan [Tue, 21 Jan 2003 13:59:53 +0000 (13:59 +0000)]
Use NDOSPART instead of NEXTDOSPART.

21 years agoMFi386: revision 1.63.
nyan [Tue, 21 Jan 2003 13:57:43 +0000 (13:57 +0000)]
MFi386: revision 1.63.

21 years agoNeeds wlan for wi.
imp [Tue, 21 Jan 2003 13:31:52 +0000 (13:31 +0000)]
Needs wlan for wi.

21 years agoDon't forget to properly quote input.
mtm [Tue, 21 Jan 2003 12:11:35 +0000 (12:11 +0000)]
Don't forget to properly quote input.

Approved by: markm (mentor)(implicit)
Submitted by: Robin Breathe <robin@isometry.net>

21 years ago#ifdef NO_GEOM some bits here too.
phk [Tue, 21 Jan 2003 11:39:19 +0000 (11:39 +0000)]
#ifdef NO_GEOM some bits here too.

21 years agoUpdate with the current list of scanners that the driver supports.
joe [Tue, 21 Jan 2003 11:39:13 +0000 (11:39 +0000)]
Update with the current list of scanners that the driver supports.

21 years agoRegen
joe [Tue, 21 Jan 2003 11:38:17 +0000 (11:38 +0000)]
Regen

21 years agoAdd support for Epson 1660 scanner.
joe [Tue, 21 Jan 2003 11:37:54 +0000 (11:37 +0000)]
Add support for Epson 1660 scanner.

Submitted by: Bruno Schwander <bruno@tinkerbox.org>
MFC after: 3 days

21 years agouse 'void *' instead of 'caddr_t' for useracc, kernacc, vslock and vsunlock.
alfred [Tue, 21 Jan 2003 11:34:57 +0000 (11:34 +0000)]
use 'void *' instead of 'caddr_t' for useracc, kernacc, vslock and vsunlock.

21 years ago#ifdef NO_GEOM all of this file.
phk [Tue, 21 Jan 2003 10:40:46 +0000 (10:40 +0000)]
#ifdef NO_GEOM all of this file.

21 years agoBandaid to make the kernel compile until the scsi-crew can find out what
phk [Tue, 21 Jan 2003 10:31:43 +0000 (10:31 +0000)]
Bandaid to make the kernel compile until the scsi-crew can find out what
is happening.

21 years agoMake this compile with DEBUG defined now that WARNS=0 has been removed
tjr [Tue, 21 Jan 2003 10:06:04 +0000 (10:06 +0000)]
Make this compile with DEBUG defined now that WARNS=0 has been removed
from the Makefile:
- Print pointers with %p instead of %x.
- Include missing headers to get prototypes.

Noticed by: benno

21 years agoAdd yet another Sony Vaio PS/2 mouse ID. This one is found in a R505GL.
marcel [Tue, 21 Jan 2003 10:00:32 +0000 (10:00 +0000)]
Add yet another Sony Vaio PS/2 mouse ID. This one is found in a R505GL.
The ACPI data for the mouse includes the compatibility ID, but we
apparently don't make use of it.

21 years agoAdd a missing '{'
phk [Tue, 21 Jan 2003 09:57:01 +0000 (09:57 +0000)]
Add a missing '{'

21 years agoCatch up to WAIT/NOWAIT cleanup.
alfred [Tue, 21 Jan 2003 08:57:35 +0000 (08:57 +0000)]
Catch up to WAIT/NOWAIT cleanup.

21 years agoRemove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
alfred [Tue, 21 Jan 2003 08:56:16 +0000 (08:56 +0000)]
Remove M_TRYWAIT/M_WAITOK/M_WAIT.  Callers should use 0.
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.

21 years agopccardd and pccardc are for i386 and pc98 only. Don't build them on
imp [Tue, 21 Jan 2003 08:42:27 +0000 (08:42 +0000)]
pccardd and pccardc are for i386 and pc98 only.  Don't build them on
other architectures.

Pointed out by: peter

21 years agoRemove the fake disklabel, no longer needed.
sos [Tue, 21 Jan 2003 08:33:48 +0000 (08:33 +0000)]
Remove the fake disklabel, no longer needed.
Fix potential malloc panic.

Prodded by: phk

21 years ago- Restore header printing to wi_printaplist()
mdodd [Tue, 21 Jan 2003 07:28:57 +0000 (07:28 +0000)]
- Restore header printing to wi_printaplist()
- Move APRATE switch() code to function for clarity.
- Conditionally call wi_printaplist() alone if more than one 'L'
  is preset.
- Add the 'Q' flag to suppress printing of extraneous information
  in wi_printaplist().
- Re-order second getopt() in main().

Reviewed by:  imp

21 years agopreserve the order of tags copied by m_tag_copy_chain
sam [Tue, 21 Jan 2003 06:14:38 +0000 (06:14 +0000)]
preserve the order of tags copied by m_tag_copy_chain

Obtained from: OpenBSD

21 years agoThe PowerPC-specfic scripttempl file was depreciated in favor of the generic
obrien [Tue, 21 Jan 2003 06:12:56 +0000 (06:12 +0000)]
The PowerPC-specfic scripttempl file was depreciated in favor of the generic
ELF one.

21 years agoRun kldxref on sparc64, it works now.
jake [Tue, 21 Jan 2003 05:52:48 +0000 (05:52 +0000)]
Run kldxref on sparc64, it works now.

21 years agoFix module dependency (pre)loading on sparc64 by relocating the variables
jake [Tue, 21 Jan 2003 05:46:46 +0000 (05:46 +0000)]
Fix module dependency (pre)loading on sparc64 by relocating the variables
read from the raw kld files.

Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: 46870
Tested on: alpha (obrien), i386, sparc64

21 years ago - Add a VM_WAIT in the appropriate cases where vm_page_alloc() fails and flags
jeff [Tue, 21 Jan 2003 05:44:52 +0000 (05:44 +0000)]
 - Add a VM_WAIT in the appropriate cases where vm_page_alloc() fails and flags
   indicate that uma_small_alloc should not.  This code should be refactored so
   that there is not so much cross arch duplication.

Reviewed by: jake
Spotted by: tmm
Tested on: alpha, sparc64
Pointy hat to: jeff and everyone who cut and pasted the bad code. :-)

21 years agohook fast_ipsec.4 up
sam [Tue, 21 Jan 2003 05:35:56 +0000 (05:35 +0000)]
hook fast_ipsec.4 up

21 years agofast ipsec protocols
sam [Tue, 21 Jan 2003 05:35:08 +0000 (05:35 +0000)]
fast ipsec protocols

21 years agoNew errata entry for ipfw(4).
bmah [Tue, 21 Jan 2003 05:30:41 +0000 (05:30 +0000)]
New errata entry for ipfw(4).

Submitted by: maxim
Reviewed by: rwatson, bmah

21 years agoThe FTP daemon was vulnerable to a DoS where an attacker could bind()
cjc [Tue, 21 Jan 2003 05:13:02 +0000 (05:13 +0000)]
The FTP daemon was vulnerable to a DoS where an attacker could bind()
up port 20 for an extended period of time and thus lock out all other
users from establishing PORT data connections. Don't hold on to the
bind() while we loop around waiting to see if we can make our
connection.

Being a DoS, it has security implications, giving it a short MFC
time.

MFC after: 1 day

21 years agoAugment the model number list.
obrien [Tue, 21 Jan 2003 04:43:16 +0000 (04:43 +0000)]
Augment the model number list.

21 years agoRewrite the SMP filedesc locking in knote_attach() in order to
hsu [Tue, 21 Jan 2003 04:05:49 +0000 (04:05 +0000)]
Rewrite the SMP filedesc locking in knote_attach() in order to
  1.  eliminate unnecessary loop which frees and re-allocates
the just allocated array
  2.  eliminate the newsize recomputation
  3.  eliminate unnecessary unlock and relock around free
  4.  correctly match the free with the malloc into M_KQUEUE instead of M_TEMP
  5.  eliminate conditional assignment of oldlist, which is equivalent to a
simple assignment
  6.  eliminate the oldlist temporary variable completely

Reviewed by:    jhb

21 years agoGC an unused reference to vop_refreshlabel_desc; reference to
rwatson [Tue, 21 Jan 2003 04:05:37 +0000 (04:05 +0000)]
GC an unused reference to vop_refreshlabel_desc; reference to
opt_mac.h was removed previously so it was never compiled in.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoFix kldxref on sparc64 by allowing non-trivial relocations to be performed
jake [Tue, 21 Jan 2003 03:51:53 +0000 (03:51 +0000)]
Fix kldxref on sparc64 by allowing non-trivial relocations to be performed
on variables read out of raw kld files.  Unlike other platforms the value
will be in an Elf_Rela, not in the data section of the elf file.

Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: 46730
Tested on: alpha (obrien), i386, sparc64

21 years agoPerform VOP_GETATTR() before mac_check_vnode_exec() so that
rwatson [Tue, 21 Jan 2003 03:26:28 +0000 (03:26 +0000)]
Perform VOP_GETATTR() before mac_check_vnode_exec() so that
the cached attributes are available to MAC modules.

Submitted by:   mike halderman <mrh@nosc.mil>
Obtained from: TrustedBSD Project

21 years agoResolve relative relocations in klds before trying to parse the module's
jake [Tue, 21 Jan 2003 02:42:44 +0000 (02:42 +0000)]
Resolve relative relocations in klds before trying to parse the module's
metadata.  This fixes module dependency resolution by the kernel linker on
sparc64, where the relocations for the metadata are different than on other
architectures; the relative offset is in the addend of an Elf_Rela record
instead of the original value of the location being patched.
Also fix printf formats in debug code.

Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>
PR: 46732
Tested on: alpha (obrien), i386, sparc64

21 years agoFix a missed goal.period -> goal.offset change. In
gibbs [Mon, 20 Jan 2003 23:51:18 +0000 (23:51 +0000)]
Fix a missed goal.period -> goal.offset change.  In
this case, the bug resulted in comparing a period
against an offset.

21 years agoinclude cdefs.h so as to unbreak the libc build
gallatin [Mon, 20 Jan 2003 22:05:39 +0000 (22:05 +0000)]
include cdefs.h so as to unbreak the libc build

21 years agoReference maclabel(7).
chris [Mon, 20 Jan 2003 21:25:00 +0000 (21:25 +0000)]
Reference maclabel(7).

Sponsored by: DARPA, Network Associates Laboratories

21 years agoConvert badsect to use libufs.
jmallett [Mon, 20 Jan 2003 21:24:34 +0000 (21:24 +0000)]
Convert badsect to use libufs.

21 years agoAdd libufs to dependencies.
jmallett [Mon, 20 Jan 2003 21:18:44 +0000 (21:18 +0000)]
Add libufs to dependencies.

21 years agoProperly mark up column lists. This does not affect output; I just had
chris [Mon, 20 Jan 2003 21:15:03 +0000 (21:15 +0000)]
Properly mark up column lists.  This does not affect output; I just had
the arguments to .Bl incorrect.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoMake tunefs use libufs, it seems to do well enough for printing / setting
jmallett [Mon, 20 Jan 2003 21:15:02 +0000 (21:15 +0000)]
Make tunefs use libufs, it seems to do well enough for printing / setting
things.

21 years agomove sysctl's under hw.hifn; change max batching default to 1 (no batching)
sam [Mon, 20 Jan 2003 21:11:56 +0000 (21:11 +0000)]
move sysctl's under hw.hifn; change max batching default to 1 (no batching)
based on what I learned from the Broadcom h/w

21 years agomove sysctl's under hw.ubsec
sam [Mon, 20 Jan 2003 21:07:30 +0000 (21:07 +0000)]
move sysctl's under hw.ubsec

21 years agoReference the MAC chapter in the user Handbook.
chris [Mon, 20 Jan 2003 21:07:11 +0000 (21:07 +0000)]
Reference the MAC chapter in the user Handbook.

Sponsored by: DARPA, Network Associates Laboratories

21 years agocorrect default setting of hw.wi.txerate; it must be -1, not zero,
sam [Mon, 20 Jan 2003 21:06:58 +0000 (21:06 +0000)]
correct default setting of hw.wi.txerate; it must be -1, not zero,
to silence all msgs (like the old driver)

21 years agocorrect sysctl names and move them to hw.wi: hw.wi.txerate controls the rate
sam [Mon, 20 Jan 2003 20:55:37 +0000 (20:55 +0000)]
correct sysctl names and move them to hw.wi: hw.wi.txerate controls the rate
at which tx errors are printed (default to 0); hw.wi.debug control the debug
msgs and is only present when WI_DEBUG is defined at compile time (the default
for the moment)

Requested by: imp

21 years agoaic7xxx.reg:
gibbs [Mon, 20 Jan 2003 20:44:55 +0000 (20:44 +0000)]
aic7xxx.reg:
Add a constant for the controller's stack size and the
maximum scsi offset.

aic7xxx.seq:
Style nit.  The source is implied to be the destination
unless overridden in an "and" instruction.

Update target mode code for changes in identify seen
sequencer flags.

aic7xxx_pci.c:
Ensure that the PCIERRGENDIS bit is set in the
PCIERRGEN config space register.  Perhaps this
is a reason for the spurios parity errors reported
on U160 controllers.

Honor the AHC_NO_BIOS_INIT flag.

Allow PCI interrupt reporting to be disabled,
by clearing the PERRRESEN bit in the command
register.  This option is now enabled via a new
softc flag: AHC_DISABLE_PCI_PERR.

Disable SERR and pause the controller prior to performing
our mmapped I/O test.  This should handle the case of
controllers that do not "auto-access pause".  For legacy
controllers, use SCB ram instead of scratch ram since
the latter may contain settings left over from the BIOS
that we will use if an seeprom is not found.

Make use of new ahc_inl/outl() inlines.

aic7xxx.h:
Reformat a few comments to follow driver style.

Add a controller flags that indicate that a controller
has not been initialized by the BIOS and whether to
disable PCI parity errors..

Remove stack probing softc members.

Add a few more syncrate constants that are useful in speed
fallback calculations.

Add the SHOW_MASKED_ERRORS debug flag.

aic7xxx.h:
aic7xxx.c:
Implement the SCB_SILENT flag.  This is useful for
hushing up the driver during DV or other operations
that we expect to cause transmission errors.  The
messages will still print if the SHOW_MASKED_ERRORS
debug option is enabled.

aic7xxx_inline.h:
Implement ahc_[in|out][w|l|q].  This removes the need
for manual 'or and shift" type operations throughout
the driver.

aic7xxx.c:
Move SELTO dignostic so that the SCB is still valid
when we use it for printing path information.

If we are narrow, limit syncrate to Ultra2.

Don't clobber ppr_options when forcing a renegotiation.
The current ppr_options may be referenced while queuing
new commands.  Don't set our width to unknown when forcing
negotiation on narrow controllers.  This will confuse the
negotiation code into negotiating with a wide message on
narrow controllers.

Add an "asserting atn" diagnostic with controller/target
information.

Remove the probe_stack code.  The stack is always
4 deep on legacy controllers, so probing is pointless.
This also avoids an issue where probing the stack would
upset the aic7770.

In ahc_reset(), record whether or not we found the
controller in a reset state.  If the controller was
already reset, assume that no BIOS has initialized
the controller and ignore left over scratch ram
settings.

Fix an ifdef bug that caused sequencer debugging to
be enabled always.

Clear the ultraenb flag in our tstate during startup.
The ultraenbled'ness of a device is recorded in the user
transfer settings.  tstate->ultraenb bitmask indicates
which devices we have negotiated an ultra speed with.
Just after initialization, we are async.  Setting the
ultraenb flag while async seems to be harmless, but it
was confusing to see the ULTRAENB flag set in the SCB.

Enhance residual diagnostic to indicate if the residual
if for sense information or normal data transfers.

Indicate the features, bugs, and flags set in the softc
that are used to control firmware patch download when
booting verbose.

In ahc_dump_card_state() fix a logic reversal.  The
SCSIPHASE register only exists on U160 controllers.
The SCSISIGI register exists on all controllers.  Not
the other way around.  Also print out the ERROR register.

Allow ahc_dump_card_state() to be called when the sequencer
is not paused.  Add dump card state markers as in the U320
driver.

21 years agoFix typo in comment: inlcude -> include.
olgeni [Mon, 20 Jan 2003 20:23:56 +0000 (20:23 +0000)]
Fix typo in comment: inlcude -> include.

21 years agoaic79xx.c:
gibbs [Mon, 20 Jan 2003 20:17:35 +0000 (20:17 +0000)]
aic79xx.c:
Implement the SCB_SILENT flag.  This is useful for
hushing up the driver during DV or other operations
that we expect to cause transmission errors.  The
messages will still print if the SHOW_MASKED_ERRORS
debug option is enabled.

Save and restore the NEGOADDR address when setting
new transfer settings.  The sequencer performs lookups
in the negotiation table too and it expects NEGOADDR
to remain consistent across pause/unpause sessions.

Consistently use "offset" instead of "period" to determine
if we are running sync or not.

Add a SHOW_MESSAGES diagnostic for when we assert ATN
during message processing.

Print out IU, QAS, and RTI features when showing transfer options.

Limit the syncrate after all option conformance
changes have taken place in ahd_devlimited_syncrate.
Changes in options may change the final syncrate we
accept.

Keep a copy of the hs_mailbox in our softc so that
we can perform read/modify/write operations on the
hs_mailbox without having to pause the sequencer to
read the last written value.  Use the ENINT_COALESS
flag in the hs_mailbox to toggle interrupt coalessing.

Add entrypoints for enabling interrupt coalessing and
setting both a timeout (how long to wait for commands
to be coalessed) and a maximum commands to coaless value.
Add a statistics timer that decides when to enable or
disable interrupt coalessing based on load.

Add a routine, ahd_reset_cmds_pending() which is used
to update the CMDS_PENDING sequencer variable whenever
error recovery compeltes SCBs without notifying the
sequencer.  Since ahd_reset_cmds_pending is called
during ahd_unpause() only if we've aborted SCBs, its
call to ahd_flush_qoutfifo should not cause recursion
through ahd_run_qoutfifo().  A panic has been added to
ensure that this recursion does not occur.

In ahd_search_qinfifo, update the CMDS_PENDING sequencer
variable directly.  ahd_search_qinififo can be called
in situations where using ahd_reset_cmds_pending() might
cause recursion.  Since we can safely determine the
exact number to reduce CMDS_PENDING by in this scenario
without running the qoutfifo, the manual update is sufficient.

Clean up diagnostics.
Add ahd_flush_qoutfifo() which will run the qoutfifo
as well as complete any commands sitting on the
sequencer's COMPLETE_SCB lists or the good status FIFO.
Use this routine in several places that did similar
things in an add-hoc, but incomplete, fashion.  A call
to this routine was also added to ahd_abort_scbs() to
close a race.

In ahd_pause_and_flushwork() only return once selections
are safely disabled.  Flush all completed commands via
ahd_flush_qoutfifo().

Remove "Now packetized" diagnostic now that this
information is incorperated into the actual negotiation
messages that are displayed.

When forcing renegotiation, don't clober the current
ppr_options.  Much of the driver uses this information
to determine if we are currently packetized or not.

Remove some stray spaces at column 1 in ahd_set_tags.

When complaining about getting a host message loop
request with no pending messages, print out the
SCB_CONTROL register down on the card.

Modify the ahd_sent_msg() routine to handle a search
for an outgoing identify message.  Use this to detect
a msg reject on an identify message which typically
indicates that the target thought we were packetized.
Force a renegotiation in this case.

In ahd_search_qinfifo(), wait more effectively for SCB
DMA activities to cease.  We also disable SCB fetch
operations since we are about to change the qinfifo
and any fetch in progress will likely be invalidated.

In ahd_qinfifo_count(), fix the qinfifo empty case.

In ahd_dump_card_state(), print out CCSCBCTL in the
correct mode.

If we are a narrow controller, don't set the current
width to unknown when forcing a future negotiation.
This just confuses the code into attempting a wide
negotiation on a narrow bus.

Add support for task management function completions.

Modify ahd_handle_devreset so that it can handle
lun resets in addition to target resets.  Use
ahd_handle_devreset for lun and target reset task
management functions.

Handle the abort task TMF race case better.  We now
wait until any current selections are over and then
set the TMF back to zero.  This should cause the sequencer
to ignore the abort TMF completion should it occur.

Correct a bug in the illegal phase handler that
caused us to drop down to narrow when handling the
unexpected command phase case after 3rd party
reset of a packetized device.

Indicate the features, bugs, and flags set in the softc
that are used to control firmware patch download when
        booting verbose.

aic79xx.h:
Add coalessing and HS_MAILBOX fields.

Add per-softc variables for the stats "daemon".

Add a debug option for interrupt coalessing activities.

Add two new softc flags:
o AHD_UPDATE_PEND_CMDS
  Run ahd_reset_cmds_pending() on the next unpause.

o AHD_RUNNING_QOUTFIFO
  Used to catch recursion through ahd_run_qoutfifo().

aic79xx.reg:
Correct register addresses related to the software timer
and the DFDBCTL register.

Add constants paramaterizing the software timer.

Add scratch ram locations for storing interrupt coalessing
tunables.

Break INTMASK in SEQITNCTL out into INTMASK1 and INTMASK2.
In at least the REV A, these are writable bits.  We make
use of that for a swtimer workaround in the sequencer.

Since HS_MAILBOX autoclears, provide a sequencer variable
to store its contents.

Add SEQINT codes for handling task management completions.

aic79xx.seq:
Correct ignore wide residue processing check for
a wide negotiation being in effect.  We must be
in the SCSI register window in order to access the
negotiation table.

Use the software timer and a commands completed count to
implement interrupt coalessing.  The command complete is
deferred until either the maximum command threshold or a
the expiration of a command deferral timer.  If we have
more SCBs to complete to the host (sitting in COMPLETE_SCB
lists), always try to coaless them up to our coalessing limit.
If coalessing is enabled, but we have fewer commands oustanting
than the host's min coalessing limit, complete the command
immediately.

Add code to track the number of commands outstanding.
Commands are outstanding from the time they are placed
into the execution queue until the DMA to post completion
is setup.

Add a workaround for intvec_2 interrupts on the H2A4.
In H2A4, the mode pointer is not saved for intvec2, but
is restored on iret.  This can lead to the restoration
of a bogus mode ptr.  Manually clear the intmask bits and
do a normal return to compensate.  We use intvec_2 to
track interrupt coalessing timeouts.

Since we cannot disable the swtimer's countdown, simply
mask its interrupt once we no longer care about it firing.

In idle_loop_cchan, update LOCAL_HS_MAILBOX everytime
we are notified of an HS_MAILBOX update via the
HS_MAILBOX_ACT bit in QOFF_CTLSTA.  We have to use a
local copy of persistant portions of the HS_MAILBOX as
the mailbox auto-clears on any read.

Move the test for the cfg4istat interrupt up an instruction
to hopefully close a race between the next outgoing selection
and our disabling of selections.

Add a missing ret to the last instruction in load_overrun_buf.

Add notifications to the host of task management
completions as well as the completions for commands
that completed successfully before their corresponding
TMF could be sent.

Hold a critical section during select-out processing
until we have a fully identified connection.  This
removes a race condition with the legacy abort handler.

Correct a few spelling errors in some comments.

aic79xx_inline.h:
Call ahd_reset_cmds_pending() in ahd_unpause if required.

Update cmdcmplt interrupt statistics in our interrupt
handler.

Allow callers to ahd_send_scb() to set the task management
function.

aic79xx_pci.c:
Disable SERR and pause the controller prior to performing
our mmapped I/O test.  The U320 controllers do not support
"auto-access-pause".

aic79xx_osm.c:
Set the task management function now that
ahd_send_scb() doesn't do it for us.  We
also perform a lun reset in response to BDR
requests to packetized devices.

21 years agoFix swapping to a file, it was broken when SPECSTRATEGY was introduced.
dillon [Mon, 20 Jan 2003 20:00:32 +0000 (20:00 +0000)]
Fix swapping to a file, it was broken when SPECSTRATEGY was introduced.

21 years agofix -L (scan ap's): use WI_RID_SCAN_APS instead of WI_RDI_SCAN_REQ to start
sam [Mon, 20 Jan 2003 19:46:46 +0000 (19:46 +0000)]
fix -L (scan ap's): use WI_RID_SCAN_APS instead of WI_RDI_SCAN_REQ to start
a scan so the driver can use the best/right op for the card

21 years agogc dead code
sam [Mon, 20 Jan 2003 19:45:09 +0000 (19:45 +0000)]
gc dead code

21 years ago#if 0 one more line to make this compile without subr_disklabel.c.
phk [Mon, 20 Jan 2003 19:43:46 +0000 (19:43 +0000)]
#if 0 one more line to make this compile without subr_disklabel.c.

Hopefully forgiven by: scottl

21 years agoAdd headings so that we can tell where one errata entry ends and another
chris [Mon, 20 Jan 2003 19:34:05 +0000 (19:34 +0000)]
Add headings so that we can tell where one errata entry ends and another
begins.

Reviewed by: bmah

21 years agoWrite out the debug messages (from the previous commit) only if
mtm [Mon, 20 Jan 2003 19:30:15 +0000 (19:30 +0000)]
Write out the debug messages (from the previous commit) only if
the evaluated command exists.

Approved by: markm (mentor)(implicit)

21 years agoMFbed: translation updates
ue [Mon, 20 Jan 2003 19:14:22 +0000 (19:14 +0000)]
MFbed: translation updates

errata/article.sgml: 1.18  -> 1.19
hardware/common/dev.sgml: 1.128 -> 1.129
relnotes/common/new.sgml: 1.480 -> 1.481

21 years agoo add BIOCGDLTLIST and BIOCSDLT ioctls to get the data link type list
sam [Mon, 20 Jan 2003 19:08:46 +0000 (19:08 +0000)]
o add BIOCGDLTLIST and BIOCSDLT ioctls to get the data link type list
  and set the link type for use by libpcap and tcpdump
o move mtx unlock in bpfdetach up; it doesn't need to be held so long
o change printf in bpf_detach to distinguish it from the same one in bpfsetdlt

Note there are locking issues here related to ioctl processing; they
have not been addressed here.

Submitted by: Guy Harris <guy@alum.mit.edu>
Obtained from: NetBSD (w/ locking modifications)

21 years agoAdd a missing OR.
mtm [Mon, 20 Jan 2003 18:57:16 +0000 (18:57 +0000)]
Add a missing OR.

Approved by: markm (mentor)(implicit)

21 years agoRemove the deprecated IOCTL bits raidframe used, it doesn't anymore.
phk [Mon, 20 Jan 2003 18:22:30 +0000 (18:22 +0000)]
Remove the deprecated IOCTL bits raidframe used, it doesn't anymore.

21 years agoAdd definitions for the task management codes sent in SPI4
gibbs [Mon, 20 Jan 2003 18:05:46 +0000 (18:05 +0000)]
Add definitions for the task management codes sent in SPI4
command information units.

21 years agoAllow constants to be complex expressions so long as those
gibbs [Mon, 20 Jan 2003 18:02:11 +0000 (18:02 +0000)]
Allow constants to be complex expressions so long as those
expressions can be fully evaluated during assembly.

Remove the numerical_value portion of the grammer which is
no longer referenced.

21 years agoFix the last reference to the reg_print.c file handle
gibbs [Mon, 20 Jan 2003 18:01:37 +0000 (18:01 +0000)]
Fix the last reference to the reg_print.c file handle
in symtable_dump.  This allows the assembler to operate
without generating this file.

21 years agokenv(1) has been repo copied from usr.bin to bin.
obrien [Mon, 20 Jan 2003 17:56:25 +0000 (17:56 +0000)]
kenv(1) has been repo copied from usr.bin to bin.
Sometimes we need kenv(1) in /etc/rc.diskless*.

21 years agodo not loose trailing space when asking uid
fjoe [Mon, 20 Jan 2003 17:55:31 +0000 (17:55 +0000)]
do not loose trailing space when asking uid

21 years agoClose the remaining user address mapping races for physical
dillon [Mon, 20 Jan 2003 17:46:48 +0000 (17:46 +0000)]
Close the remaining user address mapping races for physical
I/O, CAM, and AIO.  Still TODO: streamline useracc() checks.

Reviewed by: alc, tegge
MFC after: 7 days

21 years agoRemove stale reference to deprecated mini-disklayer stuff.
scottl [Mon, 20 Jan 2003 16:15:47 +0000 (16:15 +0000)]
Remove stale reference to deprecated mini-disklayer stuff.

21 years agoHide the ioctls behind #ifdef _KERNEL to avoid kdump getting upset.
phk [Mon, 20 Jan 2003 13:04:03 +0000 (13:04 +0000)]
Hide the ioctls behind #ifdef _KERNEL to avoid kdump getting upset.

21 years agoDe-anonymity a couple of messages I missed in a previous sweep.
maxim [Mon, 20 Jan 2003 13:03:34 +0000 (13:03 +0000)]
De-anonymity a couple of messages I missed in a previous sweep.
Move one of them under DEB macro.

Noticed by: Wiktor Niesiobedzki <w@evip.pl>

21 years agoOops, previous commit message should have said that unifdef is WARNS=5 clean.
fanf [Mon, 20 Jan 2003 12:42:44 +0000 (12:42 +0000)]
Oops, previous commit message should have said that unifdef is WARNS=5 clean.

21 years agoSync with upstream again:
fanf [Mon, 20 Jan 2003 12:41:41 +0000 (12:41 +0000)]
Sync with upstream again:

* Be less strict about multi-line preprocessor directives (e.g. those
    with comments hanging off the right-hand end) since they're more
    of a problem in practise than I expected. Prompted by phk.

* Fix the handling of "ignore" symbols.

* Style pedantry from OpenBSD and Ted Unangst <tedu@stanford.edu>,
    including some whitespace fixes and removal of strcpy()
    (and not including excessively strict KNF enforcement).

* Fix some typos and terminological inconsistencies.

21 years agoIf the first action is O_LOG adjust a pointer to the real one, unbreaks
maxim [Mon, 20 Jan 2003 11:58:34 +0000 (11:58 +0000)]
If the first action is O_LOG adjust a pointer to the real one, unbreaks
skipto + log rules.

Reported by: Wiktor Niesiobedzki <w@evip.pl>
MFC after: 1 week

21 years ago#ifdef this file into three pieces: The bit which raidframe needs to
phk [Mon, 20 Jan 2003 11:49:24 +0000 (11:49 +0000)]
#ifdef this file into three pieces:  The bit which raidframe needs to
stop using.  The bit which the sys/boot code needs to stop using and
the bit which is NO_GEOM only.

21 years agoRemove EOL whitespaces.
maxim [Mon, 20 Jan 2003 11:30:08 +0000 (11:30 +0000)]
Remove EOL whitespaces.

21 years agodisk_dev_synth() is a NO_GEOM hack.
phk [Mon, 20 Jan 2003 11:29:07 +0000 (11:29 +0000)]
disk_dev_synth() is a NO_GEOM hack.

21 years agoo Fix a typo.
maxim [Mon, 20 Jan 2003 11:28:41 +0000 (11:28 +0000)]
o Fix a typo.
o Prepend a function name by .Fn macro.

Reviewed by: archie

21 years agoOnly include <sys/diskslice.h> ifdef NO_GEOM
phk [Mon, 20 Jan 2003 11:28:37 +0000 (11:28 +0000)]
Only include <sys/diskslice.h> ifdef NO_GEOM

21 years agoRemove need for <sys/diskslice.h> but retain numerical compatibilty just in case.
phk [Mon, 20 Jan 2003 11:23:00 +0000 (11:23 +0000)]
Remove need for <sys/diskslice.h> but retain numerical compatibilty just in case.

21 years agoUse NEXTDOSPART instead of MAX_SLICES.
phk [Mon, 20 Jan 2003 11:15:12 +0000 (11:15 +0000)]
Use NEXTDOSPART instead of MAX_SLICES.

21 years agoWe need neither <sys/diskslice.h> nor <sys/disklabel.h> here.
phk [Mon, 20 Jan 2003 11:11:51 +0000 (11:11 +0000)]
We need neither <sys/diskslice.h> nor <sys/disklabel.h> here.

21 years agoAdd a NEXTDOSPART definition here as well, for the benefit of biosdisk.c in
phk [Mon, 20 Jan 2003 11:09:51 +0000 (11:09 +0000)]
Add a NEXTDOSPART definition here as well, for the benefit of biosdisk.c in
the bootcode.  I don't think there acturally are any extended partitions on
pc98, and this define may merely help cover up the fact that the biosdisk.c
was insufficiently scrubbed when copy&pasted from i386.

21 years agoAdd NEXTDOSPART (N-Extended-Dos-Partitions) as replacement for the
phk [Mon, 20 Jan 2003 11:06:24 +0000 (11:06 +0000)]
Add NEXTDOSPART (N-Extended-Dos-Partitions) as replacement for the
misplaced MAX_SLICES from <sys/diskslice.h>.

21 years agoFix a typo (missed &&).
sobomax [Mon, 20 Jan 2003 10:33:35 +0000 (10:33 +0000)]
Fix a typo (missed &&).

Submitted by: marcus

21 years ago - Hold the page queues lock around vm_page_hold().
alc [Mon, 20 Jan 2003 09:24:03 +0000 (09:24 +0000)]
 - Hold the page queues lock around vm_page_hold().
 - Assert that the page queues lock rather than Giant is held in
   vm_page_hold().

21 years agoMove the vm_page_busy() in pmap_dispose_thread() to a place where it is
alc [Mon, 20 Jan 2003 08:14:35 +0000 (08:14 +0000)]
Move the vm_page_busy() in pmap_dispose_thread() to a place where it is
covered by the page queues lock.  (This actually makes alpha's
pmap_dispose_thread() look more like the i386's.)

21 years agoRemove a KASSERT that can now happen and add a missing setrunnable.
julian [Mon, 20 Jan 2003 03:41:04 +0000 (03:41 +0000)]
Remove a KASSERT that can now happen and add a missing setrunnable.

21 years ago - M_WAITOK is 0 and not a real flag. Test for this properly.
jeff [Mon, 20 Jan 2003 01:32:56 +0000 (01:32 +0000)]
 - M_WAITOK is 0 and not a real flag.  Test for this properly.

Submitted by: tmm
Pointy hat to: jeff

21 years agoRe-implemention of the interpolation code used for sample rate
orion [Mon, 20 Jan 2003 00:54:24 +0000 (00:54 +0000)]
Re-implemention of the interpolation code used for sample rate
conversion.  The new version has improved interpolation accuracy and
maintains the timing relationship between the input and output signals
exactly.

Approved by: cg

21 years agoRegen
joe [Mon, 20 Jan 2003 00:51:19 +0000 (00:51 +0000)]
Regen

21 years agodefault tx error rate limiting to 0 to disable tx error msgs; this is
sam [Mon, 20 Jan 2003 00:50:36 +0000 (00:50 +0000)]
default tx error rate limiting to 0 to disable tx error msgs; this is
consistent with how the old driver worked

21 years agoSupport for the "Seiko Epson Perfection 1260 scanner".
joe [Mon, 20 Jan 2003 00:41:30 +0000 (00:41 +0000)]
Support for the "Seiko Epson Perfection 1260 scanner".

Submitted by: Michael Lestinsky <michael@lestinsky.de>
MFC After: 3 days

21 years agoUpdate the use of entities in the errata article for HEAD in a
bmah [Sun, 19 Jan 2003 23:32:07 +0000 (23:32 +0000)]
Update the use of entities in the errata article for HEAD in a
post-5.0 world.

21 years agoTrim release notes for HEAD in a post-5.0 world.
bmah [Sun, 19 Jan 2003 23:17:03 +0000 (23:17 +0000)]
Trim release notes for HEAD in a post-5.0 world.

21 years agoBump RELNOTESng version numbers for CURRENT in a post-5.0 world.
bmah [Sun, 19 Jan 2003 23:15:19 +0000 (23:15 +0000)]
Bump RELNOTESng version numbers for CURRENT in a post-5.0 world.

21 years agoAdd a new gettytab(5) option - `pl', which if set tells getty that the line
sobomax [Sun, 19 Jan 2003 20:59:52 +0000 (20:59 +0000)]
Add a new gettytab(5) option - `pl', which if set tells getty that the line
in question is PPP-only line, i.e. no PPP-sequence detection is necessary and
PPP login program referenced by `pp' should be started automatically instead of
login(1)

Feature suggested and sponsored by:     United Networks of Ukraine
No reply from:  re
MFC after: 2 weeks

21 years agoSmall change to the previous commit, zero out the 48BIT flag in ata_command
sos [Sun, 19 Jan 2003 20:18:07 +0000 (20:18 +0000)]
Small change to the previous commit, zero out the 48BIT flag in ata_command
instead of in dmadone.

21 years agoaccept short WEP keys for backward compatibility
sam [Sun, 19 Jan 2003 20:13:43 +0000 (20:13 +0000)]
accept short WEP keys for backward compatibility

21 years agoAdd required commas that were ommitted in the previous delta; the
sheldonh [Sun, 19 Jan 2003 15:44:32 +0000 (15:44 +0000)]
Add required commas that were ommitted in the previous delta; the
SEE ALSO section's list of manual pages must be comma-separated.

21 years agoChange BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
mike [Sun, 19 Jan 2003 15:13:41 +0000 (15:13 +0000)]
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
'int nsegments' argument to bus_dma_tag_create().  ~0ul does not fit in
an int on machines with 64 bit longs.

Noticed by: alpha tinderbox