Commit Graph

9851 Commits

Author SHA1 Message Date
joerg
303a291a13 Be gentle and allow both magic's (the own one and the other side's
one) as a valid answer to an echo request.  This makes the log less
noisy when connecting to Trumpet Winsock or FreeBSD 2.0.5's pppd. :)

Submitted by:	melvin@zytek.com (Stephen Melvin)
1995-09-09 13:23:53 +00:00
joerg
9cb8de8984 Avoid the "calculated sectors per cylinder disagrees with disklabel"
warning for the default case where the user hasn't specified either -t
or -u on the command line.  It's been confusing our users.
1995-09-09 13:03:09 +00:00
julian
cc1647536e More hacking on devfs..
I can  now do an mv on devices and directories in devfs
This was the hardest part.. link, delete and symlink will follow in
short order.
This code works but has definitly got vnode locking problems
I am electing to get the structure of it working before
spending too much time on the vnode confusion
so it's probably not reliable at the moment..
never-the less it looks good.
 :)
1995-09-09 12:51:56 +00:00
sos
65e06e787b Patch to the atapi driver, by Serge V.Vakulenko, minor changes
by me...

Original message:

This patch upgrades the ATAPI CD-ROM driver to version 1.3.

It has three bugs fixed:

1) The `controller not ready' message at startup and later.
   It was caused by staled media change bit.

2) Incorrect shuffling of model string for some drives (NEC, Mitsumi).

3) Handling of drives which report itself as been of direct-access type,
   instead of CD-ROM type.

There is one known bug which is not fixed yet -- probing
in absense of IDE disks. A work-around exists though (thanks Steve!).
If you have no IDE disks attached, then remove them from the kernel
config file to make the CD-ROM attach correctly.
Unfortunately, there is no way to disable them from the kernel
interactive config mode.

Reviewed by:	sos (Soren Schmidt)
Submitted by:	vak@gw.cronyx.msk.su (Serge V.Vakulenko)
1995-09-09 11:41:04 +00:00
julian
c5435fc484 Obtained from:4.4lite2
fix a change where a shortcut resulted in teh wrong answer..

e.g.
touch a
touch b
mv a b
resulted in b being removed and a being moved to b

in the shortcut..
touch a
ln a b
mv a b
the wrong link was removed..
leaving a instead of b, giving a different result to when
both files were separate.
1995-09-09 01:43:49 +00:00
jkh
b69b87b6ab Change the errx(0,...) to errx(1,...)
Submitted by:	Mike Murphy <mrm@alpharel.com>
1995-09-08 20:33:21 +00:00
bde
dd13e079b0 Actually, 97 out of 304 devsw functions had benignly mismatched types. 1995-09-08 19:57:13 +00:00
jfieber
1c104498e6 Add target directories for the FAQ and the Handbook. 1995-09-08 19:46:31 +00:00
jfieber
4d3a081e07 Add a makefile. 1995-09-08 19:40:04 +00:00
se
596d218908 Perl script to convert NCR script address into label+offset.
Useful to find the failed NCR instruction ...
1995-09-08 19:37:11 +00:00
jfieber
1ad87ec573 Add a makefile. 1995-09-08 19:34:26 +00:00
se
2464098187 Don't use vtophys() for constant addresses, cache the translations in
the NCR control block (ncb) and command control block (ccb) instead.
1995-09-08 19:30:11 +00:00
jfieber
2da20250e5 Add bsd.sgml.mk 1995-09-08 19:27:48 +00:00
jfieber
e11b0d6e31 A makefile for sgml source files.
Reviewed by:	Rod Grimes rgrimes@gndrsh.aac.dev.com
1995-09-08 19:23:19 +00:00
bde
af0f485caf d_stop functions always returned void. Fix the declaration of d_stop_t
to match.
1995-09-08 19:18:02 +00:00
julian
c178bd7760 Added devfs nodes for other devices.. (didn't read the docs correctly) 1995-09-08 19:01:28 +00:00
julian
1dd1e236e1 add RCS Id strings so we know what we have 1995-09-08 18:42:46 +00:00
julian
ffe85e45a1 added ID strings so we know what version we have... 1995-09-08 18:30:34 +00:00
dg
286a07202d Slight optimization for the standard case of rotdelay=0. 1995-09-08 17:16:32 +00:00
bde
8eacebadd3 Declare `geomtab' as static. It was bogusly shared between the asc and
the gsc drivers.
1995-09-08 16:38:52 +00:00
bde
3bd23a846a 3 out of 5 new devsw functions had benign type mismatches. 1995-09-08 16:27:55 +00:00
se
2aa98cf3f4 Applied patches that make the driver compile on NetBSD again.
They shouldn't affect FreeBSD, since they are within #ifdef NETBSD
directives.
Changed the HAD_ERROR return code into COMPLETE according to a comment
in "/sys/scsi/scsiconf.h"

Submitted by:	Andreas Wrede <andreas@planix.com>
1995-09-08 14:29:48 +00:00
dg
3367be73d6 Fixed error in maxcontig calculation that caused it to default to "1". 1995-09-08 13:52:55 +00:00
dg
9a8df76720 Fix my copyright. 1995-09-08 13:24:33 +00:00
bde
c788cf6955 Fix benign type mismatches in devsw functions. 82 out of 299 devsw
functions were wrong.
1995-09-08 11:09:15 +00:00
asami
45b94737d7 Remove machine name from Dave Chapeskie's e-mail address. 1995-09-08 10:14:52 +00:00
julian
fb596d0eec added the dev_link external registration
used to produce a second link to an already exixting device
e.g.
dev_add /disks/sd0
dev_link /scsi/bus0/targ0/lun0 to /disks/sd0
(not real syntax)
1995-09-08 04:46:14 +00:00
julian
ea230c3ed7 DAng! forgot this as well
cdevsw entry (71) for the asc scanner driver
1995-09-08 03:37:51 +00:00
julian
813e4f559a Submitted by: Luigi Rizzo
Obtained from: Luigi and gunther
yeah I forgot this one....
1995-09-08 03:22:00 +00:00
julian
a89c9780b6 Submitted by: Luigi Rizzo (luigi@iet.unipi.it)
Obtained from: Luigi Rizzo and Gunther Schadow
config support for the asc driver and an example in LINT
1995-09-08 03:20:10 +00:00
dg
d5ec2f5b24 1) Really print 'real' memory - use Maxmem, not physmem.
2) Output K bytes instead of pages as this means something to more people.
3) Moved printf of avail memory to after vm_bounce_init() call so that
   bounce buffers are included in the figure.
4) Killed initcpu(); it's an unused vestige from the VAX.
1995-09-08 03:19:47 +00:00
julian
d595cdbd96 Submitted by: Luigi Rizzo (luigi@iet.unipi.it)
Obtained from: Luigi Rizzo and Gunther Schadow
Kernel support for the asc scanner driver
1995-09-08 03:14:00 +00:00
julian
96b93bb087 Submitted by: -Luigi Rizzo (luigi@iet.unipi.it)
Obtained from:  Luigi Rizzo and Gunther Schadow
man page for the asc scanner driver
1995-09-08 03:10:51 +00:00
julian
34b33fa5f4 Submitted by: Luigi Rizzo (luigi@iet.unipi.it)
Obtained from:  Gunther Schadow  and Luigi Rizzo
control program for Trust AmiScan BW (GI1904 chipset)

ASC - A device driver for a handy scanner

This is a device driver for GI1904-based hand scanners, e.g. the Trust
Amiscan Grey and possibly others. The driver is based on the "gsc"
driver and, partly, on a  Linux driver.

The driver has a working select().

-Luigi Rizzo (luigi@iet.unipi.it)
1995-09-08 03:08:01 +00:00
jkh
9b9a8f00bd Render devices inactive properly.
Protect against name overflow.
Submitted by:	Michael Smith <msmith@atrad.adelaide.edu.au>
1995-09-07 22:19:45 +00:00
markm
fc676919fa Major cleanup of eBones code:
- Get all functions prototyped or at least defined before use.
- Make code compile (Mostly) clean with -Wall set
- Start to reduce the degree to which DES aka libdes is built in.
- get all functions to the same uniform standard of definition:
int
foo(a, b)
int a;
int *b;
{
   :
}
- fix numerous bugs exposed by above processes.

Note - this replaces the previous work which used an unpopular function
 definition style.
1995-09-07 21:39:00 +00:00
dg
1763f1f101 Minor cleanup and (very) small micro optimization to Xsyscall (and the
linux one)..
1995-09-07 21:36:17 +00:00
dg
0558f0f750 Killed unnecessary \r. 1995-09-07 21:11:34 +00:00
se
43f4308156 Add support for 16 targets on WIDE SCSI bus.
This seems to work fine on my 53c810, but really should be tested on
a 53c825 with at least one target set to an ID >= 8.
The script is now copied to memory mapped using vm_page_alloc_contig(),
since it has to be physically contigous. This must be changed, if the
driver is converted into a loadable module !
Two of the probe messages are suppressed, unless "bootverbose" is set.
1995-09-07 20:53:40 +00:00
se
8489e8b007 Remove support for PCI bridge classes, since this
dealt with by code in pci.c now.
1995-09-07 15:40:51 +00:00
se
c71d68b3dc Make mapping messages depend on bootverbose flag.
Add PCI subclass to unknown device message.
1995-09-07 15:20:53 +00:00
se
1907504be0 Add description of Intel 82425EX PCI system controller chip (Aries ?).
Submitted by:	Danny J. Zerkel <dzerkel@feephi.phofarm.com>
1995-09-07 14:17:46 +00:00
swallace
e3d17de2aa Make files get the NWDC definition from "wdc.h" instead of "wd.h".
This way, if using wd and/or wcd devices, the wdc controller code
will get compiled.
1995-09-07 08:20:18 +00:00
swallace
82e4d3a565 Change atapi.c to depend on the ATAPI option.
Add wd.c entry based on the wdc controller.
This will enable compilation of wcd device without wd.
1995-09-07 08:17:19 +00:00
julian
d675f6c8cd brought the README in to line with present code (still a bit cryptic) 1995-09-07 06:16:28 +00:00
julian
92792fd381 more cleanups.. lots of code shuffled around too
routines renamed.. more simplifications,
some warnings squashed.
1995-09-07 06:01:36 +00:00
dyson
2526ef2f58 Correct a case in the ffs_getpages where a page is not found in
a sparse file and the page is zeroed but not set valid, clean.
1995-09-07 04:39:09 +00:00
julian
de8f4e9245 Suggested by: :) bde of course
added prototypes for every function and
put (void *) as the args to the vop array definitions.

can now compile with:
CWARNFLAGS?=    -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit \
                -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes \
                -Winline -Wstrict-prototypes
and only get errors for files external to this module:
namely
./vnode_if.h
../../sys/vnode.h
../../sys/buf.h
../../miscfs/specfs/specdev.h
1995-09-06 23:15:55 +00:00
pst
f1747f6949 Recode mask logic to use inet_ntoa() so host routes are valid. 1995-09-06 16:33:40 +00:00
wpaul
2a165a1294 Put back the "real memory =" printf() that vanished when the code to
handle holes in memory was added.
1995-09-06 16:13:31 +00:00