Commit Graph

19356 Commits

Author SHA1 Message Date
mycroft 0609135a66 Add explicit return types. 1996-04-10 19:03:46 +00:00
gwr f6762bf5cf Retry calls to the PROM strategy function. Fixes PR# 2145
Call prom_iopen only on the first disk_open call, otherwise
only the first file open attempt ever works. Fixes PR# 1726
Both from der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
1996-04-10 18:31:14 +00:00
jonathan 368824e74c Fixes for -Wall -Wmissing-prototypes:
Add prototypes to (most of) src/sys/arch/pmax/pmax. (The  un-protytyped
   parts still have pending merges with the Pica port.)
   Fix splx() glitches in pmax/clock.c.
   Delete old cpu/fpu identification from pmax/autoconf.c, use r4400/r4600/idt
   aware code from Pica port, now in mips/mips/mips_machdep.c.
   Delete unused multi-CPU autoconfiguration code; NetBSD/pmax does not
   support decsystem 5800s anyway.
1996-04-10 17:38:18 +00:00
jonathan 66e92bbfaf fixes for -Wall -Wmissing-prototypes:
prototype the function-pointer member of the pmax struct pdma.
1996-04-10 17:38:04 +00:00
jonathan 39917746c1 fixes for -Wall -Wmissing-prototypes:
Update the pmax SCSI drivers (rz and tz) to  use <machine/conf.h>.
    Fix the driver entry points to have the correct signatures -- add
    "ioflag" args to read() and write(), add "struct proc *p" arg to
     open and close.
    Stop using __BDEVSW_DUMP_OLD_TYPE, and update the rzdump and tzdump
    entry points to have the correct, MI signatures.

    NB: this is just syntactic sugar: both the caller and the dump entry
    points ignore the additional args, and do exactly what they did before.
    This must be fixed before using dump entry points in non-pmax drivers
    (e.g., the MI scsi code).
1996-04-10 16:33:44 +00:00
jonathan beaeb261bf fixes for -Wall -Wmissing-prototypes:
add prototyped declarations for the callbacks which add old-style
(4.4bsd/pmax conf.old) SCSI controllers, and which configure SCSI slaves
on such controllers.

rewriting the SII driver to work with the MI scsi would be a better option,
if time were available, and the MI scsi code supported SCSI controllers with
an 8k upper bound on transfers.
1996-04-10 16:27:38 +00:00
jonathan 68a943bdf6 Create pmax-specific <machine/conf.h>, with prototyped declarations
for the cdevsw and bdevsw entries into pmax device drivers.
1996-04-10 16:17:23 +00:00
mycroft a86feda616 Remove broken hack that attempted to do the same as the previous. 1996-04-10 05:47:19 +00:00
mycroft 198877f9dc Fix COMPILE.s so the output file is named correctly. 1996-04-10 05:44:49 +00:00
cgd cd9ef2be9c make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  define
eisa_chipset_tag_t and eisa_intr_handle_t types, and the following
functions:
        eisa_attach_hook()
        eisa_maxslots()
        eisa_intr_map()
        eisa_intr_string()
        eisa_intr_establish()
        eisa_intr_disestablish()
to do the right things for the i386.
1996-04-09 23:00:25 +00:00
cgd 4444d2866e there's now a eisa_machdep.c which must be included when including
EISA support.
1996-04-09 22:59:03 +00:00
cgd 3ccd8b454e it's now safe to include both isavar.h and eisavar.h. Also, pass
an appropriate cookie (NULL) to the EISA attach code for use with the
EISA functions.
1996-04-09 22:58:29 +00:00
cgd 4889b6bcc2 use the new interfaces for interrupt attachment, etc. 1996-04-09 22:47:00 +00:00
cgd d645bb042d make the EISA code look a bit more like the PCI code, in the way
the bus is configured, interrupts are handled, etc.  machine-dependent
header (machine/eisa/eisa_machdep.h) defines eisa_chipset_tag_t and
eisa_intr_handle_t types, and the following functions:
	eisa_attach_hook()
	eisa_maxslots()
	eisa_intr_map()
	eisa_intr_string()
	eisa_intr_establish()
	eisa_intr_disestablish()
Don't define the interrupt establish/disestablish functions directly
in terms of the ISA functions any more (on some wacked out systems,
there can be a difference).
1996-04-09 22:46:11 +00:00
jonathan 8a1933076a Fixes for -Wall -Wmissing-prototypes:
Replace impliclty-sized types (u_long, u_short) used in
	declarations of byteorder functions witho explicitly sized types
	(u_int32_t, u_int16_t).

Avoids problems with using ntohl(foo) as (eg) an argument to printf().
1996-04-09 20:56:45 +00:00
cgd c40712b45d fix extra spaces at ends of lines, etc. (all spacing nits.) 1996-04-09 20:55:22 +00:00
jonathan 08a45c0a18 Fixes for -Wall -Wmissing-prototypes:
Do not define __BDEVSW_DUMP_OLD_TYPE, as it breaks prototyping
	of device dump functions, and should be port-dependent in any case.
The pmax 4.4bsd/pmax-derived drivers are being fixed, and the pica port
uses the MI scsi drivers already.
1996-04-09 20:54:08 +00:00
jonathan 57fd0e266b Fixes for -Wall -Wmissing-prototypes:
include <sys/systm.h> to get a prototyped declaration of printf().
	include <machine/autoconf.h> for port-specific typedefs.
	Remove unused variables.
1996-04-09 20:50:06 +00:00
cgd 8b65ecffc3 time seconds/usec sent over the net are signed. 1996-04-09 20:40:32 +00:00
cgd f85f062d77 spaces vs. tabs 1996-04-09 20:07:16 +00:00
ragge 62b2afac2d Removed a function that were #ifdef vax'ed. 1996-04-09 17:21:56 +00:00
phil b3a1b0b9b2 Add except to the pc532 make. 1996-04-09 16:54:18 +00:00
phil 07df601bbf Add missing ~. (PR 2311) 1996-04-09 16:33:32 +00:00
pk 4c26e95dde Initialize relevant elements of the `romaux' structure in romprop(). 1996-04-09 15:24:00 +00:00
pk 696daec742 Make this compile if LEDEBUG id defined. 1996-04-09 15:21:59 +00:00
cgd 03ba0d2233 if a variable is a u_int32_t, it may never compare equally to -1L on
some machines (because on those (64-bit) machines, -1L is
0xffffffffffffffff, but a u_int32_t will never be sign extended).
Compare to 0xffffffff; that's what was really meant, anyway.
1996-04-09 05:29:25 +00:00
cgd c32e26146f recent changes cause this to require <string.h> for proper prototyping.
Include it.
1996-04-09 05:20:30 +00:00
thorpej 43411d2e96 Convert to use <machine/bus.h>. 1996-04-09 00:46:15 +00:00
jtc 68a63eb204 Use errx() instead of err() to report failure of kvm_getprocs() call,
as errno doesn't have a meaningful value in this case.  Reported by
Mike Grupenhoff <kashmir@umiacs.umd.edu> in PR #2289.
1996-04-08 21:32:05 +00:00
jtc c4bd7796ba Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:21:54 +00:00
jtc 4a437cf6dd Sort LIBFOO definitions and add LIBY; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:19:26 +00:00
jtc 54e0c861ec Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:03:06 +00:00
jtc 20779dadd6 Add proper punctuation; Reported by Mike Long <mike.long@analog.com> in PR #2302. 1996-04-08 20:56:38 +00:00
pk 1a1a8ba8c9 Undo unintended change in previous commit: _mcount is static. 1996-04-08 20:55:36 +00:00
jtc 58fae9f6e7 Add proper punctuation; Reported by Mike Long <mike.long@analog.com> in PR #2300. 1996-04-08 20:55:17 +00:00
jtc 10f36ab344 fix typo; Reported by David Leonard <s160828@student.uq.edu.au> in PR #2307. 1996-04-08 20:41:25 +00:00
jonathan 282688d407 Fixes for -Wall -Wmissing-prototypes:
remove unused variable "xfer" from the copy{to,from}buf_gap2() functions.
1996-04-08 20:11:46 +00:00
jonathan 45b229da22 fixes for -Wall -Wmissing-prototypes:
prototype the forward declaration of lewritereg().
1996-04-08 20:09:56 +00:00
jonathan 8ae2ddf4ad fixes for -Wall -Wmissing-prototypes:
add "return (0);" to cnstop()'s emtpy body.
1996-04-08 19:57:30 +00:00
jonathan 24a8c21b53 fixes for -Wall -Wmissing-prototypes:
include <sys/systm.h> to get a prototyped declaration of printf().
include <netinet/in.h> to get a prototyped declaration of in_cksum().
1996-04-08 19:55:37 +00:00
jtc 7423e425f2 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.

This change is not strictly necessary, as these files are only used to
test yacc.  But I could not think of any compelling reason not to make
these change when everything else in the source tree was updated.
1996-04-08 19:10:47 +00:00
jtc 93153c7796 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
1996-04-08 19:03:11 +00:00
mycroft 740637ad71 If we dequeue a packet due to excessive collisions, make sure we check
to see if the queue length has dropped to 0.
1996-04-08 19:02:19 +00:00
jtc cf957d3a75 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.
1996-04-08 18:57:49 +00:00
ragge a24af7a7c2 Added prototypes to everything. Made all files compile with -Wall. 1996-04-08 18:32:26 +00:00
ragge 86c328d230 Drivers for DZ11/DZV11/DZQ11 serial cards.
Written (mostly) by Ken Wellsch.
1996-04-08 17:22:20 +00:00
phil d9f99fc936 Removing a "volatile" put there for the ns32k which is no longer needed. 1996-04-08 15:43:41 +00:00
briggs da3dabc052 Add PPP_BSDCOMP and PPP_DEFLATE options. 1996-04-08 14:17:28 +00:00
phil d012169278 Fix problems with which and where includes are installed. 1996-04-08 02:45:55 +00:00
jonathan 7822ce0c03 ANSIfy:
Add prototypes and fix printf format strings to compile cleanly with
cc -Wall -Wmissing-prototypes.
1996-04-08 00:57:37 +00:00