Commit Graph

44478 Commits

Author SHA1 Message Date
mjacob
e3570cad29 Add in isp_target.c to be compiled for isp- it'd be nice if we could
do conditional file inclusing based on options.
2000-01-04 00:01:19 +00:00
mjacob
e158e0a64b These are platform independent functions for target mode support.
This is just a first pass at this and is likely to change a bit
over the next month.
2000-01-04 00:00:08 +00:00
mjacob
7e623070c5 These are platform independent definitions for target mode support-
code gratefully borrowed from Patrick Stirling who did a lot of the
grunt work on this years ago. There are also some beginnings of
swizzle macros in case we go to a big endian machine. This is just
a first pass at this and is likely to change a bit over the next
2000-01-03 23:58:41 +00:00
mjacob
96d9b5352f Make a static chain of isp softcs- gdb usage becomes a lot easier.
Add in a very large amount of target mode support code- this is just
a first pass at this. It's a difficult thing because some of the code
can be in platform independent areas (see isp_target.?) but a lot has
to be in platform dependent areas because of not only the tight coupling
of received commands/events and the specific OS subsystem but because
the platform independent code has (deliberately) no event/wait mechanisms.
2000-01-03 23:55:30 +00:00
mjacob
d61405bf5c Raise default FCP logintime to 60 seconds. Move the position
of where we could have seen the loop up at least once so it
makes sense. Change some stuff in ispscsicmd so we don't get
stuck there if the loop has never come up yet. Add in some
target mode support code.
2000-01-03 23:52:41 +00:00
mjacob
cca748fa0b Support target mode operations. This involves having some variant
dma mapping callback routines to select from as target mode
entries are handled a fair bit differently from normal initiator
mode entries.
2000-01-03 23:50:13 +00:00
asami
7a2f47ea9e Redirect stdout from mtree to /dev/null; we don't really need to know
the list of directories being created when we install a package.
2000-01-03 22:59:27 +00:00
mjacob
212576295e Role platform minor revision. Add in some target mode only
private structure definitions.
2000-01-03 22:15:16 +00:00
mjacob
d172e88f01 add isp_print_qentry inline function 2000-01-03 22:14:24 +00:00
mjacob
7d2fe4ce70 Roll minor revision number and add a more finalized list
of target mode related enums.
2000-01-03 22:13:40 +00:00
mjacob
f7cb011c4e Add missing target mode flag and fix the RQSTYPE_CTIO0
to be CTIO as it should be.
2000-01-03 22:12:53 +00:00
obrien
2f7dd75e7d This commit was generated by cvs2svn to compensate for changes in r55360,
which included commits to RCS files with non-trunk default branches.
2000-01-03 21:09:05 +00:00
obrien
ecc92f9630 Virgin import of a trimmed down GNU Grep 2.4. 2000-01-03 21:09:05 +00:00
obrien
1433f6260f This commit was generated by cvs2svn to compensate for changes in r55357,
which included commits to RCS files with non-trunk default branches.
2000-01-03 21:07:51 +00:00
obrien
1d6b1ad9fc Virgin import of a trimmed down GNU Grep 2.3. 2000-01-03 21:07:51 +00:00
newton
31efc17f95 Add options for COMPAT_SVR4 and DEBUG_SVR4 for completeness. 2000-01-03 20:37:15 +00:00
newton
cba476bfa3 Need to #include vm_zone.h to pick up inline definition of zfree() so that
NDFREE() macro from namei.h will be happy.
2000-01-03 20:34:39 +00:00
billf
a32f09445c Grammar: "be even number" -> "be an even number" 2000-01-03 20:18:04 +00:00
brian
66bb2bc917 Ensure that there's a bit of extra space in our buffer when it's
passed to libalias.  If there's not enough space, things like ftp
PORT commands start failing....

Reported by: Gianmarco Giovannelli <gmarco@giovannelli.it>
2000-01-03 20:09:23 +00:00
sos
234c89deef Fix link problem on ISA only systems.. 2000-01-03 20:01:18 +00:00
guido
0143592774 Use MAP_NOSYNC for vnodes without any links in their filesystem.
This is necessary for vmware: it does not use an anonymous mmap for
the memory of the virtual system. In stead it creates a temp file an
unlinks it. For a 50 MB file, this results in a ot of syncing
every 30 seconds.

Reviewed by:	Matthew Dillon <dillon@backplane.com>
2000-01-03 19:13:53 +00:00
archie
d956a56c1d Fix typos per PR 15649. Also did some rewording for clarity.
PR:		docs/15649
Submitted by:	Kazuo Horikawa <horikawa@jp.FreeBSD.org>
2000-01-03 18:36:42 +00:00
jkh
dcce198764 Print mac addresses in standard byte:byte format rather than
byte.byte.  This makes it consistent with our other utilities
like arp(8) and ifconfig(8).

Submitted by:	Paul Vixie <paul@vix.com>
2000-01-03 17:48:36 +00:00
obrien
f08b0b7a0b Stop my evil plot to stop the use of GNU info files (which I don't care for)
for people that don't have "NOINFO=yes" in /etc/make.conf.
[read: this still refered to contrib/egcs/]
2000-01-03 17:40:47 +00:00
shin
327ce9dc7f prevent kernel panic at suspend/resume.
confirmed by: sanpei, joe

PR: kern/15742
2000-01-03 17:29:16 +00:00
marcel
6ef2365c5e Make offsetof equivalent with <stddef.h>. This paves the way for
further enhancements/reorganisations.

Discussed with: bde
2000-01-03 16:49:39 +00:00
nyan
980426e730 Merge from the following changes.
sys/boot/i386/libi386/biosmem.c	Rev 1.4
	sys/boot/i386/libi386/time.c	Rev 1.3
	sys/boot/i386/loader/main.c	Rev 1.16
2000-01-03 15:43:52 +00:00
wpaul
cd6f97abb5 It appears that under certain circumstances that I still can't quite pin
down, the dc driver and receiver can fall out of sync with one another,
resulting in a condition where the chip continues to receive packets
but the driver never notices. Normally, the receive handler checks each
descriptor starting from the current producer index to see if the chip
has relinquished ownership, indicating that a packet has been received.
The driver hands the packet off to ether_input() and then prepares the
descriptor to receive another frame before moving on to the next
descriptor in the ring. But sometimes, the chip appears to skip a
descriptor. This leaves the driver testing the status word in a descriptor
that never gets updated. The driver still gets "RX done" interrupts but
never advances further into the RX ring, until the ring fills up and the
chip interrupts again to signal an error condition. Sometimes, the
driver will remain in this desynchronized state, resulting in spotty
performance until the interface is reset.

Fortunately, it's fairly simple to detect this condition: if we call
the rxeof routine but the number of received packets doesn't increase,
we suspect that there could be a problem. In this case, we call a new
routine called dc_rx_resync(), which scans ahead in the RX ring to see
if there's a frame waiting for us somewhere beyond that the driver thinks
is the current producer index. If it finds one, it bumps up the index
and calls the rxeof handler again to snarf up the packet and bring the
driver back in sync with the chip. (It may actually do this several times
in the event that there's more than one "hole" in the ring.)

So far the only card supported by if_dc which has exhibited this problem
is a LinkSys LNE100TX v2.0 (82c115 PNIC II), and it only seems to happen
on one particular system, however the fix is general enough and has low
enough overhead that we may as well apply it for all supported chipsets.
I also implemented the same fix for the 3Com xl driver, which is apparently
vulnerable to the same problem.

Problem originally noted and patch tested by: Matt Dillon
2000-01-03 15:28:47 +00:00
nyan
8aa0982899 Fixed to get the BIOS geometry. 2000-01-03 15:28:05 +00:00
phk
2183d2706a truss /usr/bin/su
login (or not if root)
	then exit the shell

truss will get stuct in tsleep

I dont know if this is correct, but it fixes the problem and
according to the commends in pioctl.h, PF_ISUGID is set when we
want to ignore UID changes.

The code is checking for when PF_ISUGID is not set and since it
never is set, we always ignore UID changes.

Submitted by:	Paul Saab <ps@yahoo-inc.com>
2000-01-03 14:26:47 +00:00
marcel
e006fcfc1b Fix typo.
Submitted by: Richard Wackerbarth <rkw@dataplex.net>
2000-01-03 12:16:18 +00:00
marcel
bd4c9a6fbe Remove -g compiler flag. 2000-01-03 12:01:30 +00:00
marcel
3cc24cef73 o Add build-tools target for maketabs although it doesn't seem to
be used. I therefore won't add it to Makefile.inc1.
o  Remove -g compilation flags.
2000-01-03 11:57:14 +00:00
obrien
7a71080a29 Egads! This still refered to contrib/egcs/ 2000-01-03 10:41:11 +00:00
sos
790e89b9ad Add support for VIA 82C596 controller
Better shared irq handeling for Promise & HPT366 controllers

Setup prober PIO mode timings on Promise & HPT366 controllers

Update Copyright headers to be Y2K compliant :)
2000-01-03 10:26:59 +00:00
billf
cfce6133f0 Update NeoMagic entries.
Obtained from:	NetBSD's pcidevs and billf's Dell laptop.
2000-01-03 10:04:01 +00:00
jkh
d0cc661b5d kernel space savings allow reactivation of NFS installs. 2000-01-03 10:00:09 +00:00
jkh
4dee90c63e nuke debugging symbols from kern.flp kernels. 2000-01-03 09:59:37 +00:00
mjacob
2301264d81 untangle some includes and clean up for compilation cleanliness. 2000-01-03 09:36:55 +00:00
mjacob
b91567888d Widen width of tag && initiator ids to u_int
(from u_int8_t) in ccb_accept_tio structure. This
matches usage elsewhere and also allows me to
overload the tag id with the RX_ID for fibre
channel target mode.
Reviewed by:	gibbs@freebsd.org
2000-01-03 08:54:51 +00:00
nyan
98c441d8d1 Update FreeBSD(98) copyright. 2000-01-03 07:17:01 +00:00
nyan
1b6d969dcc - Add commented out USB driver entries.
- Reorder network interfaces.
2000-01-03 07:12:56 +00:00
imp
2890aebd34 Connect interrupts and start processing them. We panic on card removal
now, but we're getting interrupts!
o Add pcic_suspend/pcic_resume so we can detach our children on suspention
  and fix the state of the pcic on resume.
o Remove some unused parts of softc.
o Centralize resource activation/deactivation for pcic bridge chip in
  the stylistic pcic_activate/pcic_deactivate.
o Add bus_print_child method so we can see the pccard attachment.
o Add pcic_identify in an attempt to make it possible to automatically id
  the pcic devices.  This works great, but we cannot divine the irq to use
  from this method, nor the memory hole.  For the moment, KLUDGE irq to be
  10 and memory hold to be 0xd0000.
o Loose the pnp probe stuff.  This may be a big mistake, but it is easy
  enough to add back later.  I did this so the identify routines can do their
  thing unmolested by pnp information.  The whole identify thing may be a bad
  idea to be ripped out later.
o change return type of pcic_intr to void, make it static and ripple
  this through the code.
o Add explicit call to bus_generic_attach at the end of pcic_attach to
  get any children probed/attached.
o add some comments about future directions/questionable things being
  done at different layers, etc.
2000-01-03 06:45:16 +00:00
kato
b85c91f294 Synced with sys/i386/i386/userconfig.c rev 1.165. 2000-01-03 05:37:01 +00:00
kato
3b1444ed32 Synced with sys/i386/conf/GENERIC rev 1.220. 2000-01-03 05:35:56 +00:00
kato
ec5db513e5 Synced with sys/i386/conf/Makefile.i386 rev 1.170. 2000-01-03 05:34:48 +00:00
tanimura
152f08d59e Do not start/stop DMA transfer if it is already started/stopped. 2000-01-03 05:26:12 +00:00
tanimura
a6bbb5bec2 - Handle an interrupt for csa primarily in the bridge driver,
then invoke the children. As the value of HISR can be read
  only once, pass the HISR to the children via struct
  csa_bridgeinfo, stored in the ivars of them.
- Clear the contents of serial FIFO upon stopping the DMA for
  playing. This may eliminate buzz on playing. Experimental.
2000-01-03 02:51:16 +00:00
obrien
f8fd72ad7e Didn't get these PREFIX specifiers removed with Makefile.inc rev 1.48.
Submitted by:	marcel
2000-01-02 22:57:34 +00:00
obrien
5cd16c0f26 The issue fixed in revision 1.88 was raised by
Gerard Roudier <groudier@club-internet.fr>
2000-01-02 21:36:22 +00:00