]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoCorrect the description of what fortunes get installed (by default, also the
schweikh [Tue, 24 Sep 2002 19:00:52 +0000 (19:00 +0000)]
Correct the description of what fortunes get installed (by default, also the
offensive ones). Make it clear that datfiles/Makefile needs to be edited in
case someone wants it otherwise.

PR: misc/36153
Submitted by: Nick Jennings <nick@namodn.com>
X-MFC after: 4.7 is out the door.

21 years agoMake it work with POSIX sort (POS arg).
ache [Tue, 24 Sep 2002 18:53:46 +0000 (18:53 +0000)]
Make it work with POSIX sort (POS arg).
All old sorts understand -k too.

21 years agoMake it work with POSIX sort (POS arg)
ache [Tue, 24 Sep 2002 18:16:36 +0000 (18:16 +0000)]
Make it work with POSIX sort (POS arg)
All old sorts understand -k too.

21 years agoConvert most printf()s to if_printf()s.
brooks [Tue, 24 Sep 2002 17:37:32 +0000 (17:37 +0000)]
Convert most printf()s to if_printf()s.

21 years agoAdd a new helper function if_printf() modeled on device_printf(). The
brooks [Tue, 24 Sep 2002 17:35:08 +0000 (17:35 +0000)]
Add a new helper function if_printf() modeled on device_printf().  The
function takes a struct ifnet pointer followed by the usual printf
arguments and prints "<interfacename>: " before the results of printf.
Since this is the primary form of printf calls in network device drivers
and accounts for most uses of the ifnet menber if_unit, this
significantly simplifies many printf()s.

21 years agoAdd forgotten <sys/_types.h> include. Fix some style bugs while I'm
mike [Tue, 24 Sep 2002 17:28:12 +0000 (17:28 +0000)]
Add forgotten <sys/_types.h> include.  Fix some style bugs while I'm
here.

PR: 43326

21 years agoMention about how to build sendmail with SASLv2.
ume [Tue, 24 Sep 2002 17:07:37 +0000 (17:07 +0000)]
Mention about how to build sendmail with SASLv2.

21 years agoSplit user trap processing out into a separate routine so that traps which
jake [Tue, 24 Sep 2002 16:42:18 +0000 (16:42 +0000)]
Split user trap processing out into a separate routine so that traps which
never result in user traps don't have to plow through it.

21 years agoCorrected license in the source files. It should say "MUST" instead of "MAY".
pdeuskar [Tue, 24 Sep 2002 16:27:59 +0000 (16:27 +0000)]
Corrected license in the source files. It should say "MUST" instead of "MAY".

MFC after: 2 days

21 years agoFix some bitrotted documentation.
markm [Tue, 24 Sep 2002 13:34:36 +0000 (13:34 +0000)]
Fix some bitrotted documentation.

21 years agoWarn when setinvalidrune() is referenced for consistency with the rest
tjr [Tue, 24 Sep 2002 09:25:37 +0000 (09:25 +0000)]
Warn when setinvalidrune() is referenced for consistency with the rest
of the rune functions (except sgetrune() and sputrune(), which are really
macros).

21 years agoAdd cross-references between wide character and single-byte character
tjr [Tue, 24 Sep 2002 09:22:47 +0000 (09:22 +0000)]
Add cross-references between wide character and single-byte character
versions of printf() and scanf().

21 years agoRemove an unneeded call to _sfrefill() that was missed in the conversion
tjr [Tue, 24 Sep 2002 09:18:32 +0000 (09:18 +0000)]
Remove an unneeded call to _sfrefill() that was missed in the conversion
from vfscanf() to vfwscanf(). It doesn't hurt to have it there, but it's
redundant since __fgetwc() will refill the buffer if it needs to.

21 years agoBack out last commit. Linux uses the old 4.3BSD sockaddr format.
mini [Tue, 24 Sep 2002 07:03:01 +0000 (07:03 +0000)]
Back out last commit.  Linux uses the old 4.3BSD sockaddr format.

21 years agoAdd support to fsck_ffs to account for storage for extended
mckusick [Tue, 24 Sep 2002 05:18:17 +0000 (05:18 +0000)]
Add support to fsck_ffs to account for storage for extended
attributes.

Sponsored by: DARPA & NAI Labs.

21 years agoMFi386: revisions 1.127, 1.128 and 1.129.
nyan [Tue, 24 Sep 2002 03:17:38 +0000 (03:17 +0000)]
MFi386: revisions 1.127, 1.128 and 1.129.

21 years agoOLDCARD -> NEWCARD
imp [Tue, 24 Sep 2002 02:55:33 +0000 (02:55 +0000)]
OLDCARD -> NEWCARD
pccbb -> cbb

PR: 43263

21 years agoTwo new majors. devd and watchdog
imp [Tue, 24 Sep 2002 02:46:46 +0000 (02:46 +0000)]
Two new majors.  devd and watchdog

21 years agoMove the com_emr register definition to sioreg.h.
nyan [Tue, 24 Sep 2002 02:35:57 +0000 (02:35 +0000)]
Move the com_emr register definition to sioreg.h.

21 years agoMerged from sys/dev/sio/sio.c revision 1.379.
nyan [Tue, 24 Sep 2002 02:26:55 +0000 (02:26 +0000)]
Merged from sys/dev/sio/sio.c revision 1.379.

21 years agoMFi386: revisions 1.536 and 1.538.
nyan [Tue, 24 Sep 2002 02:22:35 +0000 (02:22 +0000)]
MFi386: revisions 1.536 and 1.538.

21 years agoMFi386: revision 1.419
nyan [Tue, 24 Sep 2002 02:18:41 +0000 (02:18 +0000)]
MFi386: revision 1.419

21 years agoFixed to build after removing a.out suppot.
nyan [Tue, 24 Sep 2002 02:17:13 +0000 (02:17 +0000)]
Fixed to build after removing a.out suppot.

21 years agoUse the new va_copy macro to copy variable argument lists instead of
tjr [Tue, 24 Sep 2002 00:47:27 +0000 (00:47 +0000)]
Use the new va_copy macro to copy variable argument lists instead of
assignment. This is needed on powerpc but is also more correct for the
other ports.

Submitted by: grehan
Tested on: alpha, i386, sparc64

21 years agoIf the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting
brian [Mon, 23 Sep 2002 22:40:43 +0000 (22:40 +0000)]
If the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting
it as being in range.

  set ifaddr 1.2.3.4/0 5.6.7.8/0

no longer allows 0.0.0.0 as a valid IP.

Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl>
MFC after: 3 days

21 years agoAdd an NBBY define to eventually replace the one in <sys/types.h>.
mike [Mon, 23 Sep 2002 22:01:10 +0000 (22:01 +0000)]
Add an NBBY define to eventually replace the one in <sys/types.h>.

21 years agoOk, make this compile for real this time. recvfrom_args doesn't have a
jhb [Mon, 23 Sep 2002 21:05:41 +0000 (21:05 +0000)]
Ok, make this compile for real this time.  recvfrom_args doesn't have a
fromlen member, instead it has a fromlenaddr pointer member.  Set it to
NULL.

21 years agoUse correct variable name so that previous commit actually compiles.
jhb [Mon, 23 Sep 2002 20:58:59 +0000 (20:58 +0000)]
Use correct variable name so that previous commit actually compiles.

21 years agoParameterize MPT_MAX_REQUESTS based upon device type (FC has Global Credits
mjacob [Mon, 23 Sep 2002 19:41:10 +0000 (19:41 +0000)]
Parameterize MPT_MAX_REQUESTS based upon device type (FC has Global Credits
of 1024- Ultra4 256). Rename 'requests' tag to 'request_pool' for clarity.
Make sure we do correct xpt_freeze_simq/CAM_RELEASE_SIMQ if we run out
of chip resources.

MFC after: 6 days

21 years agouse __packed.
alfred [Mon, 23 Sep 2002 18:54:32 +0000 (18:54 +0000)]
use __packed.

21 years agoNow that we only probe host-PCI bridges once, we no longer have to check to
jhb [Mon, 23 Sep 2002 18:14:31 +0000 (18:14 +0000)]
Now that we only probe host-PCI bridges once, we no longer have to check to
see if we have been probed before by checking for a pciX bus device.

21 years agoPut verbose printf's in the PCI BIOS interrupt routing code under
jhb [Mon, 23 Sep 2002 18:13:42 +0000 (18:13 +0000)]
Put verbose printf's in the PCI BIOS interrupt routing code under
if (bootverbose).

21 years agoo Move select() helper macros from <sys/types.h> to <sys/select.h>.
mike [Mon, 23 Sep 2002 17:45:51 +0000 (17:45 +0000)]
o Move select() helper macros from <sys/types.h> to <sys/select.h>.
o Include <sys/select.h> from <sys/types.h> in the __BSD_VISIBLE case,
  so applications and base software can be slowly updated.
o Prototype select() in <sys/select.h>.  It was previously only
  prototyped in <unistd.h>.
o Add some XXX's to <sys/types.h>.

Reviewed by: -standards

21 years agoUpdate the nexus driver for the addition of the legacy driver:
jhb [Mon, 23 Sep 2002 16:03:00 +0000 (16:03 +0000)]
Update the nexus driver for the addition of the legacy driver:
- nexus no longer has PCI bridges as direct children, so the PCI bus
  ivar is no longer used and is removed.
- Don't attach default EISA, ISA, or MCA busses.  Instead, if we do not
  have an acpi0 device after bus_generic_probe(), add a legacy0 child
  device.
- Remove machine/nexusvar.h.

21 years agoHang apm off of the legacy device instead of the nexus.
jhb [Mon, 23 Sep 2002 15:56:09 +0000 (15:56 +0000)]
Hang apm off of the legacy device instead of the nexus.

21 years agoChange the nexus_pcib driver (eventually to be renamed to legacy_pcib) to
jhb [Mon, 23 Sep 2002 15:52:30 +0000 (15:52 +0000)]
Change the nexus_pcib driver (eventually to be renamed to legacy_pcib) to
hang off of the legacy driver instead of the nexus.

21 years agoAdd a new legacy(4) device driver for use on machines that do not have
jhb [Mon, 23 Sep 2002 15:50:06 +0000 (15:50 +0000)]
Add a new legacy(4) device driver for use on machines that do not have
ACPI or for when ACPI support is disabled or not present in the kernel.
Basically, the nexus device is now split into two with some parts
(such as adding default ISA, MCA, and EISA busses if they aren't found
as well as support for PCI bus device ivars) being moved to the legacy
driver.

21 years agoDo not add a start offset time to the track duration time.
maxim [Mon, 23 Sep 2002 15:00:23 +0000 (15:00 +0000)]
Do not add a start offset time to the track duration time.

Submitted by: Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru>
MFC after: 2 weeks

21 years agoALLLANG is long dead, garbage collect it. Instead, make it possible
ru [Mon, 23 Sep 2002 14:33:47 +0000 (14:33 +0000)]
ALLLANG is long dead, garbage collect it.  Instead, make it possible
to use DOC_LANG to specify which languages the doc/ is built for.

Note: be aware that the DOC_LANG setting in /etc/make.conf will now
take the effect on "make release".  (This is probably the desired
behavior anyway.)

PR: docs/42924

21 years agoDon't use local variable 'p' in a debug statement.. we removed it.
julian [Mon, 23 Sep 2002 14:06:12 +0000 (14:06 +0000)]
Don't use local variable 'p' in a debug statement.. we removed it.

21 years agooops don't do dthe copy range in a new KSE. There isn't one any more.
julian [Mon, 23 Sep 2002 14:01:01 +0000 (14:01 +0000)]
oops don't do dthe copy range in a new KSE. There isn't one any more.

21 years agoAdd implementations of wscanf() and related functions: fwscanf(), swscanf(),
tjr [Mon, 23 Sep 2002 12:40:06 +0000 (12:40 +0000)]
Add implementations of wscanf() and related functions: fwscanf(), swscanf(),
vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide-
character versions of the scanf() family of functions.

21 years agoIntroduce to the !program specification a capability similar to the one
dcs [Mon, 23 Sep 2002 11:59:19 +0000 (11:59 +0000)]
Introduce to the !program specification a capability similar to the one
that already exists for hosts: being able to specify a section that applies
to every program *except* the one in question.

The normal syntax for program specification is still valid. For the new
capability, one uses:

!-program

Since there is no way to specify a program beginning with a dash in the old
syntax, as it would be interpreted as the case above, the following
alternative syntax to the original capability is provided:

!+program

This shouldn't introduce incompatibilities with any syslogd configuration
in production because -stable's syslogd does not support a dash anywhere in
the program specification.

MFC after: 2 weeks

21 years agoImplement the %lc, %ls and %[ conversions, which read sequences of wide
tjr [Mon, 23 Sep 2002 11:35:50 +0000 (11:35 +0000)]
Implement the %lc, %ls and %[ conversions, which read sequences of wide
characters, non-whitespace wide character strings and wide character
strings in a scanset.

21 years agoThe character argument for __ungetwc() should be wint_t instead of wchar_t.
tjr [Mon, 23 Sep 2002 11:31:18 +0000 (11:31 +0000)]
The character argument for __ungetwc() should be wint_t instead of wchar_t.

21 years agoSlightly rearrange a code in rev. 1.164:
maxim [Mon, 23 Sep 2002 08:56:24 +0000 (08:56 +0000)]
Slightly rearrange a code in rev. 1.164:

o Move len initialization closer to place of its first usage.
o Compare len with 0 to improve readability.
o Explicitly zero out phlen in ip_insertoptions() in failure case.

Suggested by:   jhb
Reviewed by:    jhb
MFC after:      2 weeks

21 years agoRemove a bunch of stuff that is surplus now
julian [Mon, 23 Sep 2002 08:04:30 +0000 (08:04 +0000)]
Remove a bunch of stuff that is surplus now

21 years agoPIC_GOTOFF is OBE.
peter [Mon, 23 Sep 2002 07:27:45 +0000 (07:27 +0000)]
PIC_GOTOFF is OBE.

21 years ago - Include sys/ktr.h so that vnode_if.h can define trace points.
jeff [Mon, 23 Sep 2002 07:21:25 +0000 (07:21 +0000)]
 - Include sys/ktr.h so that vnode_if.h can define trace points.

21 years agouse __packed, rather than __attribute__((packed)).
peter [Mon, 23 Sep 2002 06:50:07 +0000 (06:50 +0000)]
use __packed, rather than __attribute__((packed)).

21 years agoUse some macro evil to create the functions for using sysctl(3) to get each
jmallett [Mon, 23 Sep 2002 06:47:39 +0000 (06:47 +0000)]
Use some macro evil to create the functions for using sysctl(3) to get each
variable natively.  It should allow you to use any sysctl mib set, but due
to limitations of what I can do with macros, right now it's limited to two,
which is all this program used anyway.

Sponsored by: Bright Path Solutions

21 years agoAlfred got me thinking. Provide stubs for lint, and let the compilers
peter [Mon, 23 Sep 2002 06:37:48 +0000 (06:37 +0000)]
Alfred got me thinking.  Provide stubs for lint, and let the compilers
themselves cause a failure if it is told to use a __widget that there is
no implementation for them.  missing an implementation for __unused etc is
harmless.  But not having a __packed implementation when the kernel code
really needs it is a big deal.

21 years agouse __packed/__aligned rather than GCC-specific __attribute__.
alfred [Mon, 23 Sep 2002 06:35:33 +0000 (06:35 +0000)]
use __packed/__aligned rather than GCC-specific __attribute__.

21 years agoWhite space commit...
julian [Mon, 23 Sep 2002 06:33:02 +0000 (06:33 +0000)]
White space commit...
get prompted by Peter's commit to fix spaces that should be tabs in #defines

21 years agos/__attribute__((__packed__))/__packed/g
alfred [Mon, 23 Sep 2002 06:25:08 +0000 (06:25 +0000)]
s/__attribute__((__packed__))/__packed/g

21 years agoI cannot win. I still managed to use #define<space> twice instead of
peter [Mon, 23 Sep 2002 06:19:31 +0000 (06:19 +0000)]
I cannot win. I still managed to use #define<space> twice instead of
#define<tab> in spite of trying to make sure I didn't do this.

21 years agoAdd ability to make threads that run on > 1 cpu
julian [Mon, 23 Sep 2002 06:18:51 +0000 (06:18 +0000)]
Add ability to make threads that run on > 1 cpu
this DOES NOT WORK YET. (well it kind-of-does but it's unsafe)

Submitted by: davidxu

21 years agoDon't use compatability syscall wrappers in emulation code.
mini [Mon, 23 Sep 2002 06:17:54 +0000 (06:17 +0000)]
Don't use compatability syscall wrappers in emulation code.
This is needed for the COMPAT_FREEBSD3 option split.

Reviewed by: alfred, jake

21 years agoslightly clean up the thread_userret() and thread_consider_upcall() calls.
julian [Mon, 23 Sep 2002 06:14:30 +0000 (06:14 +0000)]
slightly clean up the thread_userret() and thread_consider_upcall() calls.
also some slight changes for TDF_BOUND testing and small style changes
Should ONLY affect KSE programs

Submitted by: davidxu

21 years agoCheck to see if we should print a space, rather than using the annoying
jmallett [Mon, 23 Sep 2002 06:14:13 +0000 (06:14 +0000)]
Check to see if we should print a space, rather than using the annoying
prefix methodology.  Adjust nearby style.

Sponsored by: Bright Path Solutions

21 years agoAdd a __section(x) macro as well. Use this in linker_set.h. ie:
peter [Mon, 23 Sep 2002 06:11:29 +0000 (06:11 +0000)]
Add a __section(x) macro as well.  Use this in linker_set.h.  ie:
static void const * const __set_##set##_sym_##sym
 __attribute__((__section__("set_" #set),__unused__)) = &sym
becomes:
static void const * const __set_##set##_sym_##sym
 __section("set_" #set) __unused = &sym
Like the other macros, these #define away for unrecognized compilers or
lint.

Also, fix the argments in the previous commit for the non-gcc case. lint
might be a bit happier about that.  Note that the gcc <= 2.6 case
needs some research.

21 years agoAdd code to create > 1 KSe per process.
julian [Mon, 23 Sep 2002 06:10:24 +0000 (06:10 +0000)]
Add code to create > 1 KSe per process.
(support code not yet complete)

Submitted by: davidxu

21 years agoAt great personal risk, add a __packed and __aligned(x) define that
peter [Mon, 23 Sep 2002 05:55:10 +0000 (05:55 +0000)]
At great personal risk, add a __packed and __aligned(x) define that
expand to __attribute__((packed)) and __attribute__((aligned(x)))
respectively.  Replace the handful of gcc-ism's that use
__attribute__((aligned(16))) etc around the kernel with __aligned(16).

There are over 400 __attribute__((packed)) to deal with, that can come
later.  I just want to use __packed in new code rather than add more
gcc-ism's.

21 years ago - Automatically generate and insert KTR points in all VOPs.
jeff [Mon, 23 Sep 2002 05:50:07 +0000 (05:50 +0000)]
 - Automatically generate and insert KTR points in all VOPs.

21 years agoIndentation does not define a block.. you need breces {} as well..
julian [Mon, 23 Sep 2002 05:27:30 +0000 (05:27 +0000)]
Indentation does not define a block.. you need breces {} as well..
also add a mutex assert.  (threaded path only)

Submitted by: davidxu

21 years agoWads more cleanup...
mjacob [Mon, 23 Sep 2002 05:25:59 +0000 (05:25 +0000)]
Wads more cleanup...

In mpttimeout, call mpt_intr just on the offchance that we missed
an interrupt. We can check to see whether or not the command that
is timing out got completed.

When we *do* decide to timeout a command, set the command state to
REQ_TIMEOUT and then invoke another timeout (hz/10)- mpttimeout2.
This allows us to catch a couple cases we've seen where the command
we timed out on in fact is ready to be completed by the firmware.
In any case, it's only after mpttimeout2 is called that we actually
take down the private state and free the request itself. CAM has
been notified in mpttimeout anyway. This whole area should be redone,
but that will take 105% of my available game time for this month.

Fix a couple of missing (and not useful, at presnet) CAMLOCK_2_MPTLOCK
and MPTLOCK_2_CAMLOCK locations.

Split mpt_notify into mpt_ctlop, which handles all reply completions
that have 0x800000000 or'd into the ContextID. This function can, in
fact, call mpt_event_notify_reply, which handles the traditional
async event notifications. While we're at it, put in the extremely
important (but currently untested) code that send back an Ack to
an Event Notification (if the Event Notification is marked with
AckRequired). Note that an Ack also generates another ctlop completion,
tra la.

Fix up mpt_done substantially to try and get how we plug into CAM
correctly done. Remove bogus CAM_RELEASE_SIMQ settings.

Do some cleanups in mpt_action that are related to speed negotiation
for Ultra4 cards. This is an area that is still quite fragile and
worrisome as config data being read back often doesn't make sense or
jibe with the documentation.

At any rate, after these changes were done, I was finally able to
get Lars Eggert's dual 320M disk system to stay up under load all
weekend- hopefully we're in good enough for now shape.

MFC after: 1 week

21 years ago - Hold the credential of the caller and use it in all subsequent vn ops.
jeff [Mon, 23 Sep 2002 05:20:00 +0000 (05:20 +0000)]
 - Hold the credential of the caller and use it in all subsequent vn ops.
 - Get rid of the ill conceived aq_td field.

Suggested by: rwatson

21 years agoRecognize the single channel 2Gb card (FC919)- thanks to LSI Logic for
mjacob [Mon, 23 Sep 2002 05:16:00 +0000 (05:16 +0000)]
Recognize the single channel 2Gb card (FC919)- thanks to LSI Logic for
pointing this out.

In mpt_intr, don't try and pop a reply queue element out *unless*
the interrupt status says you might have one.

MFC after: 1 week

21 years agoWe do not need to expose mpt_notify outside of mpt_freebsd.c.
mjacob [Mon, 23 Sep 2002 05:14:38 +0000 (05:14 +0000)]
We do not need to expose mpt_notify outside of mpt_freebsd.c.

MFC after: 1 week

21 years agoWhen freeing a request, zero out the sequence number.
mjacob [Mon, 23 Sep 2002 05:14:02 +0000 (05:14 +0000)]
When freeing a request, zero out the sequence number.

Define the CFG_DAGA_OFF offset as 128 bytes instead of 40- gives us
a more reasonable headroom.

When reading a config page, zero out the entire request area- not just
the length of the request. This is because we cleverly (cheezily) return
configuration data back into the allocated request area, so it's nice
to make sure we start with a clean area to write on.

MFC after: 1 week

21 years agoRemove ISP_DMA_ADDR_T definition.
mjacob [Mon, 23 Sep 2002 05:09:23 +0000 (05:09 +0000)]
Remove ISP_DMA_ADDR_T definition.

Instead, based upon whether ISP_DAC_SUPPORTED is defined, typedef
isp_dma_addr_t appropriately.

If ISP_DAC_SUPPORTRED is defined, the DMA_WD2/DMA_WD3 macros do something
useful, else they define to '0'.

21 years agoAdd MBOX_INIT_REQ_QUEUE_A64/MBOX_INIT_RES_QUEUE_A64 definitions.
mjacob [Mon, 23 Sep 2002 05:04:16 +0000 (05:04 +0000)]
Add MBOX_INIT_REQ_QUEUE_A64/MBOX_INIT_RES_QUEUE_A64 definitions.
Define ispreq64_t to be the same as ispreqt3_t.

21 years agoDelete a whole bunch of compatability defines that we dont use anymore.
peter [Mon, 23 Sep 2002 05:04:05 +0000 (05:04 +0000)]
Delete a whole bunch of compatability defines that we dont use anymore.

21 years agoRedo dma tag creation to correctly reflect the boundary and segment
mjacob [Mon, 23 Sep 2002 05:03:34 +0000 (05:03 +0000)]
Redo dma tag creation to correctly reflect the boundary and segment
limitations inherent to the isp1000 on SBus cards.

21 years agoRe-specify the bus space creation such that if we have ISP_DAC_SUPPORTED
mjacob [Mon, 23 Sep 2002 05:02:53 +0000 (05:02 +0000)]
Re-specify the bus space creation such that if we have ISP_DAC_SUPPORTED
defined, we set the address space limitation to BUS_SPACE_UNRESTRICTED,
otherwise to BUS_SPACE_MAXADDR_32BIT.

If we have a 1240, ULTRA2 or better, or an FC card, the boundary limit
is BUS_SPACE_UNRESTRICTED and segment limit is BUS_SPACE_MAXADDR_32BIT.

The older 1020/1040 cards have boundary and segment limits of
BUS_SPACE_MAXADDR_24BIT.

21 years agoFix buglet in A64 CTIO3 structure copy.
mjacob [Mon, 23 Sep 2002 05:00:37 +0000 (05:00 +0000)]
Fix buglet in A64 CTIO3 structure copy.

21 years agoRemove ISP_DMA_ADDR_T define (see ispvar.h)
mjacob [Mon, 23 Sep 2002 05:00:14 +0000 (05:00 +0000)]
Remove ISP_DMA_ADDR_T define (see ispvar.h)
Add in commented out:

+/* #define     ISP_DAC_SUPPORTED       1 */

21 years agoIf we have a 1240 or an ULTRA2 or better card, use MBOX_INIT_RES_QUEUE_A64
mjacob [Mon, 23 Sep 2002 04:59:42 +0000 (04:59 +0000)]
If we have a 1240 or an ULTRA2 or better card, use MBOX_INIT_RES_QUEUE_A64
(preparation for DAC/A64 support)

21 years agoA SCSI_DELAY of zero is a legitimate value to have.
mjacob [Mon, 23 Sep 2002 04:56:35 +0000 (04:56 +0000)]
A SCSI_DELAY of zero is a legitimate value to have.
The notion that you must "always" have a delay is at best misinformed.

21 years agoNote that the large Hitachi's are also CAM_QUIRK_HILUNS
mjacob [Mon, 23 Sep 2002 04:55:32 +0000 (04:55 +0000)]
Note that the large Hitachi's are also CAM_QUIRK_HILUNS

21 years agoBe careful not to define GCC-specific optimizations in the non-GCC
mike [Mon, 23 Sep 2002 04:32:17 +0000 (04:32 +0000)]
Be careful not to define GCC-specific optimizations in the non-GCC
case.

21 years agoUse the system pselect(3).
mike [Mon, 23 Sep 2002 03:40:09 +0000 (03:40 +0000)]
Use the system pselect(3).

21 years ago - Correct the name in the header guards.
jeff [Mon, 23 Sep 2002 00:29:31 +0000 (00:29 +0000)]
 - Correct the name in the header guards.

Spotted by: rwatson

21 years agoThe ahc driver should only have one devclass, not one for each bus
scottl [Sun, 22 Sep 2002 23:03:31 +0000 (23:03 +0000)]
The ahc driver should only have one devclass, not one for each bus
attachment.

Submitted by: too many people to count
MFC after: 3 days

21 years agoFix a couple of longstanding typos which would have made a
jdp [Sun, 22 Sep 2002 19:27:07 +0000 (19:27 +0000)]
Fix a couple of longstanding typos which would have made a
statement fail to compile if it weren't inside "#ifdef
__brokenalpha__".

Submitted by: Birger Toedtmann <birger@takatukaland.de>
MFC after: 2 weeks

21 years agoFollow the lead of recent changes in the 3com Linux driver by
jdp [Sun, 22 Sep 2002 18:58:58 +0000 (18:58 +0000)]
Follow the lead of recent changes in the 3com Linux driver by
disabling memory write invalidate unconditionally.  It looks like
they've decided that MWI just doesn't work with these devices.
Also, remove now-irrelevant code that set PCI write boundary values
based on the cache line size.

MFC after: 2 weeks

21 years agoSet up the BCM570x chip's DMA Read/Write Control register more
jdp [Sun, 22 Sep 2002 18:27:29 +0000 (18:27 +0000)]
Set up the BCM570x chip's DMA Read/Write Control register more
correctly.  This fixes the "watchdog timeout -- resetting" errors
seen on Dell 2650 systems.

MFC after: 1 month

21 years agoAttempt to fix the error reported by the alpha tinderbox. A pointer
iedowse [Sun, 22 Sep 2002 13:25:57 +0000 (13:25 +0000)]
Attempt to fix the error reported by the alpha tinderbox. A pointer
was being cast to an integer as part of a hash function, so just
add an intptr_t cast to silence the warning.

21 years agoo Fix a typo.
maxim [Sun, 22 Sep 2002 11:30:51 +0000 (11:30 +0000)]
o Fix a typo.
o Remove EOL spaces.

Submitted by: Harold Gutch <logix@foobar.franken.de> (typo patch)
Approved by: luigi
MFC after: 3 days

21 years agocp -p could report success even if a file copy failed. This was due to
mckay [Sun, 22 Sep 2002 11:15:56 +0000 (11:15 +0000)]
cp -p could report success even if a file copy failed.  This was due to
the cumulative exit status being overwritten when directory permissions
were being set.  This was particularly bad when called from mv(1) to
perform a cross-device move as the original files were deleted even if
the copy failed.

Reported by:    Slaven Rezic <slaven.rezic@berlin.de>
Patch by:       bde
PR:             42789

21 years agoInitialize fwsectors/fwheads to allow the DIOCGFWSECTORS and
grehan [Sun, 22 Sep 2002 10:07:18 +0000 (10:07 +0000)]
Initialize fwsectors/fwheads to allow the DIOCGFWSECTORS and
DIOCGFWHEADS ioctls to return meaningful values to disklabel/newfs

Approved by: phk

21 years agoUse mdmfs(8) rather than rolling our own RAM-disks.
phk [Sun, 22 Sep 2002 09:48:02 +0000 (09:48 +0000)]
Use mdmfs(8) rather than rolling our own RAM-disks.

Sponsored by: DARPA & NAI Labs.

21 years agoDon't disklabel(8) the md(4) device, it is not needed, and we don't want
phk [Sun, 22 Sep 2002 09:46:28 +0000 (09:46 +0000)]
Don't disklabel(8) the md(4) device, it is not needed, and we don't want
to propagete BSD disklabels to architectures not already so polluted.

Sponsored by: DARPA & NAI Labs.

21 years agoFailure to rewrite the disklabel should not be fatal.
phk [Sun, 22 Sep 2002 09:41:41 +0000 (09:41 +0000)]
Failure to rewrite the disklabel should not be fatal.

Sponsored by: DARPA & NAI Labs.

21 years agoFix misspellings, capitalization, and punctuation in comments. Minor
truckman [Sun, 22 Sep 2002 08:54:17 +0000 (08:54 +0000)]
Fix misspellings, capitalization, and punctuation in comments.  Minor
comment phrasing and style changes.

21 years agoMove the com_scr register address definition over with the other seven.
phk [Sun, 22 Sep 2002 08:51:31 +0000 (08:51 +0000)]
Move the com_scr register address definition over with the other seven.

Approved by: bde

21 years agoModify vm_map_clean() (and thus the msync(2) system call) to support
mdodd [Sun, 22 Sep 2002 08:22:32 +0000 (08:22 +0000)]
Modify vm_map_clean() (and thus the msync(2) system call) to support
invalidation of cached pages for objects of type OBJT_DEVICE.

Submitted by: Christian Zander <zander@minion.de>
Approved by: alc

21 years agoAdd the remaining C99 wide character string to integer conversion functions.
tjr [Sun, 22 Sep 2002 08:06:45 +0000 (08:06 +0000)]
Add the remaining C99 wide character string to integer conversion functions.
Restrict qualifiers were added to the existing prototypes in <inttypes.h>
and the typedef for wchar_t was removed.

21 years agoTurn off the "-O2 flag TRIGGERS KNOWN OPTIMIZER BUGS" warning.
obrien [Sun, 22 Sep 2002 07:26:38 +0000 (07:26 +0000)]
Turn off the "-O2 flag TRIGGERS KNOWN OPTIMIZER BUGS" warning.

From current testsuite results, the optimizer bugs don't appear to exist
anymore.  RTH@cygnus.com did a lot of work on the Alpha ELF code generator
for GCC 3.2[.0].  A recent FreeBSD/AXP GCC bootstrap is at
http://gcc.gnu.org/ml/gcc-testresults/2002-09/msg00604.html
In this bootstraps, all gcc libraries are built with -O2 and c-torture
gives -O2 a real workout.  None of the remaining failures have anything
to do with -O2 optimizer bugs.

Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>

21 years ago - Add the -i option to read in a saved ktr file output by KTR_ALQ.
jeff [Sun, 22 Sep 2002 07:21:28 +0000 (07:21 +0000)]
 - Add the -i option to read in a saved ktr file output by KTR_ALQ.