]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoWe go more on MFen 1.423
Sebastien Gioria [Sat, 28 Sep 2002 19:05:34 +0000 (19:05 +0000)]
We go more on MFen 1.423

21 years agoWhen spamming me with a printf(9), under DIAGNOSTIC, at least be nice enough
Juli Mallett [Sat, 28 Sep 2002 19:04:49 +0000 (19:04 +0000)]
When spamming me with a printf(9), under DIAGNOSTIC, at least be nice enough
to include a newline.

MFC after: 4 days
Sponsored by: Bright Path Solutions

21 years agoMake P_MAGIC fit in p_magic.
Poul-Henning Kamp [Sat, 28 Sep 2002 18:48:22 +0000 (18:48 +0000)]
Make P_MAGIC fit in p_magic.

21 years agoAdd support for the BCM5702x chips.
Mitsuru IWASAKI [Sat, 28 Sep 2002 18:04:12 +0000 (18:04 +0000)]
Add support for the BCM5702x chips.

Reviewed by: jdp
MFC after: 1 week

21 years agoDon't use GCC shorthand for ?: unless it really matters.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:47:51 +0000 (17:47 +0000)]
Don't use GCC shorthand for ?: unless it really matters.

21 years agoRemove unused includes.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:46:30 +0000 (17:46 +0000)]
Remove unused includes.
Clarify the intention of a while();
Move a local variable to avoid potential name-confusion.

21 years agoFix mis-indent.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:37:55 +0000 (17:37 +0000)]
Fix mis-indent.

21 years agoNewer Netgear MA401RA entry.
Warner Losh [Sat, 28 Sep 2002 17:36:52 +0000 (17:36 +0000)]
Newer Netgear MA401RA entry.

Submitted by: Michael Ranner

21 years agoDon't call function in return() for a void function.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:36:29 +0000 (17:36 +0000)]
Don't call function in return() for a void function.

21 years agoFix an indentation problem.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:34:31 +0000 (17:34 +0000)]
Fix an indentation problem.

21 years agoDon't use unnamed anonymous structs: give it a name.
Poul-Henning Kamp [Sat, 28 Sep 2002 17:33:31 +0000 (17:33 +0000)]
Don't use unnamed anonymous structs: give it a name.

21 years agoBe consistent about "static" functions: if the function is marked
Poul-Henning Kamp [Sat, 28 Sep 2002 17:15:38 +0000 (17:15 +0000)]
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too.

Inspired by:    FlexeLint warning #512

21 years agoCreate symlink for /etc/group. MAKEDEV file will use this file (group name
Makoto Matsushita [Sat, 28 Sep 2002 17:06:07 +0000 (17:06 +0000)]
Create symlink for /etc/group.  MAKEDEV file will use this file (group name
to gid conversion).

PR: 43455
Submitted by: n-kogane@syd.odn.ad.jp
X-MFC after: immediately if re@ permits, or after 4.7-RELEASE is out

21 years agoPut the casts on the right hand side of =.
Poul-Henning Kamp [Sat, 28 Sep 2002 14:17:24 +0000 (14:17 +0000)]
Put the casts on the right hand side of =.

21 years agoDon't return(foo(bla)) when foo returns void.
Poul-Henning Kamp [Sat, 28 Sep 2002 14:03:27 +0000 (14:03 +0000)]
Don't return(foo(bla)) when foo returns void.

21 years agoI misplaced a local variable yesterday.
Poul-Henning Kamp [Sat, 28 Sep 2002 13:42:04 +0000 (13:42 +0000)]
I misplaced a local variable yesterday.

21 years agoCorrectly order VI_UNLOCK(), local variables and block comment.
Poul-Henning Kamp [Sat, 28 Sep 2002 12:15:44 +0000 (12:15 +0000)]
Correctly order VI_UNLOCK(), local variables and block comment.

21 years agoStyle, whitespace and lint fixes.
Poul-Henning Kamp [Sat, 28 Sep 2002 11:57:20 +0000 (11:57 +0000)]
Style, whitespace and lint fixes.

Sponsored by: DARPA & NAI Labs.

21 years agoVoid functions cannot use return(foo) even if foo is also returning void.
Poul-Henning Kamp [Sat, 28 Sep 2002 11:43:20 +0000 (11:43 +0000)]
Void functions cannot use return(foo) even if foo is also returning void.

Sponsored by: DARPA & NAI Labs.

21 years agoFix two style problems which made FlexeLint unhappy:
Poul-Henning Kamp [Sat, 28 Sep 2002 11:28:44 +0000 (11:28 +0000)]
Fix two style problems which made FlexeLint unhappy:

Don't use zero-dimension array in struct pargs.

Comma after the last element of an enum doesn't make sense.

21 years agoRewrite the kse_create() function to better aproach the semantics we
Julian Elischer [Sat, 28 Sep 2002 08:44:31 +0000 (08:44 +0000)]
Rewrite the kse_create() function to better aproach the semantics we
have specified in the design.

21 years agoFirst confirmed kill from my Flexelint license: Check return value
Poul-Henning Kamp [Sat, 28 Sep 2002 08:16:50 +0000 (08:16 +0000)]
First confirmed kill from my Flexelint license:  Check return value
of g_clone_bio().

Detected by: http://www.gimpel.com/html/flex.htm
Sponsored by: DARPA & NAI Labs.

21 years agoRemove masking macros for getwc(), putwc(), putwchar() and getwchar().
Tim J. Robbins [Sat, 28 Sep 2002 07:43:44 +0000 (07:43 +0000)]
Remove masking macros for getwc(), putwc(), putwchar() and getwchar().
Although there was nothing wrong with getwc() and putwc(), getwchar()
and putwchar() assumed that <stdio.h> had been included before <wchar.h>,
which is not allowed by the standard.

21 years agoPlace 'completed thread anchor' in pre-zero'd secion of the KSEGRP
Julian Elischer [Sat, 28 Sep 2002 07:27:31 +0000 (07:27 +0000)]
Place 'completed thread anchor' in pre-zero'd secion of the KSEGRP
structure, not the copied section.

21 years agoRemove more two-letters names,
Andrey A. Chernov [Sat, 28 Sep 2002 03:40:19 +0000 (03:40 +0000)]
Remove more two-letters names,
we don't use them in termcap already many years.

Add "su" as alias to "dumb" to help login, with comment.

21 years agoRenamed intr_enqueue to intr_vector and intr_dequeue to intr_fast, to
Jake Burkholder [Sat, 28 Sep 2002 03:06:35 +0000 (03:06 +0000)]
Renamed intr_enqueue to intr_vector and intr_dequeue to intr_fast, to
better reflect how they are called.

21 years agoMoved most interrupt related code to a new file, interrupt.S.
Jake Burkholder [Sat, 28 Sep 2002 01:56:24 +0000 (01:56 +0000)]
Moved most interrupt related code to a new file, interrupt.S.

21 years agoZap now-unused SHLIB_MINOR
Peter Wemm [Sat, 28 Sep 2002 00:25:32 +0000 (00:25 +0000)]
Zap now-unused SHLIB_MINOR

21 years agoAdd a workaround for what seems to be confusion between binutils and the
Jake Burkholder [Fri, 27 Sep 2002 23:12:53 +0000 (23:12 +0000)]
Add a workaround for what seems to be confusion between binutils and the
sparc v9 ABI.  The Elf_Rela records for local symbols appear to already
have the symbol's value added in to the addend field, even though the ABI
specifies we need to lookup the symbol and add its value too.  This breaks
text relocations in klds because the symbol's value is added twice, and
the resulting address points off into nowhere land, so for now just use
the addend.

Tested by: rwatson

21 years agoAdd a missing pair of curly braces to a conditional debug
Justin T. Gibbs [Fri, 27 Sep 2002 23:00:35 +0000 (23:00 +0000)]
Add a missing pair of curly braces to a conditional debug
statement.  This ensures that debug code doesn't trigger if
it isn't enabled. <blush>

21 years agoUpdate to match current kernel code.
Poul-Henning Kamp [Fri, 27 Sep 2002 22:20:53 +0000 (22:20 +0000)]
Update to match current kernel code.

Fix a couple of reference data which were found to be in error.

Sponsored by: DARPA & NAI Labs.

21 years agoAdd "missing scratch-pad register" to the first of the two ports
Poul-Henning Kamp [Fri, 27 Sep 2002 22:02:46 +0000 (22:02 +0000)]
Add "missing scratch-pad register" to the first of the two ports
on the Argosy SP-320 dual-port async PCcard.

An amazing piece of hardware seen from an ISO9000 point of view.

21 years agoAdd a field so we can specify flags per port to the underlying device driver.
Poul-Henning Kamp [Fri, 27 Sep 2002 22:01:32 +0000 (22:01 +0000)]
Add a field so we can specify flags per port to the underlying device driver.

21 years agoAdd yet a quick flag to sio: 0x100000 "Scratch pad register missing".
Poul-Henning Kamp [Fri, 27 Sep 2002 22:00:23 +0000 (22:00 +0000)]
Add yet a quick flag to sio: 0x100000 "Scratch pad register missing".

The advanced stage of computer assisted hardware design and
verification is aptly illustrated by the fact that this is necessary
because only the first ports in a single-chip, dual-port async
PC-Card product lacks this register.

21 years agoFix so it compiles with the new disklabel stuff.
Søren Schmidt [Fri, 27 Sep 2002 21:56:35 +0000 (21:56 +0000)]
Fix so it compiles with the new disklabel stuff.

21 years agoExtensively rework the geom_bsd method, put a lot of comments in, betting
Poul-Henning Kamp [Fri, 27 Sep 2002 21:54:37 +0000 (21:54 +0000)]
Extensively rework the geom_bsd method, put a lot of comments in, betting
that this will make people use this for their future copy&paste operations.

Rework the detection of raw-disk offsets in disklabels.  This actually
unearthed a number of bugs in the (now) previous version.

Also accept labels which don't have a magic RAW_PART, provided they don't
confuse us too much.

Change the order of our sanity-checks on labels found on disks to be more
robust.

Check against MAXPARTITIONS in our sanity-check and reject disklabels
we cannot cope with.

Create new g_bsd_modify() function to implment disklabel modifying
ioctls.

Implement DIOCSDINFO and DIOCWDINFO with the provision that the latter
still not writes your change back to disk.  I didn't have the nerves
for that yet.

In the start routine, use g_call_me() for complex ioctls to prevent
sleeping.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd the new g_slice_config() call, which can add/delete/change a slice,
Poul-Henning Kamp [Fri, 27 Sep 2002 21:37:11 +0000 (21:37 +0000)]
Add the new g_slice_config() call, which can add/delete/change a slice,
with support for trying, doing and forcing.

This will eventually replace g_slice_addslice() which gets changed from
grabbing topology to requing it in this commit as well.

Sponsored by:   DARPA & NAI Labs.

21 years agoMake the UP/DOWN threads hold on to their own private mutex while doing
Poul-Henning Kamp [Fri, 27 Sep 2002 21:24:40 +0000 (21:24 +0000)]
Make the UP/DOWN threads hold on to their own private mutex while doing
work.

This prevents people from sleeping in the UP/DOWN I/O path by mistake
or design (doing so almost invariably result in deadlocks since it
stalls all I/O processing in the given direction.

Sponsored by:   DARPA & NAI Labs.

21 years agoCorrectly en/decode MAXPARTITIONS partitions.
Poul-Henning Kamp [Fri, 27 Sep 2002 21:19:47 +0000 (21:19 +0000)]
Correctly en/decode MAXPARTITIONS partitions.

Sponsored by: DARPA & NAI Labs.

21 years agoSetattr should not retry on EBUSY, we could get EBUSY back because
Poul-Henning Kamp [Fri, 27 Sep 2002 21:12:47 +0000 (21:12 +0000)]
Setattr should not retry on EBUSY, we could get EBUSY back because
a disklabel modification tries to change an open device, and no
counter-examples exists.

Be less facist about when we can do Setattr, the openmodes of devices
are so loosely managed that the "exclusive" count is almost useless.

Sponsored by:   DARPA & NAI Labs.

21 years agoVarious no-ops:
Poul-Henning Kamp [Fri, 27 Sep 2002 21:05:05 +0000 (21:05 +0000)]
Various no-ops:

Add a __unused.

Make the 2byte decoder functions return 16 bits for the benefits
of picky lints.

No need to grab giant around a tsleep() when we have a timeout.

Sponsored by: DARPA & NAI Labs.

21 years agoCorrectly calculate size of PC98 slices.
Poul-Henning Kamp [Fri, 27 Sep 2002 20:56:21 +0000 (20:56 +0000)]
Correctly calculate size of PC98 slices.

Sponsored by: DARPA & NAI Labs.

21 years agoAllocate bio's with M_NOWAIT and let the caller deal with the problems.
Poul-Henning Kamp [Fri, 27 Sep 2002 20:53:47 +0000 (20:53 +0000)]
Allocate bio's with M_NOWAIT and let the caller deal with the problems.

Sponsored by: DARPA & NAI Labs.

21 years agoAdd checks for g_clone_bio() returning NULL, it will be possible RSN.
Poul-Henning Kamp [Fri, 27 Sep 2002 20:47:23 +0000 (20:47 +0000)]
Add checks for g_clone_bio() returning NULL, it will be possible RSN.

Sponsored by: DARPA & NAI Labs.

21 years agoImplement g_call_me() as a way for geom methods to schedule operations
Poul-Henning Kamp [Fri, 27 Sep 2002 20:38:36 +0000 (20:38 +0000)]
Implement g_call_me() as a way for geom methods to schedule operations
to be performed in the event-thread.

To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock),
since g_call_me() being called from the UP/DOWN paths will not be able to
aquire g_topology_lock.

This also means that for now these events are not referenced on any
particular consumer/provider/geom.

For UP/DOWN path use, this will not become a problem since the access()
function will make sure we drain any bio's before we dismantle.

Sponsored by:   DARPA & NAI Labs.

21 years agoOk, include also the two tests which actually does effect the claims
Poul-Henning Kamp [Fri, 27 Sep 2002 20:30:27 +0000 (20:30 +0000)]
Ok, include also the two tests which actually does effect the claims
of the last commit message.

Sponsored by: DARPA & NAI Labs.

21 years agoHook into the shutdown EVENTHANDLER and stop tasting things after we
Poul-Henning Kamp [Fri, 27 Sep 2002 20:23:35 +0000 (20:23 +0000)]
Hook into the shutdown EVENTHANDLER and stop tasting things after we
get notified to make things settle a bit faster.

Sponsored by: DARPA & NAI Labs.

21 years agoRename the doorlock to eventlock, it gets to protect a bit more in the future.
Poul-Henning Kamp [Fri, 27 Sep 2002 20:18:16 +0000 (20:18 +0000)]
Rename the doorlock to eventlock, it gets to protect a bit more in the future.

Sponsored by: DARPA & NAI Labs.

21 years agoMake it a tad easier to deal with struct inode in userland programs which
Poul-Henning Kamp [Fri, 27 Sep 2002 20:03:05 +0000 (20:03 +0000)]
Make it a tad easier to deal with struct inode in userland programs which
fondle /dev/kmem by using "struct cdev *" instead of "dev_t".

Requsted by: jake

21 years agoUse our mount-credential if we get a NOCRED when we try to write out EA
Poul-Henning Kamp [Fri, 27 Sep 2002 20:00:03 +0000 (20:00 +0000)]
Use our mount-credential if we get a NOCRED when we try to write out EA
space back to disk.

This is wrong in many ways, but not as wrong as a panic.

Pancied on: rwatson & jmallet
Sponsored by: DARPA & NAI Labs.

21 years agoMFNetBSD: Increasre the reset recovery time. (rev 1.69)
Josef Karthauser [Fri, 27 Sep 2002 19:55:37 +0000 (19:55 +0000)]
MFNetBSD: Increasre the reset recovery time.  (rev 1.69)

21 years agoMFNetBSD: Update class codes. (rev 1.68)
Josef Karthauser [Fri, 27 Sep 2002 19:52:42 +0000 (19:52 +0000)]
MFNetBSD: Update class codes. (rev 1.68)

21 years agoAdd a D_NOGIANT flag which can be set in a struct cdevsw to indicate
Poul-Henning Kamp [Fri, 27 Sep 2002 19:47:59 +0000 (19:47 +0000)]
Add a D_NOGIANT flag which can be set in a struct cdevsw to indicate
that a particular device driver is not Giant-challenged.

SPECFS will DROP_GIANT() ... PICKUP_GIANT() around calls to the
driver in question.

Notice that the interrupt path is not affected by this!

This does _NOT_ work for drivers accessed through cdevsw->d_strategy()
ie drivers for disk(-like), some tapes, maybe others.

21 years agoMFNetBSD: Add Bluetooth related classes etc. (rev 1.67)
Josef Karthauser [Fri, 27 Sep 2002 19:45:37 +0000 (19:45 +0000)]
MFNetBSD: Add Bluetooth related classes etc. (rev 1.67)

21 years agoMFNetBSD: revision 1.66
Josef Karthauser [Fri, 27 Sep 2002 19:42:29 +0000 (19:42 +0000)]
MFNetBSD: revision 1.66
Get rid of trailing white space.

21 years agoAdd the pst (Promise SX6000) driver to GENERIC.
Søren Schmidt [Fri, 27 Sep 2002 19:09:21 +0000 (19:09 +0000)]
Add the pst (Promise SX6000) driver to GENERIC.

21 years agoAdd the "Monitor" interface flag.
Poul-Henning Kamp [Fri, 27 Sep 2002 18:57:47 +0000 (18:57 +0000)]
Add the "Monitor" interface flag.

Setting this flag on an ethernet interface blocks transmission of packets
and discards incoming packets after BPF processing.

This is useful if you want to monitor network trafic but not interact
with the network in question.

Sponsored by: http://www.babeltech.dk

21 years agoRename struct specinfo to the more appropriate struct cdev.
Poul-Henning Kamp [Fri, 27 Sep 2002 18:27:10 +0000 (18:27 +0000)]
Rename struct specinfo to the more appropriate struct cdev.

Agreed on: jake, rwatson, jhb

21 years agoAdd manpage for the pst driver (Promise SX6000)
Søren Schmidt [Fri, 27 Sep 2002 17:44:12 +0000 (17:44 +0000)]
Add manpage for the pst driver (Promise SX6000)

21 years agoPrepare for the uncoming import of the ServeRAID driver
Scott Long [Fri, 27 Sep 2002 17:06:56 +0000 (17:06 +0000)]
Prepare for the uncoming import of the ServeRAID driver

21 years agoFix moused so you can use the stop command
Gordon Tetlow [Fri, 27 Sep 2002 16:54:21 +0000 (16:54 +0000)]
Fix moused so you can use the stop command

Reported by: wa1ter@myrealbox.com

21 years agoUse size_t instead of int for len variables passed in/out of sysctl.
Robert Watson [Fri, 27 Sep 2002 16:35:19 +0000 (16:35 +0000)]
Use size_t instead of int for len variables passed in/out of sysctl.

Pointed out by: jake

21 years agoGive up on a tty if opening it's special file returns ENOENT like we do for
John Baldwin [Fri, 27 Sep 2002 16:02:28 +0000 (16:02 +0000)]
Give up on a tty if opening it's special file returns ENOENT like we do for
ENXIO.

Glanced at by: imp, gallatin

21 years agoDocument the parsing bug.
Ruslan Ermilov [Fri, 27 Sep 2002 09:21:07 +0000 (09:21 +0000)]
Document the parsing bug.

21 years agoRedo how completing threads pass their state to userland
Julian Elischer [Fri, 27 Sep 2002 07:11:11 +0000 (07:11 +0000)]
Redo how completing threads pass their state to userland
if they are not going to cross over themselves. Also change how the list of
completed user threads is tracked and passed to the KSE. This is not
a change in design but rather the implementation of what was originally
envisionned.

21 years agoTwo fixes:
Warner Losh [Fri, 27 Sep 2002 06:14:29 +0000 (06:14 +0000)]
Two fixes:
1) Add new card entry for nortel eMobility wi card (from email
   that I've lost the sender on :-(
2) put ata devices at config 0x1 rather than auto.  This should be
   better for nearly all cases.

MFC after: 3 days

21 years agoRemove redundant inclusion of inttypes.h in aicasm_gram.y
Justin T. Gibbs [Fri, 27 Sep 2002 03:23:02 +0000 (03:23 +0000)]
Remove redundant inclusion of inttypes.h in aicasm_gram.y
and properly sort inttypes.h into list of includes.

Noticed by: Mike Barcroft <mike@freebsd.org>

21 years agoList valid keywords, ala kill(1), rather than the csh builtin kill, which
Juli Mallett [Fri, 27 Sep 2002 01:44:30 +0000 (01:44 +0000)]
List valid keywords, ala kill(1), rather than the csh builtin kill, which
tells people to type kill -l, when no valid ones are specified.

Sponsored by: Bright Path Solutions
MFC after: 4 days

21 years agoAla kill(1), tell people to type 'ps -L' for a list of format keywords.
Juli Mallett [Fri, 27 Sep 2002 01:40:30 +0000 (01:40 +0000)]
Ala kill(1), tell people to type 'ps -L' for a list of format keywords.

Sponsored by: Rachel Hestilow <rachel@jerkcity.com>
MFC after: 2 weeks

21 years agoRemove an errant debugging printf that got left in during my last
Robert Watson [Fri, 27 Sep 2002 00:25:54 +0000 (00:25 +0000)]
Remove an errant debugging printf that got left in during my last
commit.

Pointed out by: guido

21 years agoUpgrade to version 1.1 of the aic79xx U320 driver.
Justin T. Gibbs [Thu, 26 Sep 2002 22:54:00 +0000 (22:54 +0000)]
Upgrade to version 1.1 of the aic79xx U320 driver.

aic79xx.c:
o Remove redundant ahd_update_modes() call.
o Correct panic in diagnostic should state corruption cause
  the SCB Id to be invalid during a selection timeout.
o Add workaround for missing BUSFREEREV feature in Rev A silicon.
o Corect formatting nits.
o Use register pretty printing in more places.
o Save and restore our SCB pointer when updating the waiting queue
  list for an "expected" LQ-out busfree.
o In ahd_clear_intstat, deal with the missing autoclear in the
  CLRLQO* registers.
o BE fixup in a diagnostic printf.
o Make sure that we are in the proper mode before disabling
  selections in ahd_update_pending_scbs.
o Add more diagnostics.
o task_attribute_nonpkt_tag -> task_attribute: we don't need a
  nonpkt_tag field anymore for allowing all 512 SCBs to be
  used in non-packetized connections.
o Negotiate HOLD_MCS to U320 devices.
o Add a few additional mode assertions.
o Restore the chip mode after clearing out the qinfifo so that
  code using ahd_abort_scbs sees a consistent mode.
o Simplify the DMA engine shutdown routine prior to performing
  a bus reset.
o Perform the sequencer restart after a chip reset prior to
  setting up our timer to poll for the reset to be complete.
  On some OSes, the timer could actually pre-empt us and order
  is important here.
o Have our "reset poller" set the expected mode since there is
  no guarantee of what mode will be in force when we are called
  from the OS timer.
o Save and restore the SCB pointer in ahd_dump_card_state().  This
  routine must not modify card state.
o Ditto for ahd_dump_scbs().

aic79xx.h:
o Add a few more chip bug definitions.
o Align our tag on a 32bit boundary.

aic79xx.reg:
aic79xx.seq:
o Start work on removing workarounds for Rev B.
o Use a special location in scratch from for stroring
  our SCBPTR during legacy FIFO allocations.  This corrects
  problems in mixed packetized/non-packetized configurations
  where calling into a FIFO task corrupted our SCBPTR.
o Don't rely on DMA priority to guarantee that all data in
  our FIFOs will flush prior to a command completion notification
  going out of the command channel.  We've never seen this assumption
  fail, but better safe than sorry.
o Deal with missing BUSFREEREV feature in H2A.
o Simplify disconnect list code now that the list will always
  have only a single entry.
o Implement the AHD_REG_SLOW_SETTLE_BUG workaround.
o Swith to using "REG_ISR" for local mode scratch during
  our ISR.
o Add a missing jmp to the data_group_dma_loop after our
  data pointers have been re-initialized by the kernel.
o Correct test in the bitbucket code so that we actually
  wait for the bitbucket to complete before signaling the
  kernel of the overrun condition.
o Reposition pkt_saveptrs to avoid a jmp instruction.
o Update a comment to reflect that the code now waits for
  a FIFO to drain prior to issuing a CLRCHN.

aic79xx_inline.h:
o Remove unused untagged queue handling code.
o Don't attempt to htole64 what could be a 32bit value.

aic79xx_pci.c:
o Set additional bug flags for rev A chips.

21 years agoExpand vendor ID.
Justin T. Gibbs [Thu, 26 Sep 2002 21:50:27 +0000 (21:50 +0000)]
Expand vendor ID.

21 years agoCorrect a spelling error.
Justin T. Gibbs [Thu, 26 Sep 2002 21:50:03 +0000 (21:50 +0000)]
Correct a spelling error.

21 years agoSync perforce IDs for changes first committed to FreeBSD and then
Justin T. Gibbs [Thu, 26 Sep 2002 21:48:17 +0000 (21:48 +0000)]
Sync perforce IDs for changes first committed to FreeBSD and then
to the Adaptec driver repository.

21 years agoUse inttypes.h
Justin T. Gibbs [Thu, 26 Sep 2002 21:46:19 +0000 (21:46 +0000)]
Use inttypes.h

Upgrade assembler to allow a move immediate of 0.
This is helpful in certain macros where we can't know the value of the
immediate in advance.

21 years agoDon't show disklabel in the examples, it is not necessary.
Poul-Henning Kamp [Thu, 26 Sep 2002 21:29:10 +0000 (21:29 +0000)]
Don't show disklabel in the examples, it is not necessary.

21 years agoUnder DIAGNOSTIC, complain if ENOIOCTL leaks out through VOP_IOCTL().
Poul-Henning Kamp [Thu, 26 Sep 2002 21:21:13 +0000 (21:21 +0000)]
Under DIAGNOSTIC, complain if ENOIOCTL leaks out through VOP_IOCTL().

21 years agoApparently pxeboot passes in a mygateway of non-zero sin length
Robert Watson [Thu, 26 Sep 2002 19:56:43 +0000 (19:56 +0000)]
Apparently pxeboot passes in a mygateway of non-zero sin length
from DHCP in the event that no gateway is returned from DHCP, breaking
the assumption that we skip the routing insertion of the gateway
if the sin length is zero.  Check also for s_addr of 0 to avoid the
"Oh no, adding my default route failed" panic, making it possible
to pxeboot machines on segments without default routes.  Arguably
this could be a bug in pxeboot, or in the TUNABLE code, but this
makes my boxes boot.

21 years agoArgh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead of
John Baldwin [Thu, 26 Sep 2002 18:40:06 +0000 (18:40 +0000)]
Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead of
nexus(4) in the case of machines w/o equivalent bridges on a PCI bus.

Reported by: winter
Pointy hat to: jhb

21 years agoMove the aac driver from MI to MD NOTES. It is a long way from being
Scott Long [Thu, 26 Sep 2002 18:16:28 +0000 (18:16 +0000)]
Move the aac driver from MI to MD NOTES.  It is a long way from being
64-bit clean.

21 years agoI hate it when patch gives me .rej files.
Poul-Henning Kamp [Thu, 26 Sep 2002 17:25:22 +0000 (17:25 +0000)]
I hate it when patch gives me .rej files.

Can't we make the pre-commit check refuse if there are .rej files in
the directory ?

21 years agoAdd a note explaining /var/empty.
Ceri Davies [Thu, 26 Sep 2002 17:12:05 +0000 (17:12 +0000)]
Add a note explaining /var/empty.

PR: docs/43364
Submitted by: Kim Scarborough <sluggo@unknown.nu>
MFC after: 14 days

21 years agoRemove NBBY and howmany() macros.
Mike Barcroft [Thu, 26 Sep 2002 16:50:51 +0000 (16:50 +0000)]
Remove NBBY and howmany() macros.

21 years agoMake biowait() check bio_error before the BIO_ERROR flag, to propery
Poul-Henning Kamp [Thu, 26 Sep 2002 16:32:14 +0000 (16:32 +0000)]
Make biowait() check bio_error before the BIO_ERROR flag, to propery
catch internal GEOM use of bio_error.

Sponsored by: DARPA & NAI Labs.

21 years agoReturn ENOTTY on unhandled ioctls.
Poul-Henning Kamp [Thu, 26 Sep 2002 14:11:49 +0000 (14:11 +0000)]
Return ENOTTY on unhandled ioctls.

21 years agoDocument that ENOTTY is the correct "default" error return;
Poul-Henning Kamp [Thu, 26 Sep 2002 14:10:21 +0000 (14:10 +0000)]
Document that ENOTTY is the correct "default" error return;

21 years agoReturn ENOTTY on unrecognized ioctls.
Poul-Henning Kamp [Thu, 26 Sep 2002 14:08:37 +0000 (14:08 +0000)]
Return ENOTTY on unrecognized ioctls.

21 years agoReturn ENOTTY on incorrect ioctls.
Poul-Henning Kamp [Thu, 26 Sep 2002 14:07:43 +0000 (14:07 +0000)]
Return ENOTTY on incorrect ioctls.

21 years agoReturn ENOTTY when we don't recognize an ioctl.
Poul-Henning Kamp [Thu, 26 Sep 2002 14:05:36 +0000 (14:05 +0000)]
Return ENOTTY when we don't recognize an ioctl.

21 years agoBe a bit more technical:
Poul-Henning Kamp [Thu, 26 Sep 2002 14:01:50 +0000 (14:01 +0000)]
Be a bit more technical:
Technically junk may have low entropy.

21 years agoBack out previous, free the buffer when __vfprintf() fails and don't bother
Tim J. Robbins [Thu, 26 Sep 2002 13:11:24 +0000 (13:11 +0000)]
Back out previous, free the buffer when __vfprintf() fails and don't bother
trying to shrink the buffer with realloc() before returning it.

21 years agoBack out previous and solve the problems a different way: move va_start/
Tim J. Robbins [Thu, 26 Sep 2002 13:09:48 +0000 (13:09 +0000)]
Back out previous and solve the problems a different way: move va_start/
va_end closer to the __vfprintf() call, free the buffer when __vfprintf()
fails and don't bother trying to shrink the buffer with realloc() before
returning it.

Submitted by: bde

21 years agoSimplify by removing unneeded local variables and explicit null termination.
Tim J. Robbins [Thu, 26 Sep 2002 09:28:55 +0000 (09:28 +0000)]
Simplify by removing unneeded local variables and explicit null termination.

21 years agoSimplify by removing useless local variables and explicit null termination.
Tim J. Robbins [Thu, 26 Sep 2002 09:23:07 +0000 (09:23 +0000)]
Simplify by removing useless local variables and explicit null termination.

21 years agoCorrectly handle the case where __vfwprintf() fails because it runs out
Tim J. Robbins [Thu, 26 Sep 2002 08:26:16 +0000 (08:26 +0000)]
Correctly handle the case where __vfwprintf() fails because it runs out
of memory.

21 years agoSync with OpenBSD: avoid memory leak when __vfprintf() fails because it
Tim J. Robbins [Thu, 26 Sep 2002 07:55:18 +0000 (07:55 +0000)]
Sync with OpenBSD: avoid memory leak when __vfprintf() fails because it
runs out of memory, always call va_end.

21 years ago - Export the alq daemon thread pointer.
Jeff Roberson [Thu, 26 Sep 2002 07:38:56 +0000 (07:38 +0000)]
 - Export the alq daemon thread pointer.
 - Don't log ktr events from the alq daemon.

21 years agoRevert 1.27, as it breaks IPv6 over IPv4 tunnels.
Maxim Sobolev [Thu, 26 Sep 2002 07:22:29 +0000 (07:22 +0000)]
Revert 1.27, as it breaks IPv6 over IPv4 tunnels.

Submitted by: Mark Huizer <xaa@timewasters.nl>, ume

21 years agoDocument DOC_LANG.
Ruslan Ermilov [Thu, 26 Sep 2002 07:08:48 +0000 (07:08 +0000)]
Document DOC_LANG.

Reviewed by: murray

21 years agoRemove a semicolon that appears to be a lie.
Juli Mallett [Thu, 26 Sep 2002 06:44:30 +0000 (06:44 +0000)]
Remove a semicolon that appears to be a lie.

Spotted by: SPARC64 make WARNS=3
Sponsored by: Rachel Hestilow <rachel@jerkcity.com>