Commit Graph

185 Commits

Author SHA1 Message Date
cgd
71ad30d0e9 (1) set scsi_link channel to either the appropriate channel (if a
multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a
    single-channel driver.
(2) use scsiprint() rather than a locally-defined autoconfig print
    function, and kill any locally-defined print function.
1996-08-28 18:59:15 +00:00
cgd
2a73ef60b7 change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).
1996-08-27 21:53:46 +00:00
thorpej
2d88fe9293 Old-style disk instrumentation is long gone, buster! 1996-08-26 06:47:42 +00:00
thorpej
3eaf7130d9 Update for structure member name changes made in the MI code. 1996-08-26 06:39:03 +00:00
mycroft
558d72128e Put into . Remove hooks for `config-dependent' and
`device-driver' flags.
1996-08-12 00:51:24 +00:00
mycroft
88578318ca Remove the only use of `config-dependent', as it isn't actually needed. 1996-08-12 00:16:25 +00:00
mycroft
cf67f29afe * Add a HOSTED_C_C variable, which strips -p', -pg', and
`-nostdinc', and use it when building genassym.
* Use `-nostdinc' just to be sure we're self-contained.
1996-08-10 06:07:57 +00:00
mycroft
f94052ed3a * Define CWARNFLAGS and MKDEP in some moderately consistent fashion.
* Make S expand to an absolute path at compile time.
* Use `-S' rather than `-x' to remove debugging symbols.
* Garbage collect unused variables.
* Reverse a handful of port-specific changes that do not correspond to
the common build model and are not needed.
1996-08-10 05:29:24 +00:00
mrg
5abbf990f3 Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.
1996-08-09 10:30:23 +00:00
chuck
e35aa10df8 switch to generic boot 1996-05-29 05:06:21 +00:00
chuck
24ac64b87b fix generic boot code 1996-05-29 05:04:41 +00:00
chuck
9f36687189 borrow part of the sparc port's dk_establish to fix generic boot 1996-05-29 05:03:50 +00:00
chuck
946f08aa87 note if we are the boot device (for fixing generic boot) 1996-05-29 04:29:46 +00:00
chuck
5258929681 detect if we are the boot device (to fix generic kernel) 1996-05-29 04:27:11 +00:00
chuck
ac46d3b779 add to fix boot generic problem 1996-05-29 02:32:21 +00:00
chuck
e4528e0647 save boot device info from bug/bootblocks 1996-05-29 02:28:30 +00:00
chuck
6645fec14e fix off by one error 1996-05-29 01:52:03 +00:00
chuck
f057fa41d5 leave room for partition 1996-05-28 19:07:32 +00:00
chuck
cd4d6d851b new kernel call args. 1996-05-28 18:14:24 +00:00
chuck
e0923c774b bug fix: pass address of le to netboot 1996-05-28 18:03:38 +00:00
chuck
9a628842cf fix bootst (sync with sun3 tapeboot) 1996-05-28 15:23:53 +00:00
chuck
09e22de574 delete non-working bootst 1996-05-28 15:23:06 +00:00
chuck
da573626b4 new bootst (based on sun3 tapeboot) 1996-05-28 15:22:41 +00:00
chuck
9fe4f7c83a kill "options GENERIC" by replacing it with Theo's sparc code. 1996-05-26 20:47:39 +00:00
chuck
8f19c1d045 fix cngetc() typeo. 1996-05-26 20:42:58 +00:00
chuck
d3ca12ac2a import rd_root from sun3 1996-05-20 01:17:31 +00:00
chuck
39e3bbc016 add ram-disk. clean. 1996-05-20 01:16:50 +00:00
chuck
8a07a09d00 add "rd" ram-disk config 1996-05-20 01:15:45 +00:00
chuck
914ca91332 if booted from sboot, stay in it.
if booted from the bug, don't enter sboot.
1996-05-20 00:40:10 +00:00
chuck
30cec539a4 preserve sboot status 1996-05-19 21:07:21 +00:00
chuck
208aa439bf move rb_nosym/rb_sboot here 1996-05-19 20:08:55 +00:00
chuck
31a61aca69 minor clean 1996-05-19 20:08:15 +00:00
chuck
b416b21a6c update for new (SRT0/bugcrt) calling convention 1996-05-19 19:58:41 +00:00
chuck
e086852f0c minor clean up 1996-05-19 19:51:24 +00:00
chuck
6d472208c0 bump 1996-05-17 21:20:11 +00:00
chuck
056791c7fa sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt] 1996-05-17 21:18:07 +00:00
chuck
bd3c8260d8 sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt] 1996-05-17 21:17:58 +00:00
chuck
3df32569f8 Makefile: update from OpenBSD
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
1996-05-17 21:08:25 +00:00
chuck
d14981d7b7 bugdev.c: from Dale Rahn (bug device access)
exec_mvme.c: from sun3 port, adapted by me.   I also fixed a bug that
	prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
	to make it fit the new format.
1996-05-17 20:59:53 +00:00
chuck
23ee5c7500 replace with code to use libbug rather than access directly 1996-05-17 20:54:50 +00:00
chuck
86a71fe9e7 complete revise of sun3 SRT0 so that it works with bugcrt by me. 1996-05-17 20:53:49 +00:00
chuck
3430ad6211 update for my reorg 1996-05-17 20:52:37 +00:00
chuck
d2da5a2153 remove files no longer needed due to reorg. 1996-05-17 20:49:23 +00:00
chuck
36079d8909 update for new boot stuff 1996-05-17 20:45:48 +00:00
chuck
75dfdfdab4 bootxx: import from sun3 port, adapt to mvme68k by me. 1996-05-17 20:11:31 +00:00
chuck
ccc9ad0d6c fix comment 1996-05-17 20:07:36 +00:00
chuck
62a58e8eaa bootst: from Dale Rahn. 1996-05-17 20:06:45 +00:00
chuck
008b8c0664 bootsd: import from sun3 port, adjust for mvme68k port by me 1996-05-17 20:04:46 +00:00
chuck
bee8cda103 installboot: from sun ports 1996-05-17 20:00:52 +00:00
chuck
671b4023a4 wrtvid by Dale Rahn. 1996-05-17 19:58:53 +00:00
chuck
89a5edba69 prtvid (print out a VID block). by Dale Rahn. 1996-05-17 19:54:57 +00:00
chuck
94e848e819 update for libbug.h, console I/O 1996-05-17 19:50:10 +00:00
chuck
a48f9896dd fix -I 1996-05-17 19:43:48 +00:00
chuck
71c9b6faad pull in a set of changes I forgot to include in initial version 1996-05-17 19:37:59 +00:00
chuck
eabb97da52 libbug from Dale Rahn. Revisions by Theo de Raadt and myself. 1996-05-17 19:31:46 +00:00
chuck
1bd98e4d83 bugcrt from Dale Rahn. With modifications from myself and Theo de Raadt. 1996-05-17 19:26:43 +00:00
chuck
0b05acfe0a add _kernel_text 1996-05-17 04:38:02 +00:00
thorpej
a9bd225c1c Remove duplicate definitions of the "le" device .. "oops" 1996-05-16 19:00:06 +00:00
chuck
7e8ebd0628 add code so that we can generate a valid disklabel without help from
wrtvid.
1996-05-16 17:59:57 +00:00
chuck
0f68df580b import Theo's prom.h from OpenBSD. includes my recent changes. 1996-05-16 17:55:54 +00:00
chuck
6c21c38077 add some comments to explain what is going on here
also add enough info to enable the kernel to create
a valid disklabel without help from wrtvid.
1996-05-16 17:52:51 +00:00
mycroft
540f9550c0 Make `make depend' work for libraries. 1996-05-11 16:11:30 +00:00
chuck
3482bd961d shift code a bit to move "start" to the front of .text [using openbsd ordering] 1996-05-09 21:09:14 +00:00
thorpej
fe4b70fd58 RCS id police. 1996-05-08 05:55:04 +00:00
chuck
a6ac580ad1 don't assume MAXPARTITIONS is 16. 1996-05-08 01:45:46 +00:00
chuck
3b6dd2f647 change maxpart to 8 to be compat with prev binaries 1996-05-07 23:23:34 +00:00
thorpej
2dea8dc101 Make the MI LANCE driver standalone, and use cfattach to resolve
naming conflicts between bus attachments on ports that can have
multiple instances of the LANCE.

Changed struct ifnet to have a pointer to the softc of the underlying
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit.  Updated interface to (*if_watchdog)() and (*if_start)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 01:10:53 +00:00
chuck
b94c366058 change dk_establish() back to void again. 1996-05-01 21:22:55 +00:00
chuck
e305bdb71c switched to MI driver 1996-04-26 19:55:39 +00:00
chuck
08b3f74e0d nuke old isr structure (no longer use) 1996-04-26 19:44:03 +00:00
chuck
81fc59565a cpu.h: add prototypes (from jason)
disklabel.h: new disklabel format (from Dale Rahn)
param.h: new delay stuff (from sun3 port)
vmparam.h: nuke eiomap for new autoconfig (from jason)
z8530var.h: for MI driver (from jason)
1996-04-26 19:40:53 +00:00
chuck
46263136cb "jumbo patch":
- new autoconfig scheme+vme (autoconf.c,clock.c,clockreg.h,
	clockvar.h,vm_machdep.c)
 - new interrupt scheme (isr.c,isr.h,locore.s,machdep.c,vectors.s)
 - switch to MI zs driver (conf.c)
 - new disklabel code, from Dale Rahn <drahn@pacific.urbana.mcd.mot.com>
	(disksubr.c, compatable with theo and dale's openbsd version)
 - new delay() based on sun3 port, using dynamic configuration from
	the sparc port (intergrated by me), calibration moved to startup
	by jason.  (locore.s,machdep.c)
 - clean up: nuke eio space (genassym.c,locore.s,pmap.c,pmap_bootstrap.c),
	nuke STACKCHECK (locore.s), prevent maxuser overflow (pmap.c),

Contributed by Jason R. Thorpe <thorpej@og.org>  (thanks!)
1996-04-26 19:26:25 +00:00
chuck
6d3c0d5c50 remove iio files; replaced by jason's new autoconfig scheme 1996-04-26 19:04:28 +00:00
chuck
7625dd4cb4 remove mainbus.c: never actually used 1996-04-26 19:03:28 +00:00
chuck
d80422cd46 - zs: switch to MI driver
- clock, le, pcc, wdsc, zs: convert to new autoconfig scheme
 - vme: add vme support

Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:59:58 +00:00
chuck
ba1034fd85 - sync with new autoconfig code (iio goes away)
- add support for zs1, vme devices (untested)

Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:47:34 +00:00
chuck
edda199ab0 patch from: Steve Woodford <steve@mctavish.demon.co.uk>
fixes the following problems:
   - Timeout on START/STOP unit command (ie. when spinning up the drive)
     Side effect of this fix is to reduce the busy-wait time in CMD phase.

   - Occasionally, the driver would lose an SBIC interrupt, especially when
     a tape drive was re-selecting on a busy SCSI bus.
1996-04-23 16:32:54 +00:00
christos
78403e6c0c Add a hardware dependent initialization function lehwinit() 1996-04-22 02:25:54 +00:00
chuck
442dec5d53 new driver: SCSI for VME147
contributed by: Steve Woodford <steve@mctavish.demon.co.uk>

	this driver is based on the amiga sbic/33C93 driver.   Steve has
	cleaned it up and fixed lots of bugs.    Note that the original driver
	used features which require at least a WD33C93A (the vme147 has the
	original WD33C93 chip <no 'A' suffix>).   Steve has also written
	the DMA routines for the 147 to get things really going.   Hardware
	scatter-gather DMA and sync. SCSI are not supported (yet).   tested
	on several disk drives and a tape drive.   CD-ROM untested, but
	should work.
1996-04-18 18:30:49 +00:00
chuck
da32bd7fed add wdsc, enable FFS, move le 1996-04-18 18:14:32 +00:00
chuck
f56be1680c add wdsc device 1996-04-18 18:07:58 +00:00
chuck
a574a3a423 add PCC_ICLEAR 1996-04-18 18:07:08 +00:00
chuck
94b120dfa8 add a "delay" function.
XXX: assumes vme147 speed.   needs to be fixed and sync'd with DELAY.
	[will work with jason/hp300 to fix it properly]
1996-04-18 18:06:30 +00:00
chuck
dbc3478277 establish a dk_establish() function. 1996-04-18 17:43:04 +00:00
cgd
d7d306aeb7 change LANCE copy & zero functions' names to start with amd7990_, and
remove their 'integrate' (usually defined to be 'static') keywords.
when lance drivers are split up by attachment, more than one file will
reference the copy/zero functions (i.e. not just the file that pulls in
am7990.c... and eventually inclusion of am7990.c should go away entirely).
1996-04-18 00:25:11 +00:00
chuck
4d91dc7c18 pull in ieeefp.h from m68k common area 1996-04-12 18:38:00 +00:00
chuck
c7a59b578d sync with sun3 version 1996-04-12 18:35:40 +00:00
chuck
4420159d4c fix warning from gcc 1996-04-12 18:33:59 +00:00
cgd
83f9bdc359 update for the fact that config_found() and config_rootfound() now
return pointers.  (Check vs. NULL, rather than just boolean tests.)
1996-04-04 06:25:00 +00:00
chuck
9ee06a9bd1 change vunmapbuf to void function to match MI code 1996-04-03 20:42:55 +00:00
chuck
6fa7f71c9c fix christos' type-o: s/dec_decl/dev_decl/ on line 115. 1996-04-03 20:35:25 +00:00
thorpej
5c98887b14 Fix typo. 1996-03-19 22:56:53 +00:00
thorpej
82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
christos
ab0e60a42f fdopen -> filedescopen 1996-03-14 21:20:59 +00:00
cgd
18ec26aa21 add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
execpt without quotes.  meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
cgd
1c5d7babe5 Clean up tabbing/spacing in defns of MACHINE, MACHINE_ARCH, and MID_MACHINE. 1996-03-01 23:30:08 +00:00
cgd
3d67685d36 Do not build vnode_if.[ch] for each kernel. Build them once, like the
various syscall sources/headers, and just compile them.  From PR 2142, OK'd
by mycroft.
1996-02-29 20:54:58 +00:00
mycroft
2ce52ae489 Define build programs with ?=', so they can be overridden with makeoptions'. 1996-02-26 02:53:20 +00:00
gwr
946696f064 Add m68k/db_memrw.c 1996-02-22 23:35:07 +00:00
gwr
9d2186505e Use vprintf where it was intended, and use __dead 1996-02-13 18:06:10 +00:00