]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoThis commit was generated by cvs2svn to compensate for changes in r102782,
Alexander Kabaev [Sun, 1 Sep 2002 20:39:13 +0000 (20:39 +0000)]
This commit was generated by cvs2svn to compensate for changes in r102782,
which included commits to RCS files with non-trunk default branches.

21 years agoGcc 3.2.1-prerelease libf2c bits from the FSF anoncvs repo gcc-3_2-branch on 1-Sep...
Alexander Kabaev [Sun, 1 Sep 2002 20:39:13 +0000 (20:39 +0000)]
Gcc 3.2.1-prerelease libf2c bits from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00:01 EDT.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r102780,
Alexander Kabaev [Sun, 1 Sep 2002 20:38:57 +0000 (20:38 +0000)]
This commit was generated by cvs2svn to compensate for changes in r102780,
which included commits to RCS files with non-trunk default branches.

21 years agoGcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00...
Alexander Kabaev [Sun, 1 Sep 2002 20:38:57 +0000 (20:38 +0000)]
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on 1-Sep-2002 00:00:01 EDT.

21 years agoSplit out a number of mostly VFS and signal related syscalls into
Ian Dowse [Sun, 1 Sep 2002 20:37:28 +0000 (20:37 +0000)]
Split out a number of mostly VFS and signal related syscalls into
a kernel-internal kern_*() version and a wrapper that is called via
the syscall vector table. For paths and structure pointers, the
internal version either takes a uio_seg parameter or requires the
caller to copyin() the data to kernel memory as appropiate. This
will permit emulation layers to use these syscalls without having
to copy out translated arguments to the stack gap.

Discussed on: -arch
Review/suggestions: bde, jhb, peter, marcel

21 years agoUpdate for 2.12.1 20-July-2002 import.
David E. O'Brien [Sun, 1 Sep 2002 18:03:55 +0000 (18:03 +0000)]
Update for 2.12.1 20-July-2002 import.

21 years agoBe more explicit about a namespace by using the relatively new
Mike Barcroft [Sun, 1 Sep 2002 17:57:20 +0000 (17:57 +0000)]
Be more explicit about a namespace by using the relatively new
visibility primitives.

21 years agoRemove these Bintuils 2.11 files that aren't part of 2.12.
David E. O'Brien [Sun, 1 Sep 2002 17:51:18 +0000 (17:51 +0000)]
Remove these Bintuils 2.11 files that aren't part of 2.12.

21 years agoRemove drm_linux.h, move the two useful defines into drm_drv.h. Use fd locking
Eric Anholt [Sun, 1 Sep 2002 17:45:04 +0000 (17:45 +0000)]
Remove drm_linux.h, move the two useful defines into drm_drv.h.  Use fd locking
on -current.  Actually copy in data from userspace to kernel in the
linux-compat ioctl path.  Make sure ioctl sizes are as expected in the handler
functions.

Reviewed by: rwatson

21 years agoSince we have vp and td cached in local variables, use those instead
Robert Watson [Sun, 1 Sep 2002 16:06:40 +0000 (16:06 +0000)]
Since we have vp and td cached in local variables, use those instead
of derefencing the VOP arguments again when calling the UFS code.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoPoint at myself for reviews on commits to the MAC Framework and
Robert Watson [Sun, 1 Sep 2002 15:55:38 +0000 (15:55 +0000)]
Point at myself for reviews on commits to the MAC Framework and
MAC modules.

21 years agoUnbreak LINT a little by not attempting to configure the nonexist option
Bruce Evans [Sun, 1 Sep 2002 15:11:06 +0000 (15:11 +0000)]
Unbreak LINT a little by not attempting to configure the nonexist option
AHC_DEBUG_SEQUENCER.

21 years ago= The prefix should be `/usr', not `/'.
Jacques Vidrine [Sun, 1 Sep 2002 14:45:17 +0000 (14:45 +0000)]
= The prefix should be `/usr', not `/'.
= Correct the Heimdal version number hiding in here.

21 years agoIf the CC environment variable contains multiple words then split
Ian Dowse [Sun, 1 Sep 2002 12:49:27 +0000 (12:49 +0000)]
If the CC environment variable contains multiple words then split
it up into separate exec arguments.

Reviewed by: markm

21 years agoAdd a manual page for the ahd driver.
Scott Long [Sun, 1 Sep 2002 07:34:47 +0000 (07:34 +0000)]
Add a manual page for the ahd driver.

21 years agoTypo: refer to MB_LEN_MAX instead of MB_CHAR_MAX (which does not exist).
Tim J. Robbins [Sun, 1 Sep 2002 07:21:58 +0000 (07:21 +0000)]
Typo: refer to MB_LEN_MAX instead of MB_CHAR_MAX (which does not exist).

21 years agoUse the correct bit value for a debug options
Scott Long [Sun, 1 Sep 2002 07:14:26 +0000 (07:14 +0000)]
Use the correct bit value for a debug options

21 years agoRemove options that don't actually exist (in this form).
Scott Long [Sun, 1 Sep 2002 07:13:10 +0000 (07:13 +0000)]
Remove options that don't actually exist (in this form).

21 years agoAdd restrict qualifiers to the arguments of mbstowcs, mbtowc() and
Tim J. Robbins [Sun, 1 Sep 2002 07:08:22 +0000 (07:08 +0000)]
Add restrict qualifiers to the arguments of mbstowcs, mbtowc() and
wcstombs().

21 years agoBump __FreeBSD_version for _BSD_FOO_T_ to _FOO_T_DECLARED switch.
Mike Barcroft [Sun, 1 Sep 2002 04:49:38 +0000 (04:49 +0000)]
Bump __FreeBSD_version for _BSD_FOO_T_ to _FOO_T_DECLARED switch.
This should have been committed about a week ago to coincide with the
actual changes.

21 years agoUpgrade to latest QLogic f/w from their intranet site for 2100, 2200 and
Matt Jacob [Sun, 1 Sep 2002 02:28:36 +0000 (02:28 +0000)]
Upgrade to latest QLogic f/w from their intranet site for 2100, 2200 and
2300 cards.

MFC after: 1 day

21 years agoFix xterm-color so that it (1) doesn't bitch on exit, (2) doesn't restore
David E. O'Brien [Sun, 1 Sep 2002 02:04:42 +0000 (02:04 +0000)]
Fix xterm-color so that it (1) doesn't bitch on exit, (2) doesn't restore
the pre-run screen.

Desired by: alfred, peter, mini

21 years agoStylistic fixes for the inclusion of the opt_puc.h header, so it comes from the
Juli Mallett [Sun, 1 Sep 2002 01:59:38 +0000 (01:59 +0000)]
Stylistic fixes for the inclusion of the opt_puc.h header, so it comes from the
right places, and so it's sorted consistently with how all the other N-hundreds
of files ding this do it.

Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>

21 years agoFix a memory leak.
Mike Barcroft [Sun, 1 Sep 2002 01:49:27 +0000 (01:49 +0000)]
Fix a memory leak.

21 years ago'aicasm optional ahc ahd' means 'build aicasm only if BOTH ahc and ahd
Peter Wemm [Sat, 31 Aug 2002 23:30:16 +0000 (23:30 +0000)]
'aicasm optional ahc ahd' means 'build aicasm only if BOTH ahc and ahd
are specified'.  Ie: it is a logical and, not a logical or.

21 years agoSpell Ken Olsen's name the same way everywhere.
David Malone [Sat, 31 Aug 2002 23:15:41 +0000 (23:15 +0000)]
Spell Ken Olsen's name the same way everywhere.

PR: 7434

21 years agouse 'file system superblock' for the error message. This will match other
Tom Rhodes [Sat, 31 Aug 2002 21:34:54 +0000 (21:34 +0000)]
use 'file system superblock' for the error message.  This will match other
disk utilities.

Discussed with: bde

21 years agoReduce the maximum KVA reserved for swap meta structures from 70 to 32 MB.
Matthew Dillon [Sat, 31 Aug 2002 21:15:29 +0000 (21:15 +0000)]
Reduce the maximum KVA reserved for swap meta structures from 70 to 32 MB.
Reduce the swap meta calculation by a factor of 2, it's still massive overkill.

X-MFC after: immediately

21 years agoUpdate for 2.12.1 20-July-2002 import.
David E. O'Brien [Sat, 31 Aug 2002 20:57:53 +0000 (20:57 +0000)]
Update for 2.12.1 20-July-2002 import.

21 years agoMerge rev 1.6 (ELF_DYNAMIC_INTERPRETER) into Binutils 2.12_20020720.
David E. O'Brien [Sat, 31 Aug 2002 20:38:58 +0000 (20:38 +0000)]
Merge rev 1.6 (ELF_DYNAMIC_INTERPRETER) into Binutils 2.12_20020720.

21 years agoMore cleaning up and unhacking:
Poul-Henning Kamp [Sat, 31 Aug 2002 20:29:46 +0000 (20:29 +0000)]
More cleaning up and unhacking:

Don't expect all RIDs to be PCI rids.  The previous code made at
least 1 mistake, even for PCI.

Give the card definitions a chance to specify a init function.
Use this instead of the gross superio hack.
Move the win877 init function to puc_pci.c where it belongs.

RIDs can actually be zero, don't set badmuxed if so.

Set a less incorrect end for the construct SYS_RES_IOPORT entries,
I guess both sio and lpt happen to use 8 IO ports, but that shouldn't
really be hardcoded this way.

Fixup puc_pccard.c to match.

We're getting closer.

21 years agoDon't treat unknown commands as fatal errors: they are probably just
Kris Kennaway [Sat, 31 Aug 2002 20:21:47 +0000 (20:21 +0000)]
Don't treat unknown commands as fatal errors: they are probably just
the signature of out-of-date pkg_tools and newer packages.

Reviewed by: jkh
MFC after: 3 days

21 years agoThis commit was generated by cvs2svn to compensate for changes in r102729,
David E. O'Brien [Sat, 31 Aug 2002 20:20:07 +0000 (20:20 +0000)]
This commit was generated by cvs2svn to compensate for changes in r102729,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of Binutils from the FSF 2.12 branch (post-.1 release).
David E. O'Brien [Sat, 31 Aug 2002 20:20:07 +0000 (20:20 +0000)]
Import of Binutils from the FSF 2.12 branch (post-.1 release).

21 years agoMake this compile.
Jake Burkholder [Sat, 31 Aug 2002 19:33:59 +0000 (19:33 +0000)]
Make this compile.

21 years agoDon't enable PUC_DEBUG by accident
Poul-Henning Kamp [Sat, 31 Aug 2002 18:42:31 +0000 (18:42 +0000)]
Don't enable PUC_DEBUG by accident

21 years agoSplit the puc driver in pci specific and generic parts.
Poul-Henning Kamp [Sat, 31 Aug 2002 18:38:43 +0000 (18:38 +0000)]
Split the puc driver in pci specific and generic parts.
Add a pccard frontend for it as well.

The PCcard stuff does not work yet because there is still some PCImagic
left in puc.c

21 years agoMake modems work:
Warner Losh [Sat, 31 Aug 2002 18:34:30 +0000 (18:34 +0000)]
Make modems work:

Don't set the CCR_OPTION register when registering/deregistering
interrupts unless the card is a MFC card.  This makes a lot of cards
work that didn't work before.  These bits are only defined for MFC
cards.

Remove COOKIE_FOR_WARNER kludges that phk introduced.

Add more debug info.

Annoy the purists by committing two minor style nits at the same time.

Many thanks to phk.  He tracked this problem down to what was screwing
things up, so fixing it became trivially easy once the problem was
understood.

21 years agoAdd cleandepend target.
Justin T. Gibbs [Sat, 31 Aug 2002 17:15:43 +0000 (17:15 +0000)]
Add cleandepend target.

21 years agoDifferent and more correct workaround for broken cards under NEWCARD:
Poul-Henning Kamp [Sat, 31 Aug 2002 16:07:17 +0000 (16:07 +0000)]
Different and more correct workaround for broken cards under NEWCARD:
don't spam the configuration index register.

I'm not sure where those bits truly belong, but spamming the config
index sure doesn't do us any good.

21 years agoPass the cleandir target on to the aicasm Makefile. This should
Justin T. Gibbs [Sat, 31 Aug 2002 14:50:46 +0000 (14:50 +0000)]
Pass the cleandir target on to the aicasm Makefile.  This should
fix the buildkernel target.

21 years agoIgnore all config entries which have a non-zero start I/O address.
Poul-Henning Kamp [Sat, 31 Aug 2002 14:38:24 +0000 (14:38 +0000)]
Ignore all config entries which have a non-zero start I/O address.

This is a bandaid which makes some more PCCards work under NEWCARD
which would otherwise not work.

Cards with only fixed address windows still loose.

21 years agoImplement the XSI extension which allows the destination string to be
Tim J. Robbins [Sat, 31 Aug 2002 14:16:12 +0000 (14:16 +0000)]
Implement the XSI extension which allows the destination string to be
NULL, and returns the number of bytes that would be required to store
the result of the conversion without storing anything.

PR: 17694

21 years agoNew release notes: ftpd(8) -m, -M, -W
Yaroslav Tykhiy [Sat, 31 Aug 2002 14:08:57 +0000 (14:08 +0000)]
New release notes: ftpd(8) -m, -M, -W

MFCs noted: ftpd(8) -o, -O

21 years agoSplit ansi.c into a separate source file for each function.
Tim J. Robbins [Sat, 31 Aug 2002 11:26:55 +0000 (11:26 +0000)]
Split ansi.c into a separate source file for each function.

21 years agoDeal with bootstrapping from an old -current (almost exactly a year old)
Peter Wemm [Sat, 31 Aug 2002 07:18:40 +0000 (07:18 +0000)]
Deal with bootstrapping from an old -current (almost exactly a year old)
which fails the make tests (doesn't understand ${notdef:U}) and therefore
fails on __FBSDID in usr.bin/make/*.  -DBOOTSTRAPPING is no help here since
this is before we are using the new share/mk/* files, and it would conflict
with the builtin -DBOOTSTRAPPING support later.. so use a different flag.

21 years agoComplete the hookup of ahd/ahc module building.
Justin T. Gibbs [Sat, 31 Aug 2002 06:57:50 +0000 (06:57 +0000)]
Complete the hookup of ahd/ahc module building.

21 years agoEnable ahd/ahc register pretty printing by default. This expedites
Justin T. Gibbs [Sat, 31 Aug 2002 06:56:43 +0000 (06:56 +0000)]
Enable ahd/ahc register pretty printing by default.  This expedites
handling of bug reports.

21 years agoAdd support for ahd/ahc register pretty printing in diagnostics.
Justin T. Gibbs [Sat, 31 Aug 2002 06:55:59 +0000 (06:55 +0000)]
Add support for ahd/ahc register pretty printing in diagnostics.
This feature can be disabled via the AHD/AHC_REG_PRETTY_PRINT kernel
option.

The ahc driver now uses the same debug options mechanism as ahd:
AHC_DEBUG  - Compile in debugging code
AHC_DEBUG_OPTS - String of debug options as listed in aic7xxx.h

21 years agoSync perforce Ids.
Justin T. Gibbs [Sat, 31 Aug 2002 06:53:06 +0000 (06:53 +0000)]
Sync perforce Ids.

21 years agoIdentify new controllers and the aic7901A.
Justin T. Gibbs [Sat, 31 Aug 2002 06:52:27 +0000 (06:52 +0000)]
Identify new controllers and the aic7901A.

Move interrupt enable to the OSM.

Remove some debugging messages.

Remove chip bug workarounds for non-production asics.

21 years agoHook up the endian macros.
Justin T. Gibbs [Sat, 31 Aug 2002 06:51:51 +0000 (06:51 +0000)]
Hook up the endian macros.

Correct some comments.

21 years agoEnable card interrupts in our OSM rather than in the core.
Justin T. Gibbs [Sat, 31 Aug 2002 06:51:15 +0000 (06:51 +0000)]
Enable card interrupts in our OSM rather than in the core.
This ensures that we don't enter our interrupt handler until
all OSM components it might reference have been fully initialized
during attach.

Remove vestiges of untagged queue handling.

Add hints to ahd_get_scb() so it knows what type of SCB collision
management to perform for each new transaction.

Properly disable/enable IU_REQ with changes in tagged queuing and
disconnection settings passed in by CAM.

21 years agoCorrect lun representation during packetized operation.
Justin T. Gibbs [Sat, 31 Aug 2002 06:50:39 +0000 (06:50 +0000)]
Correct lun representation during packetized operation.

Uninline some routines that are just too big to be inlined.

Add some helper macros for SCB ID collision management.

Use a hardware SCB rather than a full SCB for the "next
SCB to queue" sentinal.

Update for new "high SCBID bit" qoutfifo delivery scheme.

If interrupts are disabled on the card, don't bother running
our interrupt handler.  Our handler was called due to a shared
interrupt, and the card's interrupts are explicitly disabled
to prevent entry into our interrupt handler.

21 years agoAdd a prefix to be used for assembler generated tables and
Justin T. Gibbs [Sat, 31 Aug 2002 06:49:55 +0000 (06:49 +0000)]
Add a prefix to be used for assembler generated tables and
functions for register pretty-printing.

Implement "top bit of SCBID is valid bit" qoutfifo delivery scheme.

"the the" -> "the".

Remove old and never used tag collision chain handling in the
sequencer.  Tag collisions are never allowed to get as far as
on the controller.

Simplify busy target table handling routines.

Update comments to reflect reality.

Add support for catching more protocol violations.

Correct a bug in data fifo handling in mixed packetized and
non-packetized environments.  SG_STATE must be cleared even
if an SG fetch is not in progress at the time of FIFO shutdown
or we may confuse the non-packetized transaction idle-loop.

21 years agoConvert to new assembler field syntax.
Justin T. Gibbs [Sat, 31 Aug 2002 06:49:11 +0000 (06:49 +0000)]
Convert to new assembler field syntax.

Add preliminary Rev B definitions.

Add QOUTFIFO_ENTRY_VALID_TAG for new qoufifo scheme.

Reserve SCB space for large luns.

21 years agoUpdates for new non-packetized SCB-ID collision avoidance,
Justin T. Gibbs [Sat, 31 Aug 2002 06:48:42 +0000 (06:48 +0000)]
Updates for new non-packetized SCB-ID collision avoidance,
busy target table addressing changes, our qoufifo scheme,
and long lun support.

Drop bus reset hold delay to 25us.

Remove chip workarounds for revisions that never went to
production.

Add aic7901A identification information.

Remove untagged queue logic.

21 years agoIdentify the AIC7901A as such instead of an AIC7902.
Justin T. Gibbs [Sat, 31 Aug 2002 06:48:14 +0000 (06:48 +0000)]
Identify the AIC7901A as such instead of an AIC7902.

Push protocol violation handler to its own routine.  We now
properly detect and recovery from the following target induced
protocol violations:
o Unexpected or invalid non-packetized Relesection
o Command complete with no status message
o Good Status after incomplete cdb transfer

Add an SCB collision avoidance algorithm that allows us to
use all 512 SCBs for non-packetized operations.  There is
still the possibility of running out of SCBs with non-colliding
tag identifiers, but the algorithm ensures that the stall will
be rare and short lived.

Convert to a read-only algorithm for validing entries in the
qoufifo.  The sequencer now toggles the high bit of the SCB
identifier on each wrap around of the qinfifo.  If the high
bit doesn't match the expected value for this pass of the
qoufifo, the entry is not valid.  This has the benefit of
working on machines that have large granularity cache write
back semantics without requiring any additional memory.

Remove lots of code related to untagged SCB queues.  Since
these controllers can keep a fully busy target table, we
will never have untagged SCB queues.

Lots of improvements to diagnostic logging.

Clarify some comments.

Don't clear BUSFREE interrupt enable in SIMODE1 in the SELTO
handler.  Just clearing the interrupt status is sufficient and
this avoids the chance of disabling busfree detection in connection
that occurs while we are handling the busfree interrupt.

Clear all possible interrupt sources when handling a busfree
interrupt.  The hardware clears some but not all of them.

Don't panic if we get into the default SCSIINT handler.
Dump the card state and clear all interrupt sources in the
hope that we can continue.

LASTPHASE != PREVPHASE.  Use the correct PREVPHASE for testing
against values in the PERRDIAG register.

According to SPI4, the bus free that is required after certain
PPR negotiations will only occur at the end of all message phases.
Handle the bus free if it occurs after a transaction in either
the message-in or message-out phases.  The busfree can also occur
if the status of IU_REQ changes due to a WDTR or SDTR message.
We now set the expect busfree flag in ahd_set_syncrate so that
it works regardless of message type.

Correct a problem with missing certain busfree events.  The
chip supports single-stepping even if a SCSIINT is pending.
This obviates the need to clear all of the SCSI interrupt enables
prior to single stepping.  Since ENBUSFREE can only be disabled
manually and not re-enabled, avoiding touching this bit in the
single-step case yields reliable bus free detection.

Enhance ahd_clear_intstat to clear all SCSIINT sources.

Only use ahd_update_pending_scbs() if we are active on the
bus.  We cannot modify the "MK_MESSAGE" bits on SCBs in the
execution queue if a selection might be in process since
the sequencer uses this bit to detect PPR negotiation to
a target with an outstanding IU_REQ agreement.

Allocate the SCB delivery mechansim's sentinal SCB specially
so we don't waste a valid SCB for this task.

Move tranceive state settle logic to ahd_chip_init() since
this needs to occur after every chip reset, not just the
chip reset that happens during primary driver initialization.

Correct a bug with transmitting lun information in packetized
connections.

Restrict busy target table operations to the range of luns
that can be used for non-packetized connections.  Larger luns
can only be accessed in packetized mode.

Correct a busy target table addressing bug.

Be more careful about how we shutdown the DMA engines during
bus reset events.

Only freeze the SIMQ once regardless of the number of bus
reset events that occur while we are polling for the resets
to stop.

Don't rely on the sequencer remaining paused() during our
reset poll.  It is safe for the sequencer to run during this
time, and many callers to the bus reset code would need to
be modified to make this assumption universally true.

Even if we are not going to clobber SCB state when an auto-request
sense SCB has a check condition, we must still unfreeze the queue.
Re-arrange the BAD STATUS handler to handle this case appropriately.

Modify the SCB download size depending on whether long luns are
being stored in the SCB.

Add ahd_print_register() for pretty printing register diagnostics.

Don't trust that the flexport logic to detect the presence of
a seeprom is available.  It may not be on some motherboard
implementations.

"the the" -> "the"

21 years agoIf interrupts are disabled on the card, don't bother running
Justin T. Gibbs [Sat, 31 Aug 2002 06:46:37 +0000 (06:46 +0000)]
If interrupts are disabled on the card, don't bother running
our interrupt handler.  Our handler was called due to a shared
interrupt, and the card's interrupts are explicitly disabled
to prevent entry into our interrupt handler.

21 years agoUpdate Perforce Ids.
Justin T. Gibbs [Sat, 31 Aug 2002 06:45:28 +0000 (06:45 +0000)]
Update Perforce Ids.

21 years agoMove interrupt enable into the OSM.
Justin T. Gibbs [Sat, 31 Aug 2002 06:44:56 +0000 (06:44 +0000)]
Move interrupt enable into the OSM.

Set the AHC_LSCBS_ENABLED softc flag appropriately.

Convert to using softc storage for our seeprom data.

Break seeprom parsing out into a separate routine.

Change our policy in regards to AHC_SPIOCAP so that we
will allow auto-termination to take place on some aic7855
based cards.

Remove initialized but never really used variables.

21 years agoCleanup endian macros.
Justin T. Gibbs [Sat, 31 Aug 2002 06:44:20 +0000 (06:44 +0000)]
Cleanup endian macros.

Honor the AHC_REG_PRETTY_PRINT option.

Add lock placeholders for new locks used by the core.  These
are not currently needed for FreeBSD.

21 years agoEnable card interrupts from the OSM.
Justin T. Gibbs [Sat, 31 Aug 2002 06:43:55 +0000 (06:43 +0000)]
Enable card interrupts from the OSM.

Use "offset == 0" not "period == 0" to denote async trasnfers.

Implement TARG_IMMEDIATE_SCB non-disconnected target mode
SCB delivery scheme.

In our timeout handler, don't rely on the phase already being
set to denote an active connection.  IDENTIFY_SEEN is more
than sufficient.

Verify that the softc passed in ahc_detach is still known
to the driver before blindly using it.

21 years agoAdd a prefix to be used for assembler generated tables and
Justin T. Gibbs [Sat, 31 Aug 2002 06:43:15 +0000 (06:43 +0000)]
Add a prefix to be used for assembler generated tables and
functions for register pretty-printing.

Only clear SELDO once we've recorded enough information for
the host to understand that the connection is valid.  The
host uses the SELDO status as a handshake to close this
race window.

Correct a bug in target mode handling of non-disconnected
transactions.  The host would indicate the correct SCB to
DMA by setting the SCB id in the currently selected hardware
SCB.  Unfortunately, we would then immediated allocate a
hardware SCB which, depending on the access patern might not
be the same hardware SCB that the host setup for us.  Avoid
this by having the host put the SCBID into scratch ram.

21 years agoConvert to new assembler field syntax.
Justin T. Gibbs [Sat, 31 Aug 2002 06:42:38 +0000 (06:42 +0000)]
Convert to new assembler field syntax.

Document the SXFRCTL2 register found on U2 and U160 controllers.

Overload the MWI_RESIDUAL field for use as the SCB to be downloaded
for "immediate" (or those without the disconnect privledge)
transactions.

Add scratch ram locations for the 274X that give us a bit more
information including whether to enable extended translation.

21 years agoDrop the bus reset hold delay back down to 25us. The 250us
Justin T. Gibbs [Sat, 31 Aug 2002 06:42:10 +0000 (06:42 +0000)]
Drop the bus reset hold delay back down to 25us.  The 250us
value slipped in from a debugging session.

Add AHC_LSCBS_ENABLED and AHC_SCB_CONFIG_USED ahc_flags which
allow for some code to move to the core.

Remove extern for ahc_syncrates[].  The OSMs no longer need
direct access to this array.

Add serial eeprom field to the ahc softc.

Prototype ahc_search_untagged_queues() and ahc_print_register().

Convert to AHC_SHOW_XXX debug option format.

21 years agoAdd ahc_print_devinfo() to simplify some diagnostic output.
Justin T. Gibbs [Sat, 31 Aug 2002 06:41:37 +0000 (06:41 +0000)]
Add ahc_print_devinfo() to simplify some diagnostic output.

Switch to using the same AHC_SHOW_XXX format as the ahd driver.

Always give the target a MSG_INITIATOR_DET_ERR for unexpected
DT or ST phase errors.

Add AHC_SHOW_SELTO diagnostics.

Force renegotiation whenever an unexpected bus free occurs
to rule out a negotiation mismatch as the cause for the error.

Use "offset != 0" as an intenal indicator of "async" rather than
using a period of 0.

In ahc_fetch_devinfo(), correct a bug in getting "our id" as
target.  We weren't looking at all the SEQ_FLAGS that indicate
that we are still in a selected rather than reselected state.

Add support for the AHC_SHOW_MESSAGES debugging option.

If ahc_parse_msg() tells us to terminate the message loop,
do so without acking the message.  The message may be one
that the sequencer needs to handle on its own.

In ahc_parse_msg() return MSGLOOP_TERMINATED for all messages
the sequencer handles.

Allocate storage for, and track, seeprom contents in our softc.

Touch all SCB bytes to avoid parity errors should one of our
debugging routines read an otherwise uninitiatlized byte.

S/G lists must be 8 byte aligned.  Reflect this in our DMA tag.

"the the" -> "the" in a comment

When pausing the card to perform error recovery, ensure that we
are not in the process of being selected or have just been selected
but have not yet handled that selection.  This leaves only one other
race window, in the command complete handler, that needs to be fixed
to make recovery 100% bullet proof.

Convert a few straglers from bsd u_intX_t to inttypes uintX_t.

Remove unused variables.

Split out searching of the untagged holding queues to its own
routine.  In certain recovery scenarios, we want to just
remove entries in the untagged queue without touching related
transactions that are in the QINFIFO or WAITING queues that are
searched by ahc_search_qinfifo().

Add an implementation of the ahc_print_register() routine which
"pretty prints" registers.  The extra bloat in the form of string
tables for this feature is controlled by the AHC_REG_PRETTY_PRINT
option.

Fix a few bugs in ahc_enable_lun() that could prevent controllers
lacking the multiple-target-id feature from changing "our id" on
the fly.  Add a large comment to this section while I'm here
describing the restrictions on "id switching".

21 years agoPass unparsed serial eeprom information into the driver core.
Justin T. Gibbs [Sat, 31 Aug 2002 06:40:32 +0000 (06:40 +0000)]
Pass unparsed serial eeprom information into the driver core.

Honor the extended translation setting for EISA cards now that
I've determined where this information is kept.

Defer card interrupt enabling to the OSM since it may have
some initialization to perform that must occur before interrupts
can be enabled.

21 years agoUpdate assembler syntax and assembler to allow generation of register
Justin T. Gibbs [Sat, 31 Aug 2002 06:39:41 +0000 (06:39 +0000)]
Update assembler syntax and assembler to allow generation of register
description tables used for diagnostic "pretty printing".

21 years agodb_ps.c:
Bruce Evans [Sat, 31 Aug 2002 04:25:44 +0000 (04:25 +0000)]
db_ps.c:
Don't attempt to follow null pointers for zombie processes in db_ps().

Style fix: use explicit an comparison with NULL for all null pointer
checks in db_ps() instead of for half of them.

db_interface.c:
Fixed ddb's handling of traps from with ddb on i386's only.

This was mostly fixed in rev.1.27 (by longjmp()'ing back to the top
level) but was completly broken in rev.1.48 (by not unwinding the new
state (mainly db_active) either before or after the longjmp().  This
mostly never worked for other arches, since rev.1.27 has not been ported
and lower level longjmp()'s only handle traps for memory accesses.  All
cases should be handled at a lower level to provided better control and
simplify unwinding of state.

Implementation details: don't pretend to maintain db_active in a nested
way -- ddb cannot be reentered in a nested way.  Use db_active instead
of the db_global_jmpbuf_valid flag and longjmp()'s return value for things
related to reentering ddb.  [re]entering is still not atomic enough.

21 years agoTake a shot at fixing up a whole stack of style and other embarresing
Peter Wemm [Sat, 31 Aug 2002 03:33:32 +0000 (03:33 +0000)]
Take a shot at fixing up a whole stack of style and other embarresing
unforced errors that Bruce identified.  I have not yet addressed all of
his concerns.

21 years agoMaxmem is a long, so update printf format so this compiles.
John Baldwin [Sat, 31 Aug 2002 03:21:59 +0000 (03:21 +0000)]
Maxmem is a long, so update printf format so this compiles.

21 years agoDo not use an object for the pte and pv zones on ia64 because it overrides
Peter Wemm [Sat, 31 Aug 2002 03:11:20 +0000 (03:11 +0000)]
Do not use an object for the pte and pv zones on ia64 because it overrides
the pmap_allocf() function that we provide above.  We still use the limits
via other means.

Submitted by: jeff

21 years agoTell the user about a failed IRQ mapping rather than fail silently.
Justin T. Gibbs [Sat, 31 Aug 2002 03:04:08 +0000 (03:04 +0000)]
Tell the user about a failed IRQ mapping rather than fail silently.

21 years agoTypo in [^[:alnum:]] character class.
Giorgos Keramidas [Sat, 31 Aug 2002 02:26:19 +0000 (02:26 +0000)]
Typo in [^[:alnum:]] character class.

PR: docs/41728
Submitted by: osgene@web.de

21 years agotest -h is deprecated; use -L instead.
Kris Kennaway [Sat, 31 Aug 2002 02:22:33 +0000 (02:22 +0000)]
test -h is deprecated; use -L instead.

Submitted by: april <april@oublinet.net>
PR: misc/38724 (part of)
MFC after: 3 days

21 years agoSwitch to new format which allows unlimited numbers of chains and
Andrey A. Chernov [Sat, 31 Aug 2002 01:48:56 +0000 (01:48 +0000)]
Switch to new format which allows unlimited numbers of chains and
usually saves 2K in both data file and program memory.
Updated libc required.

21 years agoUse ntohl() to read cnains number in new format
Andrey A. Chernov [Sat, 31 Aug 2002 01:05:39 +0000 (01:05 +0000)]
Use ntohl() to read cnains number in new format

21 years agoMake ficl work on sparc64. The assumption that int == long == void * is
Scott Long [Sat, 31 Aug 2002 01:04:53 +0000 (01:04 +0000)]
Make ficl work on sparc64.  The assumption that int == long == void * is
very pervasive in this code.  This fixes a few of those assumptions and
band-aids over some others.

Tested on: ia32 alpha sparc64

Reviewed by: peter jake (in concept)

21 years agoPass the pointy hat! Remove accidently imported files.
Jacques Vidrine [Fri, 30 Aug 2002 21:53:25 +0000 (21:53 +0000)]
Pass the pointy hat!  Remove accidently imported files.

21 years agoRemove some parts of the Heimdal distribution which we do not use
Jacques Vidrine [Fri, 30 Aug 2002 21:37:10 +0000 (21:37 +0000)]
Remove some parts of the Heimdal distribution which we do not use
and have never used.

21 years agoAdd dates of foundation for Malaya, Malaysia and Singapore.
Greg Lehey [Fri, 30 Aug 2002 21:36:16 +0000 (21:36 +0000)]
Add dates of foundation for Malaya, Malaysia and Singapore.

21 years agoUpdate build infrastructure after import of Heimdal Kerberos 2002/08/29.
Jacques Vidrine [Fri, 30 Aug 2002 21:33:20 +0000 (21:33 +0000)]
Update build infrastructure after import of Heimdal Kerberos 2002/08/29.

21 years agoRemove files no longer relevant after latest import.
Jacques Vidrine [Fri, 30 Aug 2002 21:28:12 +0000 (21:28 +0000)]
Remove files no longer relevant after latest import.

21 years agoResolve conflicts after import of Heimdal Kerberos circa 2002/08/29.
Jacques Vidrine [Fri, 30 Aug 2002 21:25:14 +0000 (21:25 +0000)]
Resolve conflicts after import of Heimdal Kerberos circa 2002/08/29.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r102644,
Jacques Vidrine [Fri, 30 Aug 2002 21:23:27 +0000 (21:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r102644,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of Heimdal Kerberos from KTH repository circa 2002/08/29.
Jacques Vidrine [Fri, 30 Aug 2002 21:23:27 +0000 (21:23 +0000)]
Import of Heimdal Kerberos from KTH repository circa 2002/08/29.

21 years agoAdd the 'restrict' type qualifier to the function prototype
Robert Drehmel [Fri, 30 Aug 2002 21:18:39 +0000 (21:18 +0000)]
Add the 'restrict' type qualifier to the function prototype
of the swab(3) function in its manual page to match the
standardization by POSIX.1-2001.

21 years ago - Update the manual page of bcmp(3) by replacing
Robert Drehmel [Fri, 30 Aug 2002 21:07:40 +0000 (21:07 +0000)]
 - Update the manual page of bcmp(3) by replacing
     .In string.h
   with
     .In strings.h
   and adding a sentence to the HISTORY section.
 - Use an ANSI-C function definition.
 - Include <strings.h> instead of <string.h>.
 - Apply style(9): Put a space after return keywords.

21 years agoStyle fix
Andrey A. Chernov [Fri, 30 Aug 2002 20:39:53 +0000 (20:39 +0000)]
Style fix

21 years agoPrepare for switching to unlimited chains format
Andrey A. Chernov [Fri, 30 Aug 2002 20:34:36 +0000 (20:34 +0000)]
Prepare for switching to unlimited chains format

21 years ago - Convert the function definition to declare its arguments
Robert Drehmel [Fri, 30 Aug 2002 20:33:05 +0000 (20:33 +0000)]
 - Convert the function definition to declare its arguments
   in the ANSI-C format.
 - Change the code a bit to hopefully save some cycles.
   I.e. (simplified) change

     a = b + 1;
     while (--b & 0x7)
/* ... */
   to
     a = b;
     for (; b & 0x7; b--)
/* ... */
   and
     while (--a >= 0)
/* ... */
   to
     for (; a > 0; a--)
/* ... */
 - Equip two function arguments of swab() with the 'restrict'
   type qualifier in form of the '__restrict' macro.  This is
   specified by POSIX.1-2001.

21 years agoPrepare for switching to unlimited chains format.
Andrey A. Chernov [Fri, 30 Aug 2002 20:26:02 +0000 (20:26 +0000)]
Prepare for switching to unlimited chains format.
Optimize chains lookup a bit.

21 years ago - Update the manual pages of index() and rindex() to show
Robert Drehmel [Fri, 30 Aug 2002 19:42:07 +0000 (19:42 +0000)]
 - Update the manual pages of index() and rindex() to show
   <strings.h> as the associated header file.
   The prototypes have been moved there from <string.h> because
   POSIX.1-2001 said so.
 - Conditionally include either <strings.h> or <string.h> based
   on whether the [r]index() or str[r]chr() functions are
   compiled, respectively.
 - Style(9) tells us to
    - put a space after the return keyword
    - to check for a NUL character without using the ! operator.
    - use NULL instead of (type *)NULL where the compiler knows
      the type.
   Apply these rules.
 - Rather use ANSI-C function definitions than K&R ones.
 - For index(3), correct second function argument's type; it was
   declared to be a `const char' before and is now an `int'.

21 years ago - Update the manual page to show that the associated header file
Robert Drehmel [Fri, 30 Aug 2002 19:08:53 +0000 (19:08 +0000)]
 - Update the manual page to show that the associated header file
   is <strings.h> and not <string.h> anymore.
 - Tell the reader about this change in the HISTORY section.
 - Switch to use an ANSI-C function definition.
 - Include <strings.h> instead of <string.h> in the source file.

21 years agoAdd IDs for upcoming LSI U320 products that use the MegaRAID interface.
Justin T. Gibbs [Fri, 30 Aug 2002 18:28:00 +0000 (18:28 +0000)]
Add IDs for upcoming LSI U320 products that use the MegaRAID interface.

Adjust format of one comment so it doesn't wrap at 80 columns.
Submitted by: "Moore, Eric Dean" <emoore@lsil.com>

21 years agoImplement data, text, and vmem limit checking in the elf loader and svr4
Matthew Dillon [Fri, 30 Aug 2002 18:09:46 +0000 (18:09 +0000)]
Implement data, text, and vmem limit checking in the elf loader and svr4
compat code.  Clean up accounting for multiple segments.  Part 1/2.

Submitted by: Andrey Alekseyev <uitm@zenon.net> (with some modifications)
MFC after: 3 days

21 years agoReserve majors 171 and 172 for the "mide" (LSI MegaRAID IDE control device)
Justin T. Gibbs [Fri, 30 Aug 2002 16:54:02 +0000 (16:54 +0000)]
Reserve majors 171 and 172 for the "mide" (LSI MegaRAID IDE control device)
and "mided" (LSI MegaRAID IDE disk device).

Submitted by: "Moore, Eric Dean" <emoore@lsil.com>

21 years ago - Update strcasecmp(3)/strncasecmp(3) to reflect the fact that
Robert Drehmel [Fri, 30 Aug 2002 15:40:01 +0000 (15:40 +0000)]
 - Update strcasecmp(3)/strncasecmp(3) to reflect the fact that
   the prototypes for both functions are now in the <strings.h>
   header, as required by IEEE Std 1003.1-2001.
 - Add one sentence about that in the HISTORY section.
 - Include <strings.h> in the source file to have the prototypes
   in scope when the _ANSI_SOURCE macro is defined.

21 years agoRevert previous untested revision. The i386 loader consists of three parts:
John Baldwin [Fri, 30 Aug 2002 14:59:47 +0000 (14:59 +0000)]
Revert previous untested revision.  The i386 loader consists of three parts:
At the front is btxldr, in the middle is BTX itself (our mini-kernel), and
then the 'client' (loader.bin) which is the actual loader itself.  boot2
just executes a raw ELF or a.out binary with the only setup provided being
that a bootinfo structure is passed on the stack.  Now, since loader.bin
is a BTX client, the loader needs to be able to locate a BTX kernel for
the client to execute in the context.  Thus, just like pxelder, btxldr
uses the a.out header on the loader binary to find the BTX kernel stored
in the loader and set it up.  It does _not_ just reuse the BTX kernel
that boot2 invoked it with.  This is because it can't assume that it will
_have_ a "spare" BTX kernel lying around.  For example, when cdboot
loads the loader there isn't an existing BTX kernel.  In fact, cdboot
will only work with an a.out loader as well since it also "borrows" the
BTX kernel in the loader binary (which it finds by parsing the a.out
header) just as pxeldr does.  The only difference between cdboot and
pxeldr is where they get /boot/loader from.

If we wanted to make /boot/loader be an actual ELF binary we would need
to change the following utilites to handle that (and they all have to be
able to handle locating the BTX kernel inside of an ELF binary somehow):
- btxldr
- pxeldr
- cdboot

If we didn't want to require a flag day but make the transition smooth
then we need to be able to support both a.out and ELF versions of
/boot/loader which isn't exactly trivial since all three of these utilities
are written in assembly.

Pointy-hat to: peter