Commit Graph

49464 Commits

Author SHA1 Message Date
roberto
1eff30574d Bring the ancontrol buffer oflows fixes here too.
Submitted by:	Aaron Campbell <aaron@openbsd.org>
2000-06-18 23:45:17 +00:00
roberto
d10dd89ac1 - Add suser check before SIOCSAIRONET.
- Fix a splimp() w/o splx bug in the ioctl routine while I'm here.

Submitted by:	Aaron Campbell <aaron@openbsd.org>
2000-06-18 23:40:09 +00:00
roberto
eed4512ead Fix potential buffer overflows (even if ancontrol is not setuid).
Submitted by:	Aaron Campbell <aaron@cs.dal.ca> from OpenBSD
2000-06-18 23:10:20 +00:00
joe
90fe0cb3dd Don't assume that the output of strftime for "%c" ("national
representation of time and date") won't change in time.  Instead
of hard coding the locations of the time elements and hoping that
they don't move use strftime to generate the desired formats in
the first place.

PR:	bin/7826
2000-06-18 22:18:04 +00:00
mckusick
f29217b823 When running with quotas enabled on a filesystem using soft updates,
the system would panic when a user's inode quota was exceeded (see
PR 18959 for details). This fixes that problem.

PR:		18959
Submitted by:	Jason Godsey <jason@unixguy.fidalgo.net>
2000-06-18 22:14:28 +00:00
mckusick
eb0270eca0 Some additional performance improvements. When freeing an inode
check to see if it has been committed to disk. If it has never
been written, it can be freed immediately. For short lived files
this change allows the same inode to be reused repeatedly.
Similarly, when upgrading a fragment to a larger size, if it
has never been claimed by an inode on disk, it too can be freed
immediately making it available for reuse often in the next slowly
growing block of the same file.
2000-06-18 22:05:57 +00:00
dmlb
3fa132bc83 Remove RECERR from RAY_DEBUG 2000-06-18 21:41:24 +00:00
dmlb
bad34db007 General tidy up and plough through TODO list.
Rewrote intro at top of file to reflect my better understanding of how it
the memory mapping works.

Clear the DONE list and move some thoughts into the TODO list.

Remove RECERR from RAY_DEBUG

Start to use a desired network parameter structure, only used in download
code as I've realised that there are some problems with the idea.

Break up ray_rx, and move the data packet handler into a seperate function. This meant some knock on changes in ray_rx_mgt/ray_rx_ctl to do with
mbuf freeing.

Remove some debug code/XXX comments that are out of date.
2000-06-18 21:40:46 +00:00
obrien
0b2b801b53 Upgrade instructions for the sourceware_binutils-2_10-branch_anoncvs_20000512
Binutils import.
2000-06-18 21:32:11 +00:00
obrien
5f561e8bd0 List of files to delete from the Sourceware Binutils' CVS 2_10-branch
on 12-May-2000.
2000-06-18 21:17:40 +00:00
obrien
a85ad12325 List of distfile contents to delete using rm' and find -delete'.
Simular to the FREEBSD-Xlist used with `tar -X ... -xf'.
This file is typically used when one starts with the Binutils anoncvs repo
rather than a release tarball.
2000-06-18 21:15:52 +00:00
dmlb
44ae0d1a03 Add a desired network parameter structure to runq entries. 2000-06-18 21:10:58 +00:00
roberto
6d190fc32d Fix building with -DDEBUG. 2000-06-18 20:22:11 +00:00
joe
1172202a67 Remove the setflags/getflags routines. Their functionality has
been replaced with the library calls fflagstostr and strtofflags.
2000-06-18 20:10:41 +00:00
phk
e509cfe415 /152x/s/sound/SCSI/ 2000-06-18 15:01:22 +00:00
dg
a532bd6681 Added support for the i82559ER (10/100Mbps NIC for embedded applications).
Product device ID provided by:	Les Biffle <les@ns3.safety.net>
2000-06-18 10:26:09 +00:00
brian
e9f7666be9 Fix a printf-style format error 2000-06-18 10:07:53 +00:00
alfred
aa49a5b0c1 backout accept optimizations.
Requested by: jmg, dcs, jdp, nate
2000-06-18 08:49:13 +00:00
gj
46b83ce4fd MF4: add support for the Am79C973. 2000-06-18 08:12:54 +00:00
mjacob
3138bca767 Remove all but ISP_TARGET_MODE options for isp and ispfw pseudo device. 2000-06-18 06:59:13 +00:00
ps
1972caa51a Allow newer Linksys 10/100 PCMCIA cards to work.
Reviewed by:	imp
2000-06-18 05:50:16 +00:00
mjacob
df08e73da5 Add ispfw as an optional 'device' (for static linking) 2000-06-18 05:35:07 +00:00
imp
be195d7351 Matching commits to pccard for last pcic changes. We now at least to
probe/attach.  This is a checkpoint.
2000-06-18 05:28:59 +00:00
imp
2059e71225 Almost make loading work. This is a checkpoint. With these change we
can almost kldload this.  More work is ncessary, but I wanted to
checkpoint this now.
2000-06-18 05:25:30 +00:00
imp
c6523700be Add oldcard, pccard, pcic and sn modules to the build. 2000-06-18 05:20:26 +00:00
mjacob
68c129c6d3 Clean up firmware load issues and remove darn near all config options.
Force alphas to prefer mem mapping as the default.

Basically, we have a pointer to a function which we can call which will
return us a pointer to firmware for the card we have. We call this function
(if it's non-NULL) with the address of our mdvec f/w pointer.

The way this works is that if ispfw (as a module or a static) is loaded,
it initializes the pointer in isp_pci, so we can call into to it to fetch
a pointer to a f/w set.

If ispfw is MOD_UNLOADed, it's retained a pointer to our mdvec f/w pointers,
which then get zeroed out so we don't have any references to data that's
now gone from kernel memory. Removing the f/w saves ~360KBytes.

Alas, there is no autounload mechanism that works for is here.
2000-06-18 05:18:55 +00:00
mjacob
840be0d3aa Remove all but one (ISP_TARGET_MODE) option for isp. 2000-06-18 05:15:01 +00:00
imp
4eda75234d Preliminary commit of oldcard module. This might not work, but will.
This should allow one to load oldcard or newcard for testing.  Please
let me know if this doesn't work.  Don't load this and either of pcic
or pccard.  I've not tried it, but I suspect bad things will happen.
2000-06-18 05:08:57 +00:00
mjacob
f0a57d45f5 add ispfw module 2000-06-18 05:08:36 +00:00
mjacob
07ba202eca add if_wx module 2000-06-18 05:08:28 +00:00
mjacob
7b05986872 Add if_wx && ispfw modules 2000-06-18 05:08:11 +00:00
imp
7344aa57ee Add new functions. Also add comments to existing functions. These
are needed for the pccard changes I've just committed.
2000-06-18 05:02:09 +00:00
mjacob
c1873fd44e Removing this bulky one large f/w file. This f/w is now in dev/ispfw. 2000-06-18 04:59:47 +00:00
imp
c274f293ec o Implement some compatibility functions for NEWCARD compat. This is
incomplete, but will eventually allow the same drivers to function
  with both oldcard and newcard.
o Remove include of opt_bus.h.  It isn't needed and gets in the way of
  module building.
2000-06-18 04:59:39 +00:00
mjacob
da9064f4b5 Once we have firmware running (if isp_reset) and this is the first time
through, establish what our LUN width is. Unfortunately, we can't ask
the f/w. If we loaded the f/w, we'll now assume we have expanded LUNs
(SCCLUN for fibre channel, just plain 32 LUN for SCSI). If we didn't
load firmware, assume 8 LUNs for SCSI and 1 LUN for Fibre Channel. We
have to assume only one LUN for Fibre Channel because the LUN setting
in Request Queue entries is in different places whether we have SCCLUN
firmware or not, so the only LUN guaranteed to work for both is LUN 0.

Clean up the rest of isp.c so that ISP2100_SCCLUN defines aren't used-
instead use run time determinants based upon isp->isp_maxluns.

After starting firmware, delay 500us to give it a chance to get rolling.

Fix the interrupt service routine to check for both isr && sema being zero
before thinking this was a spurious interrupt.  Following the manuals,
allow for both Mailbox as well as Queue Reponse type interrupts for regular
SCSI.
2000-06-18 04:56:17 +00:00
mjacob
965d18979b Remove all ISP2100_SCCLUN define protected code and replace it with
runtime checks.
2000-06-18 04:50:26 +00:00
mjacob
59cc946a3c Remove all ISP2100_SCCLUN define based code and replace it with runtime
comparisons against the tag isp_maxluns- if > 16, we're SCCLUN based.

On initial regular SCSI startup, disable auto-disconnect.
2000-06-18 04:48:28 +00:00
mjacob
12ff4fc926 Roll platform minor number. Force definition of SCSI_ISP_FABRIC
(we always support fabric now). Remove SCCLUN definition (we always
support SCCLUN now, if we load the f/w). Add typedef definition of an
external firmware fetch function.
2000-06-18 04:47:12 +00:00
mjacob
22e4030479 Roll core minor version. Set ISP_MAX_LUNS to be off of new isp_maxluns
tag in softc.
2000-06-18 04:45:51 +00:00
mjacob
eb96b3b42b add "disable autodisconnect" flags 2000-06-18 04:44:41 +00:00
imp
3ed8742dec Make pcic compile again with newcard 2000-06-18 04:44:40 +00:00
mjacob
5911977db1 cleanup i_int_X vs. uint_X definitions 2000-06-18 04:43:55 +00:00
imp
9f42be4bb5 Build sn as a module 2000-06-18 04:43:29 +00:00
mjacob
19fbfd9bfa add MBOX_GET_RESOURCE_COUNT command 2000-06-18 04:41:14 +00:00
mjacob
455340c4c8 Add in (separate files for different board's firmware) new files for ispfw
loadable module.
2000-06-18 04:37:44 +00:00
mjacob
9ea670a332 Fix breakage where we never were attaching SES devices because inq_len
was not being set > 0.
2000-06-18 04:19:08 +00:00
davidn
9e5a20b332 Fix obvious braino in assignment statement. usermod -g should work again.
PR:		17877
Submitted by:	pius@zyan.com
2000-06-18 02:48:56 +00:00
billf
f07e3609bd Reorder the "prob" section in the output of list/show so it can be copy/pasted
into add without problems.

The previous commit had the other half of this original patch which handled
tcpflags/tcpflgs confusion in output/input.
2000-06-18 02:48:19 +00:00
davidn
f94831dd05 Be a little more strict about handling command line args. This allows user and
group names like 'help' 'mod' 'user' 'group' etc. to work correctly without
requiring the -n style invocation.
PR:		misc/17069
2000-06-18 02:39:17 +00:00
davidn
3b8f4fc741 Fix a long-standing bug in the rename case previously masked by another bug
just fixed in .db file updating.
2000-06-18 02:18:15 +00:00