abrown
0c6696de2d
Take advantage of new am7990 sc_nocarrier() function in order to do auto-
...
matic media detection on Sun4m machines which support multiple media
(UTP and AUI). New function lenocarrier() switches media type when called
if no link? flags are set.
Redefine link flags for Lance ethernet (le):
<none>: switch between media as needed to find carrier (autodetect)
Preference to whatever the PROM is using (AUI if not booted
from the network)
link0: use UTP port only
link1: use AUI port only
This allows Sun4m machines with dual media Lance ethernet adapters to
boot from the network on the UTP port.
1996-07-06 00:01:34 +00:00
chuck
e13b96dbf2
add native mode atm soft interrupt
1996-07-04 03:18:39 +00:00
pk
a6adfa8db7
Fix label sector confusion, per der mouse (PR#2598).
1996-07-03 22:02:09 +00:00
abrown
410fea854a
Implement asm macros to allow 64-bit load/store to alternate address space.
...
Use new ldda() and stda() to make MultiCache initialization work on
SuperSparc-II machines (these machines require 64-bit access, even
to a 32-bit register).
1996-07-01 18:01:26 +00:00
pk
d71930e6c9
Put native NetBSD disk label in a piece of wasteland within a SunOS label.
...
read_disk_label() uses the native label if present.
write_disk_label() constructs a SunOS label around the native one.
1996-06-29 22:38:11 +00:00
pk
80c64cc71d
Put native NetBSD disk label in a piece of wasteland within a SunOS label.
1996-06-29 22:33:16 +00:00
pk
e2ec1dab69
Avoid compiler warning on SUN4-only kernels.
1996-06-29 20:10:50 +00:00
pk
4ce982125b
Need to add another `if defined(SUN4M)'; noticed by David Gilbert.
1996-06-29 20:09:40 +00:00
chuck
7544016a9d
sbus specific stuff for eni155s sbus atm card.
...
XXX: only works on sun4c, needs something better than vtophys() for
machines with IOMMUs(?).
1996-06-22 02:02:48 +00:00
pk
43cca6772f
`rd_root.c' => `md_root.c'
1996-06-20 20:17:57 +00:00
pk
ba3ce100e0
memory disk driver hooks to pass on the root filesystem bits.
...
Note: this file is called `md_root.c' in anticipation of the forthcoming
`rd' => `md' rename.
1996-06-20 20:15:40 +00:00
pk
b0b2a995cd
When booting from a floppy drive and RAMDSK_HOOKS is defined, arrange for
...
a callback from memory disk driver to load the actual root image.
1996-06-20 20:12:31 +00:00
pk
d802ca2b2a
Declare a memory disk at block device #5 .
1996-06-20 20:07:45 +00:00
pk
417fc9581d
ramdisk stuff
1996-06-20 20:06:16 +00:00
pk
5b9021505a
ramdisk stuff.
1996-06-20 20:05:46 +00:00
pk
a0222c1293
Turn on disconnect/reselect by default on targets 4-7 on the premise that
...
tape devices normally are set to one of these targets. Tape devices should
be allowed to disconnect for the SCSI bus to operate acceptably.
1996-06-20 19:50:41 +00:00
pk
dba83379bd
Remove a "notyet" in last commit.
1996-06-19 13:30:49 +00:00
pk
c7fc34ac08
add tcx device at major number 109
1996-06-19 13:28:14 +00:00
pk
3da87417d2
tcx declaration
1996-06-19 13:25:01 +00:00
pk
5f5407c39e
add tcx
1996-06-19 13:23:25 +00:00
pk
c6d4bf55e3
Add tcx definition.
1996-06-19 13:21:09 +00:00
pk
f62f900f6c
First go at a TCX framebuffer driver. This version does enough to
...
load and store colour lookup tables
blank the screen / put monitor in power-saving mode
make X11 run on it in `cgthree' emulation.
1996-06-19 13:17:35 +00:00
pk
5d5e7cf75e
bootpath detection: some (newer?) v2 prom versions use actual device address,
...
e.g. `/fd@1,72000000'.
1996-06-16 23:28:18 +00:00
pk
e2655dd7cc
Allow DIAGNOSTIC kernels a FLUSHWIN trap in order to record stack traces
...
(currently used by the nullfs filesystem code, noted by der mouse).
1996-06-13 22:26:21 +00:00
pk
fbc5fd1fca
Bound the buffer cache to 1/2 of kernel virtual memory, so machines with
...
lots of core don't run out of core (takes care of PR#2506).
1996-06-12 23:48:51 +00:00
pk
5ce90889f0
Remove unneeded header file.
1996-06-12 23:40:29 +00:00
pk
2266b8dd57
Use the setting of the ESPCFG2_FE bit rather than revision number to decide
...
on the ESP chip's maximum transfer count.
1996-06-12 19:12:19 +00:00
pk
d16dcebba7
Add signature for the Fujitsu MB86904 processor.
1996-06-12 18:39:15 +00:00
pk
f87e51fb6b
Turn on RB_ASKNAME if a `swap generic' kernel was not able to determine
...
the boot device. Also, call boot device hooks for all types of kernel
configurations.
Print "mainbus" name on sun4m machines.
1996-06-12 15:24:05 +00:00
pk
4dd7cb4f5c
Use `ic_*' cacheinfo fields, and in the split-I&D case, derive `c_linesize[l2]'
...
from from the corresponding `ic_*' and `dc_*' values. This is not perfect,
but it makes SS4s and SS5s run until we have proper per-cpu cache handling.
1996-06-12 14:57:03 +00:00
pk
52d6871979
Use `ic_*' cacheinfo fields, and in the split-I&D case, derive `c_linesize[l2]'
...
from from the corresponding `ic_*' and `dc_*' values. This is not perfect,
but it makes SS4s and SS5s run until we have proper per-cpu cache handling.
Use the `cache-physical?' property to determine the value of `vactype'
on sun4m's. If absent, set vactype to VAC_WRITETHROUGH (XXX) else VAC_NONE.
Print simpler sun4m CPU identifier on attach.
1996-06-12 14:56:09 +00:00
pk
6281105c8f
Introduce separate ic_* fields for instruction caches.
1996-06-12 14:47:45 +00:00
pk
6a4a26da0c
Correct test for `dmachild' which failed on `esp at obio*' configs (PR#2541).
1996-06-12 12:46:21 +00:00
pk
94cd1644ee
Avoid the "features enable" bit on ESP100A's; apperently this is a source
...
of trouble on many machines (from Krister Walfridsson; PR#2537).
1996-06-11 22:26:16 +00:00
pk
49aec33417
pmap_changeprot: truncate VA argument to page-boundary. Needed in case we
...
call cache_page_flush().
1996-06-11 21:54:44 +00:00
thorpej
a01d6597b6
Squish a couple of rogue $Id's..
1996-06-07 21:48:33 +00:00
christos
207d85a1cc
Handle T_RESET, otherwise DIAGNOSTIC kernels panic.
1996-06-05 19:30:43 +00:00
pk
3dfb6ab8c0
Code the residual computation a bit differently.
1996-06-03 23:48:41 +00:00
pk
460d3403be
Initialize video parameters if the board is not yet running. Useful if
...
the cg3 is not the console.
1996-05-31 09:59:22 +00:00
pk
a8deff302c
Clamp synch-transfer parameters at our maximum values on device-initiated
...
synch negotiation.
1996-05-30 22:19:10 +00:00
pk
c393eae7c5
event_var.h changed location.
1996-05-30 01:40:07 +00:00
pk
9a9cf8c3f5
Put back a `#if defined(SUN4M)' for now.
1996-05-30 00:57:35 +00:00
pk
e86275a0b6
Some slight optimizations.
1996-05-30 00:02:09 +00:00
pk
b3666a87b4
Swiatch to `sys/dev/sun/event*'.
1996-05-29 21:57:51 +00:00
pk
3d1e64415a
Switch to `sys/dev/sun/event.c'.
1996-05-29 21:56:38 +00:00
pk
f9f5f23ee3
We really need a ring buffer for every unit.
...
Eliminate extraneous ttyalloc() calls.
1996-05-29 21:45:28 +00:00
pk
4899447ffc
Add missing splx(), per Jason.
1996-05-29 21:08:28 +00:00
pk
57e61589e7
Fix two cases of handling stale page table information:
...
1. when reading the referenced/modified bits the TLB entry must be flushed
before reading the in-core version.
2. when wrapping up an entire segment in pmap_page_protect(), flush the PTPs
from the TLB to prevent a table-walking operation to pick up stale - or
possibly bogus - PTEs.
(hopefully I'll get a few of my hairs back now..)
1996-05-29 20:58:38 +00:00
mrg
5583238255
impliment ttylist stats based on disk stats.
1996-05-29 02:02:42 +00:00
mrg
65d186d8e8
find a couple minor nits from previous change.
1996-05-29 01:58:09 +00:00
mrg
6ce8e31376
change zsinfo to a zs_softc, and impliment intr counts. mostly from OpenBSD.
1996-05-28 14:06:28 +00:00
mrg
08bd090b26
count audio interupts (from OpenBSD).
1996-05-28 13:36:09 +00:00
pk
9913321bff
CMP_PTE_USER_READ4M: check against PPROT_RWX_RWX; this is the canonical
...
stack protection (saves many excursions into trap.c on window underflows
as was the sole intention of the macro..).
1996-05-27 20:46:39 +00:00
pk
d94f5b92f9
prototype mmu_pagein4m() #if DEBUG is on.
1996-05-27 20:29:03 +00:00
pk
75eb006fa2
No longer need to call mmu_pagein() through a pointer.
1996-05-27 01:13:02 +00:00
pk
522c1d367a
mmu_pagein() is only useful on sun4/sun4c. For now, keep a `mmu_pagein4m()'
...
within `#ifdef DEBUG' for monitoring.
Push user windows to stack in pmap_extract() if we need to switch contexts.
1996-05-27 01:12:34 +00:00
pk
4fa564e10d
Fix case where sequence state wasn't updated properly, resulting in
...
`disk_unbusy' panic.
1996-05-27 00:10:40 +00:00
pk
43b3743977
Implement CMP_PTE_USER_WRITE4M more accurately.
...
CMP_PTE_USER_READ4M needs some more work..
1996-05-26 22:33:31 +00:00
pk
2382529ecd
Some more #defines.
1996-05-26 22:30:20 +00:00
pk
f699a85094
sync with reality.
1996-05-24 23:18:23 +00:00
pk
3c13903472
Enable just enough interrupts to get "L1-A" through. Patch from Jason to
...
avoid spurious floppy interrupts on Jason's machine...
1996-05-23 22:35:11 +00:00
pk
bc77c57c13
espattach() requires DMA to be configured. For now, panic if it is not.
1996-05-21 19:09:43 +00:00
pk
68691c178c
Allow all esp dma channels to be called `dma'.
1996-05-21 19:07:30 +00:00
pk
dc7e7814d9
Remove the `espdma' special case; all `esp' related dma channels are now
...
called `dma' on all architectures. Note: `ledma' remains in place.
Also delete a couple of unneeded `needs-flag's in files.sparc.
1996-05-21 19:06:26 +00:00
pk
71943d50df
Protect body of iommuattach() to be more resilient against configuration
...
file oddities.
1996-05-21 07:25:07 +00:00
pk
6da494dde9
Put a `return' back that went missing in rev 1.56
1996-05-20 10:49:20 +00:00
thorpej
722d0da592
RCS Id police.
1996-05-20 00:56:39 +00:00
pk
1bd6f1f147
We don't generally want to profile `genassym' (easy part of PR#2434).
1996-05-19 20:58:51 +00:00
mrg
0e4623e2f7
set the console struct winsize to the values given in the prom (sun4c/sun4m)
...
or the eeprom (sun4) when opening the console. (note: sun4 code untested
but jason claims it will `Just Work').
1996-05-19 13:00:43 +00:00
mrg
fae3ba5c32
disable prom sync in romboot() and romhalt(), rather than before calling them.
1996-05-19 04:12:53 +00:00
pk
d292da40b2
Remove obsolete HWTOSW/SWTOHW macros.
...
VA2PA: flush TLB before proceeding with L2 probe (per the manual) [4m].
More KNF.
1996-05-19 00:32:15 +00:00
pk
98a9570a8e
Make sure DELAY(0) returns within an hour..
1996-05-19 00:25:16 +00:00
mrg
9ce523cca7
disable the prom `sync' command before calling romboot() or
...
romhalt() (idea from OpenBSD).
1996-05-18 12:36:49 +00:00
mrg
4cba75e24a
put promdev definition into <machine/bsd_openprom.h>.
...
also, minor KNF.
1996-05-18 12:35:18 +00:00
mrg
b6988904e0
put promdev definition into <machine/bsd_openprom.h>.
1996-05-18 12:27:40 +00:00
mrg
d7bc39fad1
don't set tmp twice.
1996-05-18 12:22:49 +00:00
mrg
68b2ff1bdb
use __P
1996-05-18 12:19:14 +00:00
pk
da5c96baa1
Correct an oversight and a silly past-o in last change.
1996-05-17 22:54:40 +00:00
pk
05379d078e
Add `_kernel_text' symbol for kvm_mkdb(8).
1996-05-17 20:07:53 +00:00
abrown
d9277a9036
Add Sun4m power0 power status/control register to GENERIC configuration
1996-05-17 18:02:56 +00:00
pk
2d2098c11b
Check for `configuration parent' differently: compare against "sbus"
...
rather than "ledma".
1996-05-16 22:57:32 +00:00
pk
b9f70e90d8
Add `flags' to the esp entries: disable disconnect & synch negotiation
...
by default until further notice.
1996-05-16 22:47:47 +00:00
pk
e509f9aaeb
Change attributes of `dma', `espdma' and `ledma' (the attributes on the latter
...
two didn't seem to make much sense anyway..) to allow `esp' devices to be
attached to one of `sbus', `dma' and `espdma'.
Remove the wildcarded `espdma?' and `ledma?' attachments of `esp' and `le'
respectively, in favour of `dma?' and `lebuffer?' (but the latter is not
yet implemented), which seems to better match reality: additional SBus
SCSI/Lance boards call themselves `dma' and `lebuffer'.
1996-05-16 22:38:04 +00:00
pk
3f1283a92f
Re-arrange code that looks for the esp driver to allow for the fact that
...
any "dma" device (i.e. not just "espdma") can have an OBP child. This is
the case with (at least some) SBus SCSI boards.
1996-05-16 21:45:35 +00:00
pk
50e92fd71d
Use configuration file flags to disable reselection and/or sync negotiation,
...
on a per target basis (until the driver can sort things out on its own).
Test against "sbus" in stead of "espdma" to find out where in the
configuration tree we are: an esp can be the child of a "dma" on SBus
add-on boards.
1996-05-16 20:31:28 +00:00
pk
0b59ea6fbd
Replace a couple of (*foo_p)()'s with direct calls. All instances occurred
...
within in functions that were already mmu-arch specific.
Some formatting nits.
1996-05-16 19:19:33 +00:00
abrown
4bbf23d04c
Copyright police (s/Harvard University/Harvard College/).
1996-05-16 15:56:54 +00:00
abrown
fe454d89f3
Implement a hack to give pmap a better chance of working on SS10's with
...
no external L2 cache.
XXX this is ugly and will go away when cpu_softc gets done for the 1.3 release
Also, copyright police (s/Harvard University/Harvard College/).
1996-05-16 14:30:54 +00:00
thorpej
81ba0732e0
Document the "flags" for the si and sw controllers. While I'm here,
...
do some re-arrangement (cleanup), and document which devices exist on
which machines, so that people can be better informed when they trim
down their kernels. There are a LOT of comments in this file now!
1996-05-16 03:13:27 +00:00
thorpej
81b0485bfe
These haven't been kept up to date.
1996-05-15 23:57:50 +00:00
mrg
9ad87ec76e
remove some RCS id's we don't need.
1996-05-15 02:13:39 +00:00
mrg
16b514adc6
KNF some debug statements.
1996-05-14 13:57:29 +00:00
thorpej
ebafcd57c2
Remove some comments in eeprom_uio() now that they're no longer relevant.
...
Add some whitespace to eeprom_take().
1996-05-13 21:39:53 +00:00
thorpej
1a79065f9f
Enable DMA by default on the 4/100 "sw" controller; the DMA bugs appear
...
to have been fixed.
1996-05-13 01:53:45 +00:00
mycroft
540f9550c0
Make `make depend' work for libraries.
1996-05-11 16:11:30 +00:00
thorpej
ac9df157aa
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:28:28 +00:00
thorpej
ae87feee24
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:27:26 +00:00
thorpej
0e0d4f1ec2
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.
1996-05-07 01:24:48 +00:00
pk
0ba8565c86
mountroot: return error code to caller, not -1.
1996-05-04 19:36:01 +00:00
pk
4ac7468812
Various simplifications and corrections from Chuck Cranor (makes `oclock'
...
calibration work.. thanks!).
1996-05-02 18:17:33 +00:00
pk
504582ba83
Simpler and more accurate delay() function from Chuck Cranor.
1996-05-02 18:15:08 +00:00
thorpej
3fff2a8f83
Fix apparent paste-o ... spurious "}"
1996-04-30 00:56:45 +00:00
pk
fa75ea39e1
Move delay() to locore, so we control code generation and can avoid
...
touching memory locations whose caching disposition can perturb timings.
1996-04-29 21:08:37 +00:00
pk
e147a74bbb
Chip needs much more time to think things over (up to 2 seconds to complete
...
a `recalibrate' command if no flop present).
1996-04-29 12:07:32 +00:00
thorpej
dc5ff52131
dk_establish() returns void.
1996-04-28 20:25:59 +00:00
pk
646acc51d0
Map the pixels explicitly on the VME32 bus.
1996-04-23 19:34:05 +00:00
pk
ee8f3dc1b8
Turn delay() into a calibrated loop. It's more accurate and compiles into
...
a `leaf' routine, avoiding unexpected large delays by overflowing the
register windows.
1996-04-23 19:25:25 +00:00
abrown
6b768c677a
Now that we have lehwinit() for the Sun4m, make sure that we wait 20ms
...
after changing the cable type, as specified in the chip documentation.
Also, sanity-check that sc_dma is valid in case a Sun4m ever exists without
a ledma.
1996-04-22 03:57:29 +00:00
christos
90bc31d478
remove include of <sys/cpu.h>
1996-04-22 02:50:20 +00:00
christos
a897ec996a
Remove dependency on <sys/cpu.h>
1996-04-22 02:42:00 +00:00
christos
bebf990150
Oops the name of the UTP/AUI bit changed under me...
1996-04-22 02:39:49 +00:00
christos
5253b892e9
Add a hardware dependent initialization function lehwinit()
...
to support selecting UTP media on sun4m
1996-04-22 02:37:10 +00:00
abrown
709298a10a
- Changed Sun4m DMA chip support to detect and use maximum available SBus
...
burst size when transferring data.
- Changed ledma attach code to pay attention to the PROM's notion of what
cable type is being used. Note that this patch does not fix the problem
recently discussed on port-sparc; in most cases the PROM doesn't know
what cable type is being used. The default is now TP rather than AUI,
though. A complete fix is forthcoming.
1996-04-22 02:34:53 +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
abrown
a0b7376b16
Add prototype and fix return type of blink() so "options BLINK" works
...
with -Wall -Werror
1996-04-13 17:40:03 +00:00
thorpej
b3897170bd
Haven't used "options RCONSOLE" for a long time. Update to the new
...
"options RASTERCONSOLE". Noticed by cgd.
1996-04-11 21:54:13 +00:00
thorpej
e17cddf913
If the power device is configured, don't forget to compile the driver.
...
Also, add some whitespace for readability.
1996-04-11 21:05:42 +00:00
thorpej
41a08fd254
Include fdc.h, not fd.h, due to change in files.sparc.
1996-04-11 19:20:03 +00:00
pk
c0919485d4
Move some of the SCSI target juggling to autoconf's fake_bootpath() routine.
...
Fix incorrect interpretation of bootpath's val[2] as a SCSI unit.
1996-04-10 20:48:35 +00:00
pk
e4394459a1
`bootdv' is gone. Instead, set the device pointer in the `struct bootpath'
...
that is passed in the attach arguments.
1996-04-10 20:46:05 +00:00
pk
c28fcc3539
Use extra value in `struct bootpath' to describe the PROM's bootpath better.
...
Use the bootpath[] array in setroot() to determine partition info in case
of boot devices of type DV_DISK. Also, precook more SCSI device info in
fake_bootpath() to simplify dk_establish().
1996-04-10 20:40:14 +00:00
pk
5f2d466997
Make room for another `value' in struct bootpath. Drop the global `bootdv'
...
in favour of storing the device pointer in the bootpath[] element corresponding
to the boot device. This also allows the opportunity to get to "intermediate"
devices (e.g. busses) should the need for this ever arise.
1996-04-10 20:33:38 +00:00
pk
4c26e95dde
Initialize relevant elements of the `romaux' structure in romprop().
1996-04-09 15:24:00 +00:00
pk
1a1a8ba8c9
Undo unintended change in previous commit: _mcount is static.
1996-04-08 20:55:36 +00:00
thorpej
940ccbc5df
Fix typo that caused sun4 machines to be misidentified as sun4c-class.
...
Fixes reported problem of binstall not stripping the a.out header from
the boot block on sun4 machines.
1996-04-07 20:00:12 +00:00
thorpej
77366064b8
Fix oversight in sun4m changes: the CPU attach code moved, so the CPU
...
was never getting attached on a sun4 machine. Fix this so that the
cache and FPU get enabled on sun4 machines. (Believe me, a 4/260 is
slot enough, *with* the cache...)
1996-04-07 06:02:20 +00:00
thorpej
56fed0c102
Fix slight oversight in previous change.
1996-04-07 05:50:59 +00:00
thorpej
d68e57ee64
Make this compile again on a SUN4-only kernel. (Avoid "unused foo"
...
warnings from gcc -Wall. While the optimizer is smart enough to
eliminate dead code, it looks like the rest of gcc doesn't Get It.)
1996-04-07 04:48:46 +00:00
chuck
e50fc72424
make netbsd/sparc boot on sun4 once again. the sun4m changes introduced
...
config lines for obio0 devices without addresses (thus cf->cf_loc[0] took
the default value of -1). we now ignore these entries on a sun4 since
they could never be valid (eliminates a 'panic:alignment' fault at bootup).
1996-04-05 21:50:05 +00:00
chuck
a7c600676f
make netbsd/sparc boot on sun4 once again. the sun4m changes introduced
...
config lines for obio0 devices without addresses (thus cf->cf_loc[0] took
the default value of -1). this caused autoconf.c to map memreg0 to
obio physical address -1 (invalid). as soon as we took a memory fault
the code in memfault_sun4 [locore] would get a Watchdog timeout when trying to
read memreg0 (a.k.a. par_err_reg).
1996-04-05 21:44:25 +00:00
pk
8eeab3102b
Probe clock registers on sun4s to make sure we attach the correct device
...
(sun4m has clocks at obio too).
1996-04-04 23:55:47 +00:00
pk
8e427a346f
Check for frame pointers we can handle (i.e. in kernel space). This prevents
...
data faults when tracing proc0's context.
1996-04-04 23:25:35 +00:00
abrown
1372d856d7
cpu.c: correctly identify Sun4m associative caches
...
kgdb_stub.c: make it compile again with Sun4m-only kernel
1996-04-04 23:06:32 +00:00
abrown
1068aa5751
Add back support for cached DVMA on SuperSPARC (sun4m) machines that was lost
...
during merge
1996-04-04 23:05:22 +00:00
pk
b0fd2dabcb
Include fd.c if (fdc | fd), so we're not obliged to define a device
...
at fdc.
1996-04-04 22:57:55 +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
cgd
7bc2baeb01
update for the fact that 'alldevs' is now a TAILQ.
1996-04-04 00:27:24 +00:00
pk
7311f0da23
Late-breaking patch from Aaron.
1996-04-01 21:09:39 +00:00
christos
10ffa5da40
Fix warnings when SUN4M is not defined.
1996-04-01 19:16:41 +00:00
christos
3dbbc8d3e9
Fix another printf format argument.
1996-04-01 17:37:08 +00:00
christos
4bdb6550cb
Added missing prototypes and include files, fixed parentheses so that it
...
compiles cleanly.
1996-04-01 17:36:20 +00:00
christos
362a6875bf
Remove last dependency to dev_conf.h and the file itself.
1996-04-01 17:34:34 +00:00
christos
f34addbb3b
- remove dependency to dev_conf.h
...
- remove unneeded casts for %b
1996-04-01 17:33:10 +00:00
christos
34f644d1b9
Remove casts of printf args for %b format.
1996-04-01 17:31:38 +00:00
christos
dc6ff48df6
Eliminated dependencies on dev_conf.h
1996-04-01 17:29:44 +00:00
pk
25b6ab86fe
Update device list.
1996-04-01 00:20:31 +00:00
pk
3cf5ed1f30
Various cleanup; mostly trailing spaces/tabs.
1996-03-31 23:44:53 +00:00
pk
8347d3f584
The sun4m name for this device is "auxio".
1996-03-31 23:43:21 +00:00
pk
301e978cf8
Various sun4m-related changes straight from Aaron.
1996-03-31 23:38:29 +00:00
pk
e0344005b4
Changes to match 4m-aware locore.s. Note changed `trapbase' and
...
`sparc_interrupt_{44c.4m}' labels.
1996-03-31 23:35:20 +00:00
pk
e743dda2a9
Update for 4m locore.s. Remove some items, since locore.s now #includes
...
param.h
1996-03-31 23:28:03 +00:00
pk
cf4009e56c
Include support for sun4m timers and counters: hardware register layout
...
has changed. There is a counter for each CPU (currently, just one supported).
1996-03-31 23:24:59 +00:00
pk
8de1fd22bc
Add sun4m support. Many, many changes..
...
Note on multi-architecture kernels: most architecture dependent traps are
forked off directly by having a separate trap table for each (sun4,sun4c,sun4m)
This reduces the number of tests on `cputyp' significantly, and it's easier
on the mind. There are still some entry points that need to test `cputyp',
most notably microtime().. yuck.
1996-03-31 23:19:22 +00:00
pk
6d76616bf0
The sun4m IOMMU "device".
1996-03-31 23:09:32 +00:00
pk
7b55c61c27
Include support for sun4m timers and counters: hardware register layout
...
has changed. There is a counter for each CPU (currently, just one supported).
1996-03-31 23:07:59 +00:00
pk
df2a68f25b
Add sun4m VA definitions (for clock and interrupt).
...
Make these generic for all architectures (i.e. avoid `#if defined(SUN4*)'s).
1996-03-31 23:03:31 +00:00
pk
ff109a19a3
Accomodate sun4m CPUs and caches (Aaron). Cache handling needs to be
...
revised.
1996-03-31 23:00:40 +00:00
pk
df08150880
Updates for sun4m.
1996-03-31 22:57:09 +00:00
pk
35802bf06b
Accomodate sun4m device layout (v3 PROM) and special 4m startup goo.
...
Heavily cleaned from most `#if defined(SUN4*)' stuff in favour of
CPU_ISSUN4* macros.
1996-03-31 22:55:33 +00:00
pk
678fbb4806
sun4m device definitions and bus structure.
1996-03-31 22:52:38 +00:00
pk
b2d12c182b
Aaron's sun4m-related trap handling (memory faults).
...
Note that fork() no longer return in syscall() in the child.
Add a couple of `#ifdef DEBUG's.
1996-03-31 22:51:58 +00:00
pk
d15de4b09b
Initialize DMA addresses properlier in cpu_startup().
...
dumpsys(): do not try to dump first physical page, this fucks up pmap_extract().
1996-03-31 22:48:24 +00:00
pk
3c89c0901d
Aaron's SRMMU/sun4m pmap implementation.
...
Note: multi-architecture kernels use function pointers for several PMAP
entry points.
Cut down the `#if defined(SUN4*)' mess severely by using CPU_ISSUN4*
macros (see machine/param.h) wherever possible.
1996-03-31 22:42:59 +00:00
pk
2f3ec93250
Various cleanup; mostly trailing spaces/tabs.
1996-03-31 22:38:29 +00:00
pk
66539854e8
Diddling of the `power' bit in machine control register (Aaron).
1996-03-31 22:34:40 +00:00
pk
954302ae70
Handle sun4m `ledma' and `espdma'.
...
DMA setup requires services of the IOMMU.
1996-03-31 22:32:45 +00:00
pk
7e45b3449f
Re-arrange a bit to stear clear of gcc `-Wall' bites.
1996-03-31 22:30:50 +00:00
pk
25aa56ae29
Handle sun4m `obio' devices.
...
Cleanup `#if defined(SUN4*)' mess.
1996-03-31 22:28:38 +00:00
pk
96f175d477
Add sbus_translate() to deal with slot address translations, including
...
new v3 PROM style "range" properties. This routine is also called from obio.c
(which can be viewed upon as just a another Sbus slot).
1996-03-31 22:27:15 +00:00
pk
345295ff08
Deal with sun4m le/ledma. Work around spurious interrupt problem (aaron).
1996-03-31 22:22:52 +00:00
pk
bb0897eec6
Various cleanup; mostly trailing spaces/tabs.
1996-03-31 22:21:21 +00:00
pk
1c8b452515
Add a non-interrupt-priority-lowering version of SPL(). Used by splpmap()
...
at the moment.
1996-03-31 22:20:14 +00:00
pk
76404b0bbe
Add sun4m CPU/MMU identifications.
1996-03-31 22:18:16 +00:00
pk
5703b83d00
Move autoconf subroutine prototypes to autoconf.h
...
Deal with sun4m `software interrupts'.
1996-03-31 22:17:14 +00:00
pk
8d9fbd0949
Add some v3 PROM glue.
...
Move autoconf subroutine prototypes here (from cpu.h).
1996-03-31 22:12:34 +00:00
pk
0ab4a52862
Add SRMMU/sun4m support. Size and layout of `struct pmap' has changed.
1996-03-31 22:09:13 +00:00
pk
922201e06a
Add SRMMU/sun4m definitions.
...
Cleanup (i.e. mostly delete) `#if defined (SUN4*)' in here.
1996-03-31 22:06:55 +00:00
christos
b646bc023a
New md conf.h per Jason's plan.
1996-03-30 21:17:55 +00:00
christos
393ad3332b
Don't need this anymore; it's data are moved to <machine/conf.h> and conf.c
1996-03-30 21:15:03 +00:00
christos
2d29d17da3
Deprecate use of *_conf.h and use only <machine/conf.h> and <sys/conf.h>
1996-03-30 21:13:53 +00:00
christos
c3a3efa9e6
Fix db_printf formats.
1996-03-30 21:13:02 +00:00
christos
32fe9b6a79
iUse <machine/conf.h> instead of sparc_conf.h
1996-03-30 21:12:16 +00:00
christos
e4397b82d7
Use machine/conf.h, instead of sparc_conf.h
1996-03-30 21:11:33 +00:00
christos
a1777d0168
Remove u_int casts from the printf %b formats.
1996-03-30 21:10:37 +00:00
christos
564084ce99
- add the GETHRTIME and GETHRVTIME traps. Do the best we can for them.
...
- getcontext() fills the stack_t portion of the context with an 8k size
stack, 0 flags, and below our current stack pointer. I am not sure where
to set the pointer. Thanks pk [2-2] for noticing that.
Now netscape and java work...
1996-03-26 19:09:31 +00:00
christos
70e15a2ba9
Make fpu_regs a union of doubles and ints to get the alignment of the
...
machine dependent portion of the context correct. Thanks pk [1 of 2]!
1996-03-26 19:04:48 +00:00
pk
c299fd2d61
Bitfields are unsigned.
1996-03-26 01:28:50 +00:00
pk
a8564828ee
Back to normal printf()s, now that gcc understands `%b'.
1996-03-26 00:35:25 +00:00
mrg
8d14f53bd0
install stand tools.
1996-03-25 22:48:09 +00:00
pk
3d5031d609
PROM does not like %p's..
1996-03-25 20:46:56 +00:00
pk
2dd9317452
Remove reference to sense code "internals".
1996-03-23 21:09:04 +00:00
christos
3c3a955cf2
Avoid unused label warning.
1996-03-18 21:48:19 +00:00
christos
4d4d2d999a
Remove 'volatile' from the romhalt and romboot routines, and local prototype
...
declarations.
1996-03-17 21:40:11 +00:00
cgd
94907fa254
adjust to deal with expression support for optional file specs
1996-03-17 13:21:09 +00:00
pk
59ff996be6
Avoid "unused variable" warning.
1996-03-17 03:19:34 +00:00
thorpej
3cd14f7597
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 02:00:30 +00:00
mrg
4fe3a900f3
comment: LEAPYEAR is not entirely correct
1996-03-17 00:56:24 +00:00
christos
5b2bf5a548
add rom routines declarations
1996-03-16 23:51:44 +00:00
christos
64356e6df3
fix printf format strings
1996-03-16 23:31:45 +00:00
christos
dafa7f2c60
fix format strings. move rom routine decls in bsd_openprom.h
1996-03-16 23:31:42 +00:00
christos
ed2239daea
Fix format strings in panic()
1996-03-16 23:31:40 +00:00
christos
0c4805af23
Fix typo in fsrtoname() use && as intended instead of &
1996-03-16 23:31:36 +00:00
christos
4b636d71eb
cast argument to probeget()
1996-03-16 23:28:37 +00:00
christos
2cb7b87853
fix formats in printf() and panic()
1996-03-16 23:28:35 +00:00
christos
5c32202b7e
fix format in printf()
1996-03-16 23:28:33 +00:00
christos
fe4bb997c9
fix format in panic()
1996-03-16 23:28:30 +00:00
christos
09ff5d56a7
fix format in printf()
1996-03-16 23:28:28 +00:00
christos
aab8906300
fix format in log()
1996-03-16 23:28:27 +00:00
christos
f2b8b6e73e
include <sys/systm.h>
1996-03-16 23:28:25 +00:00
christos
02bcb06a88
This could have never worked (fb in attach was never initialized); include <sys/systm.h>
1996-03-16 23:28:23 +00:00
jtc
2ce5f1478b
Add _BSD_WINT_T_ definition so we can handle wint_t type added in NA1.
1996-03-16 01:31:45 +00:00
christos
6d492269e0
Add -Wall -Wstrict-prototypes -Wmissing-prototypes
...
to the kernel build. The sparc is clean now!
1996-03-15 00:02:28 +00:00
christos
9af46afa21
Fix prototypes for the latest kpc changes.
1996-03-15 00:01:21 +00:00
christos
9673aca601
Fix prototypes that were added with the latest kpc changes.
1996-03-15 00:00:39 +00:00
christos
9c75606e8c
Add prototypes and fix bugs:
...
- softclock was called with extra argument.
- missing %x formats in printf's
- kgdb_copy called with only two arguments.
Fix conf.c so that it used the _conf.h files from other places instead of
rolling its own.
1996-03-14 21:08:50 +00:00
christos
9a07d9dec9
Add missing prototypes and fix the fp struct for svr4.
1996-03-14 19:49:04 +00:00
christos
03b701e393
Bring prototypes into scope and fix compiler warnings.
1996-03-14 19:44:30 +00:00
christos
ab59f984ab
Add and bring prototypes into scope.
1996-03-14 19:41:49 +00:00
pk
485ccae478
Insert child_return() for the benefit of child return path from cpu_fork().
1996-03-14 00:55:59 +00:00
pk
0b1cba4b0b
Implement cpu_set_kpc() and use its machinery to by-pass a child out
...
of the kernel from cpu_fork().
1996-03-14 00:54:34 +00:00
pk
d48d8e1512
Install machinery for cpu_set_kpc().
1996-03-14 00:54:06 +00:00
pk
808df5543f
Remove cpu_set_init_frame().
1996-03-14 00:49:20 +00:00
pk
894fde6bdd
Remove __FORK_BRAINDAMAGE.
1996-03-14 00:48:30 +00:00
pk
dc3c7fb2ba
Actually enter executables where promised...
1996-03-14 00:11:29 +00:00
pk
90fb0cc9da
Don't come down so hard on targets that ignore SDTR msgs.
1996-03-05 09:29:58 +00:00
chuck
9bb0e5dba5
Fix two bugs reported by Don Koch <aardvark@poirot.krl.com> (PR#2169)
...
[these bugs apply to the xy as well as the xd driver]
[1] check return value from malloc() for NULL before trying to bzero it.
[2] use "=" rather than "|=" when writing to CSR (otherwise you may
ACK something you don't mean to!).
1996-03-04 20:13:39 +00:00
chuck
9fee13d104
Fix two bugs reported by Don Koch <aardvark@poirot.krl.com> (PR#2169).
...
[1] check return value from malloc() for NULL before trying to bzero it.
[2] use "=" rather than "|=" when writing to CSR (otherwise you may
ACK something you don't mean to!).
1996-03-04 20:11:32 +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
pk
855b6def84
Add ns_cksum.
1996-03-02 23:55:17 +00:00
thorpej
9f2837ac9b
"oops", forgot to check this in...add entries for the cgfour and cgeight.
1996-03-01 08:11:00 +00:00
thorpej
f579d1a485
Fix an operator precedence botch. *sigh* This just hasn't been my week.
1996-03-01 07:44:43 +00:00
pk
abd3cf4df2
Don't reset `xs->retries'.
1996-02-29 23:33:48 +00:00
pk
bf59310f69
Fix typo, and bring back VA hole handling.
1996-02-29 22:15:13 +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
thorpej
93dff23036
Back out the "don't use DMA if SCSI_POLL is set" saftey-net. The
...
MI 5380 code did something I didn't really expect, which caused DMA
to disable itself if only DMA was enabled. *grumble*
1996-02-29 03:28:38 +00:00
gwr
2de7b2e5cb
update PMAP_PREFER
1996-02-28 22:44:33 +00:00
pk
8bea3309c3
Fix typo
1996-02-28 22:09:27 +00:00
thorpej
50c8d6cdb0
Oops...missed to places where I could have used CPU type macros.
1996-02-28 20:53:02 +00:00
thorpej
edf9d66f32
First-cut support for P4 framebuffers. Currently supports P4 variants
...
of bwtwo, cgfour, cgsix, and cgeight. Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).
P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.
This code may still need polishing.
1996-02-27 22:09:14 +00:00
pk
fe5a56ec9d
Be sure to malloc() in page-sized units.
1996-02-27 13:17:01 +00:00
pk
70eee90be3
remove a printf
1996-02-27 09:10:24 +00:00
pk
9216cf3276
Drain rev 1 chips in dma_reset().
1996-02-27 00:36:11 +00:00
pk
2c646f8da5
`bwtworeg' is just about the same as the generic `fbcontrol'.
1996-02-27 00:32:34 +00:00
pk
6b5eb65b21
bt_reg => fbcontrol.
1996-02-27 00:14:17 +00:00
pk
8628f94179
Use `video enable' bit in framebuffer control.
1996-02-27 00:11:14 +00:00
pk
2fe54615fb
Define a couple more framebuffer control bits.
1996-02-27 00:09:23 +00:00
pk
517988b940
Interims:
...
Comment out `STATINT' checking; this is apparently unreliable on some
ESP revisions.
Deal with target initiated synch re-negotiation.
1996-02-26 14:48:30 +00:00
mycroft
2ce52ae489
Define build programs with `?=', so they can be overridden with `makeoptions'.
1996-02-26 02:53:20 +00:00
pk
a3ab0e81da
Use CPU-type macros.
1996-02-25 22:03:20 +00:00
pk
3d182fe265
Use CPU-type macros
1996-02-25 21:53:49 +00:00
pk
ba0eb7ea59
Use CPU-type macros.
1996-02-25 21:45:53 +00:00
thorpej
1a5d5e25c6
Add an "sw_options" patchable global so that folks can still live life
...
on the edge (of sw DMA uncertainty) with pre-built kernels.
1996-02-23 16:29:34 +00:00
thorpej
ef3500b579
Attempt to work around a hardware bug that screws up DMA on the 4/100.
...
Apparently, some early 4/100 DMA controllers do illegal memory access on
large ( >= NBPG ) transfers at the end of the transfer. This appears
as SI_CSR_DMA_BUS_ERR in the csr. To work around this, we simply
transfer the (up to 3) missing bytes from the bpr. We were doing this
anyway, so the work-around is to ignore the bus error.
BUT! I goofed when I implemented the "left-over byte" code for the sw!
It *should* be correct now. Keep metrics (acceeible via DDB) on the number
of 1, 2, and 3 byte clean-ups, as well as the number of "clean" transfers,
just so we can get a clearer picture.
Thanks to Andrew Gillham <gillham@whirlpool.com> for noticing this!
1996-02-23 07:24:45 +00:00
mycroft
291267e40c
Implement SDEV_AUTOSAVE.
1996-02-22 23:35:04 +00:00
pk
2f3ad94f8d
An #ifndef _LOCORE to make this file safe to include in locore.s.
...
Introduce a couple of `CPU-type' helper macros to reduce the preprocessor
tangos in many a source file.
1996-02-22 21:59:08 +00:00
pk
e259a02425
Correct some prototypes.
1996-02-22 15:04:07 +00:00
thorpej
c86505a6a5
If we get a transfer with the SCSI_POLL flag set, don't use DVMA. We
...
only get these during autoconfiguration and during crash dumps. During
autoconfiguration, the transfers are small enough that DVMA won't be used
anyway. However, using DVMA during a crash dump can be dangerous,
depending on the nature of the panic, so we avoid it.
1996-02-22 07:25:05 +00:00
thorpej
2f132eb5e7
Bring in Gordon's fix from the sun3 port:
...
Correct the DMA transfer count when the target disconnects before
the whole transfer is completed. (Affects VME writes)
Reselect now works on the VME si board!
1996-02-22 07:14:53 +00:00
thorpej
a246f6c835
Fixup some RCS ids.
1996-02-22 06:50:49 +00:00
pk
66fedbbe19
Correct format in a printf().
1996-02-21 10:21:14 +00:00
chuck
adeed1d823
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
1996-02-21 03:36:51 +00:00
pk
b9de283ae6
Fix typo; pointed out by jtk.
1996-02-19 10:30:09 +00:00
pk
9b46365465
Adapt to changed kernel data structures (PR#2100).
1996-02-19 09:46:32 +00:00
thorpej
a9012450ec
Fix bug in bwtwounblank() ... didn't have code to enable video on sun4/200
...
obio framebuffer. Noticed when my 4/260 dropped into DDB and the screen
didn't unblank. Pull all of the video enable/disable into functions so
this mishap doesn't happen again.
1996-02-19 00:15:46 +00:00
pk
a5ea7547d2
Correct timetochip() prototype.
...
Cleanup microtime() a bit.
1996-02-18 15:38:41 +00:00
pk
1a62c0b31b
delay() takes an unsigned int; get the code to match.
1996-02-17 09:47:48 +00:00
pk
1caa80a432
Bring prototypes into scope.
...
Fix a few bogus `return's.
1996-02-17 00:03:17 +00:00
pk
f1518de67c
delay() prototype.
1996-02-16 22:13:34 +00:00
pk
cdb37b19d3
Account for the fact that `clockreg' might not be page-aligned.
...
Misc prototype goo.
1996-02-16 22:12:13 +00:00
pk
da1402dcb7
Eliminate <setjmp.h>.
1996-02-14 01:03:17 +00:00
pk
fe9d17199a
If `cold' simply halt the machine in boot(). Note, this still leaves a window
...
where vfs_shutdown() and sync() can be called prematurely.
1996-02-13 23:59:02 +00:00
pk
54bd5c6954
Fix ANSI prototype goof (from Openbsd).
...
Add explicit return type to most functions.
V3 PROM console support.
1996-02-13 22:49:48 +00:00
pk
773f74b60d
Change some caddr_t's to void *'s.
1996-02-13 22:43:33 +00:00
pk
58cd67c20d
Make sure we assign a value to variables we use.
...
Don't express size of NVRAM in terms of machine page size.
1996-02-13 22:38:25 +00:00
christos
8a8e1a4d94
caddt_t -> caddr_t
1996-02-13 17:13:22 +00:00
christos
cbb1d18e70
- Fix setcxsegmap prototype.
...
- Cast ?TO? macros to NULL to avoid compiler warnings
1996-02-13 17:04:58 +00:00
christos
967dc9fa87
make pmap_page_index return int instead of u_long
1996-02-12 21:15:37 +00:00
pk
3237aa23d2
Avoid compiler warning.
1996-02-12 21:05:18 +00:00
pk
d5ddbf99ab
Separate DMA and SCSI routines more.
1996-02-12 15:59:51 +00:00
thorpej
8a6ad45eed
In fdcretry(), if we're not using implied seeks, set the state to DOSEEK
...
rather than SEEKCOMPLETE before retrying the operation. If implied seeks
are being used, the state is set to DOIO (no change). This is why I
couldn't reproduce the disk_unbusy() panic on my SS2; it uses implied
seeks. Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:37:36 +00:00
christos
c6edd77b23
A few prototype fixes
1996-02-09 23:14:14 +00:00
mycroft
753fe3a25a
Fix mkdep problems due to missing flags.
1996-02-09 02:21:13 +00:00
chuck
2accbfeefb
- moved disk_busy() call from xdstrategy() to xdc_startbuf()
...
[prevents disk_unbusy panic when disk is loaded (if no
free IOPBs, xdstrategy() would queue the buffer for pickup
by xdcintr() but xdcintr() would never call disk_busy().
xdc_startbuf() is a better place since all bufs are routed
through here] problem detected by girish@dworkin.wustl.edu ,
diagnosed and corrected by me.
- move disk_unbusy() call in xdc_remove_iorq() before the call to
XDC_FREE() [don't want to access a data structure that was just put
on a free list]
1996-02-08 04:40:33 +00:00
thorpej
fa30609066
Protect clearing the Intersil chip's interrupt with splhigh(). If this
...
gets interrupted (by the higher priority zs hardware, for example),
the clock can come to a dead stop!
1996-02-06 22:59:03 +00:00
pk
d0abefaa36
beq -> be; some assemblers don't know about this alias.
1996-02-06 12:11:15 +00:00
pk
52c068d6e6
Be sure to reset the chip when relection fails to prevent corrupting data.
1996-02-06 02:03:46 +00:00
christos
684b37e33e
vm prototype changes.
1996-02-05 01:59:12 +00:00
pk
5fd7df3063
Move splbio to level 5.
1996-02-03 16:10:58 +00:00
mycroft
67eb39bcda
Make this compile with `traditional' cpp.
1996-02-03 04:36:01 +00:00
mycroft
5bc076e17e
Use `-traditional-cpp' when building .s and .S files.
1996-02-03 00:43:50 +00:00
mycroft
dcd66e9f4d
Clone these, and fix many bugs.
1996-02-02 20:08:17 +00:00
mycroft
2dfbe4f961
Don't define _LOCORE here.
1996-02-02 20:05:08 +00:00
mycroft
9d9a70a5a2
Fix #includes.
1996-02-02 18:05:36 +00:00
mycroft
fc9d84fb46
assym.s -> assym.h
...
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
thorpej
b97cbfb606
Implement DIOCLOCK. It's a no-op in this driver.
1996-01-30 18:31:05 +00:00
gwr
427556aeab
Move struct definitions to MD code.
1996-01-24 19:52:57 +00:00
thorpej
353f4388fb
Use a shutdownhook to make sure the drive motor is turned off
...
at halt/reboot time, as suggested by Perry Metzger.
1996-01-16 19:35:06 +00:00
thorpej
8a5504241e
Three distinct changes:
...
- Better disklabel handling. While a disklabel isn't used
in the driver, some versions of the OpenPROM insist on
one being present in order to boot from floppy. These
changes provide a default label (in a way similar to how
the SCSI disk driver provides a default) so that a user
can more easily place the label on the disk.
- Fix semi-bug in bootpath handling. It appears as if the
bootpath can appear in a couple of formats: "/fd@0,0", which
is what bootpath_fake() creates on v0 proms and may be
passed by some v2 proms, and "/fd0" which is what the
v2 prom on my SS2 passes. We now handle both formats.
- Use a mountroot hook to eject the floppy and wait for
the user to insert a filesystem floppy if we're the boot/root
device.
1996-01-15 00:14:42 +00:00
thorpej
3f8e0d27a6
Add a "mountroot hook" mechanism so that devices can take care of
...
special needs before being used in (*mountroot)().
1996-01-15 00:06:49 +00:00
chuck
ef895a47d4
- call mapiodev() with sizeof(struct xyc) rather than ra_len (which is
...
zero since xycmatch no longer sets it). [if you call mapiodev()
with a zero size it will reuse the KVA it returns, swiping the device
out from under you!]
- make xyc->iopbase point in the kernels DVMA space rather than at the
normal malloc'd KVA. this isn't compatable with sun4m [doesn't
have a kernel DVMA space] and will need to be changed later (XXX).
- move disk_attach() to before reading the disk label as per Jason.
otherwise we are reading into an unallocated buffer (oops!)
1996-01-13 03:42:40 +00:00
chuck
ca80988399
- call mapiodev() with sizeof(struct xdc) rather than ra_len (which is
...
zero since xdcmatch no longer sets it). [if you call mapiodev()
with a zero size it will reuse the KVA it returns, swiping the device
out from under you!]
- make xdc->iopbase point in the kernels DVMA space rather than at the
normal malloc'd KVA. this isn't compatable with sun4m [doesn't
have a kernel DVMA space] and will need to be changed later (XXX).
- move disk_attach() to before reading the disk label as per Jason.
otherwise we are reading into an unallocated buffer (oops!)
1996-01-13 03:35:53 +00:00
chuck
695a034ccd
change mapdev to panic if size == 0 to be safe.
1996-01-13 03:11:18 +00:00
chuck
dfbaa33f05
we handle all our mappings, so don't have obio.c do any for us
...
(i.e. don't set ra->ra_len in the match function).
1996-01-12 23:08:57 +00:00
chuck
3ef3001bec
nuke uneeded variable in match function.
1996-01-12 23:06:23 +00:00
chuck
93cc1b33e1
we no longer need to add in the offset to the mapped VA to get the correct
...
device address (bus_tmp, bus_map, and mapiodev now do this for us).
also, we handle all our mappings, so don't have obio.c do any for us
(i.e. don't set ra->ra_len in xycmatch).
1996-01-12 22:45:04 +00:00
chuck
d14b5cb80e
we no longer need to add in the offset to the mapped VA to get the correct
...
device address (bus_tmp, bus_map, and mapiodev now do this for us).
also, we handle all our mappings, so don't have obio.c do any for us
(i.e. don't set ra->ra_len in xdcmatch).
1996-01-12 22:43:55 +00:00
chuck
b5ddd8431d
dmamatch never added in the offset for the dma registers to the VA,
...
and thus probed the wrong address on the 4/300 (but it worked because
it was probing the esp0 registers!).
now that bus_tmp() adds the offset in for us [as of obio 1.19] i
discoved that a byte access to the dma registers is not allowed.
so, i've change probeget to use a word access.
1996-01-12 22:03:39 +00:00
chuck
afb262e8da
improved handling of mapping of devices who's registers do not reside on
...
page boundaries:
- change bus_tmp() to include the offset from the start of page in the
returned KVA [rather than forcing each driver to add it back in
individually]
- changed bus_map() to include the offset from the start of page in the
the returned value if a mapping is found in the PROM's KVA area
- clarified a few comments
1996-01-12 21:44:16 +00:00
chuck
c488310462
change mapdev() so that it includes the offset from the start of the
...
page in the virtual address it returns.
1996-01-12 21:22:46 +00:00
thorpej
43b4486bb3
Balance calls to disk_busy() and disk_unbusy() properly to avoid
...
dk_busy < 0 panics. Count seeks.
1996-01-12 00:19:29 +00:00
pk
f278cec042
Move bus_map() prototype here.
1996-01-11 21:55:57 +00:00
pk
9580abeba7
Should pass suitable arguments bus_map(); as noted by Chuck.
1996-01-11 21:54:03 +00:00
pk
7430f70694
Return `no error' after ejecting; per Jason.
1996-01-11 21:18:40 +00:00
pk
5035080586
Correct page frame calculation after mapdev() interface change.
1996-01-11 11:19:01 +00:00
pk
94bb8db5ad
Add shutdownhooks().
1996-01-10 23:00:33 +00:00
thorpej
926f925088
Re-arrange slightly the si_options special case for the `sw'.
1996-01-09 02:36:58 +00:00
thorpej
3cb556defb
Disable DMA by default on the 4/100 `sw' controller. I've had a couple
...
of reports of data corruption, and would rather be slow and safe until
the DMA bug is fixed.
1996-01-09 02:06:50 +00:00
thorpej
5b39541e48
New generic disk framework. Highlights:
...
- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.
- Storage for disklabels is now dynamically allocated, so that
the size of the disk structure is not machine-dependent.
- Several new functions for attaching and detaching disks, and
handling metrics calculation.
Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.
For usage and architectural details, see the forthcoming disk(9) manual
page.
1996-01-07 22:01:38 +00:00
christos
742cee29e5
Fix setcontext call and sendsig
1996-01-07 19:47:27 +00:00
pk
dd9e5c93c7
Use {U,L} suffices per Charles' recommendation.
1996-01-05 18:10:57 +00:00
jtc
2fce159ff8
Changed name of sigaltstack's ss_base field to ss_sp to match XPG4.2 and
...
traditional usage.
1996-01-04 22:21:33 +00:00
thorpej
d35bd4bb23
Fix a typo that would bite if the interrupt level were wildcarded in the
...
kernel config file.
1996-01-04 00:20:19 +00:00
thorpej
0e8ffc850f
"si" and "sw" actually interrupt at level 3 (which I quickly discovered
...
when porting the driver).
1996-01-01 22:46:08 +00:00
thorpej
33582e90e0
"si" and "sw" now have the ncr5380sbc attribute.
1996-01-01 22:44:05 +00:00
thorpej
6d6c652f18
New driver for the Sun SCSI-3 VME and 4/100-series SCSI "Weird" controllers,
...
utilizing David Jones' new MI NCR 5380 code. Ported from the sun3 ncr_si.c
and "sw" DMA code written by me.
This driver contains user-configurable "options", which can be set via the
"flags" directive in the kernel configuration file. By default, only
DMA is enabled. DMA completion interrupts and reselection may be enabled
by setting the appropriate bits with "flags". See si.c for details.
Note that DMA completion interrupts and reselection don't yet work on the
4/100 controller. I don't know why, and it's unlikely that I'll have
the opportunity to find out any time soon. DMA does work, and results
in a considerable performance increase.
DMA, DMA completion interrupts, and reslection all work on my 4/260 (VME)
system with modern SCSI-II disks.
1996-01-01 22:40:56 +00:00
mycroft
3a89082ff4
Make this work for GCC < 2.6.
1995-12-29 18:53:01 +00:00
thorpej
17eb6e2bc1
Move the old-style disk instrumentation "structures" to a central location
...
(sys/kern/subr_disk.c) and note that they should/will be deperecated.
1995-12-28 19:16:31 +00:00
mycroft
cd8fe86bcb
Make the type of __builtin_va_list a long.
1995-12-26 01:16:24 +00:00
mycroft
0c00214737
Use __builtin_va_alist.
1995-12-26 00:19:09 +00:00
mycroft
fa887628d8
Stylistic changes.
1995-12-25 23:15:31 +00:00
mycroft
72e24c3168
Update for GCC 2.7, and fix bugs.
1995-12-25 22:24:54 +00:00
mycroft
3da4b2a160
The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
...
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
pk
644c68a706
Towards machine independency, per cgd: macros to access hardware registers.
1995-12-18 23:58:31 +00:00
pk
b7feb4a35e
Enable interrupts; some ROM versions apparently turn them off.
1995-12-13 23:35:18 +00:00
pk
524718f597
Adapt to changed mapiodev() interface.
1995-12-11 12:45:16 +00:00
pk
d2ae46d04e
Agree with prototype.
1995-12-11 12:44:39 +00:00
pk
0d1981416d
Adapt to changed mapiodev() interface.
1995-12-11 12:43:14 +00:00
pk
f840d96cfe
Adapt to changed mapiodev() interface.
...
Use new DVMA routines.
1995-12-11 12:40:20 +00:00
pk
8f162e4e25
mapdev() now takes a `struct rom_reg' argument to get access to `iospace'.
1995-12-11 12:34:36 +00:00
pk
2b7034a493
The return of dvma_malloc/dvma_free in a different shape.
1995-12-11 12:32:56 +00:00
pk
528ea56588
Change mapdev() and mapiodev() to take a `struct rom_reg', enabling the use
...
of IO spaces to construct device mappings.
1995-12-11 12:31:02 +00:00
pk
51c8280df1
Prototype dvma helper functions `dvma_malloc()/dvma_free()'
1995-12-11 12:25:17 +00:00
pk
5c50eeb245
Prevent possible race condition in ctx_alloc().
...
Remove some bogus casts.
1995-12-11 01:27:28 +00:00
pk
7987c7fce9
Use `def_width' and `def_height' as default values when getting rom properties.
1995-12-10 22:55:32 +00:00
mycroft
494a9b9eb9
Use the MI LANCE code.
1995-12-10 10:15:06 +00:00
mycroft
46366f34e7
Include vm.h, rather than guessing which files we need.
1995-12-10 06:50:58 +00:00
mycroft
292120bf63
Define __FORK_BRAINDAMAGE.
1995-12-09 04:41:41 +00:00
pk
5c482e804d
Don't forget to flush the cache in vunmapbuf().
1995-12-07 22:18:54 +00:00
pk
480398f38e
dvma_malloc => malloc/dvma_mapin. (not the most elegant solution, but it'll
...
have to do for now).
1995-12-06 22:40:22 +00:00
pk
f6a3272e25
DVMA space is described by the variables `dvma_start' and `dvma_end'.
...
Prototype dvma_map*() routines.
1995-12-06 22:35:54 +00:00
pk
7299c7a6c0
Have v[un]mapbuf() allocate from plain kernel map instead of dvma space.
...
Remove dvma_malloc/dvma_free; drivers should allocate kernel memory and
use dvma_mapin/dvma_mapout to double map it in DVMA space.
Make the resource map `dvmamap' responsible for all DVMA allocation.
The VM map `physmap' only serves the role of placeholder in the VM system.
1995-12-06 22:33:49 +00:00
pk
210b4d80ec
Make pmap_prefer() also return a preferred virtual address when there's no
...
associated physical page.
1995-12-05 23:01:39 +00:00
pk
8a1606d530
Don't return `XS_DRIVER_STUFFUP' too easily; this can hose buffer cache
...
writes. Say XS_TIMEOUT in stead so the scsi code will retry.
1995-12-01 01:00:55 +00:00
pk
a2a4da4874
Merge changes from sun3 port; per Gordon.
1995-11-29 23:43:42 +00:00
pk
ee08e9085b
Extend the size of the "soft" FIFOs which reportedly reduces the number
...
of FIFO overflows on high baud rates.
However, doing so on all 4 ports would cost a whopping 64KB (at 4096 entries
per FIFO) of kernel memory. So, the FIFOs are now allocated at attach time
allowing the size for the keyboard and mouse ports to be reduced (to 128)
which should be adequate for the 1200 baud they use.
1995-11-29 23:41:31 +00:00
pk
12bfe2e68e
Must change `u_long' to `u_int32_t' as Jason pointed out.
1995-11-29 22:03:53 +00:00
pk
6e53c6a5fd
In probe[gs]et() there's no need to check against KERNBASE, as pointed
...
out by David Jones and Chris Torek.
1995-11-29 01:52:41 +00:00
pk
e9a919b88f
Code from Jason to better configure /dev/fb.
1995-11-29 01:45:36 +00:00
pk
ce474272f1
Prevent synch negotiation on ESP100 chips
1995-11-28 22:49:31 +00:00
pk
9bf3251e46
Lots of major and minor bug fixes and changes.
...
- properly do MSG_IN handshaking, so we can actually receive multi-byte msgs.
- do synch negotiation (now that the above works).
- handle disconnects.
There are a few trial-and-error bits at points where the docs I have are
particularly ambiguous about the state of chip and/or SCSI bus.
Things to do:
- more cleanup
- deal with MSG_OUT phase better
- keep some "config reg 3" bits per target (ie. FASTCLK and FASTSCSI).
1995-11-28 20:49:12 +00:00
pk
def161af38
Careful with signed chars (caddr_t *!).
...
Merge in 1.1 changes.
1995-11-28 20:26:59 +00:00
pk
0c031adc76
Not all v2 proms understand the `mac-address' word (from Theo).
1995-11-14 15:04:01 +00:00
pk
c7d1d39b3e
dk_device => device in controller structure (noted by Jason Thorpe).
1995-11-11 21:12:50 +00:00
pk
c2cd05605d
UFS => FFS conversion.
1995-11-08 09:09:20 +00:00
pk
54ec9fb697
Correct test for sun4 machines (thanks Chuck).
...
Since uname currently does not allow to discriminate different sparc
models, we use `sysctl.hw.cpumodel' to do this somewhat heuristicly:
if the returned strings starts with "SUN4-" a sun4 architecture is
assumed. This information is used to determine whether or not to strip
the a.out header off the 1st-stage bootblocks.
1995-11-07 11:45:24 +00:00
pk
996526aa02
Make error recovery actually work, i.e. don't hang on SCSI bus resets
...
and re-synchronize before re-scheduling pending operations.
Things seem to be a fair bit stabler now.
1995-11-03 16:47:43 +00:00
pk
bbdb422873
Stop DMA before resetting
1995-11-03 16:34:12 +00:00
pk
c0a156c9fd
Map pixels in VME32 space
1995-10-28 23:15:16 +00:00
pk
e4fcc8ab5a
Move DMA chip draining to dmaintr() and drain when a (possibly partial)
...
transfer ends in stead of doing it before starting a new transfer.
Use a different CSR bit to wait for "chip not busy" (may be necessary to
make this conditional on chip revision).
1995-10-24 16:26:54 +00:00
pk
a3f2bf19e4
Various:
...
- make esp_poll() approximate the given timeout value.
- introduce esp_abort(), and use it for timed out commands; make targets and driver less confused.
- make {free,ready,nexus}-list management somewhat more coherent.
- make sure we only proceed down the state machine in espintr()
if there really is an interrupt pending.
1995-10-24 16:03:57 +00:00
pk
dc3c0d7db7
Define VIDEO enable bit (per Jason Thorpe; PR#1672).
1995-10-23 23:36:28 +00:00
pk
7a9ddaff33
On-board bwtwo diddles a system enable register bit for video, per Jason
...
Thorpe (PR#1672).
1995-10-23 23:35:03 +00:00
pk
5e55f88874
Remove `-fno-builtin'.
1995-10-22 17:36:33 +00:00
pk
bbfd54d128
Merge from netbsd-1-1 branch: kgdb_debug_panic decl; PR1633
1995-10-18 21:54:34 +00:00
pk
ce2afd8d64
Sync filesystem before running installboot.
1995-10-11 13:32:57 +00:00
pk
64a90cd0b0
Check input channel in gettick(); for `L1-A' processing.
1995-10-10 20:11:33 +00:00
pk
ebe37d8041
We don't need `rem.o'.
1995-10-10 20:07:54 +00:00
pk
4dcb5917b8
Brr.. libkern.o is way too big for our bootxx..
1995-10-09 23:25:54 +00:00
pk
be2f4294bf
Add `fd' to list of possible boot devices.
1995-10-09 22:34:03 +00:00
pk
c4dc969b09
Point `bootdv' at the disk device instead of the controller (from Jason Thorpe).
1995-10-09 22:33:07 +00:00
pk
53eb8f8175
RASTERCONS now works on sun4's too.
1995-10-09 15:39:34 +00:00
pk
1ad1d128e3
Fill in `ascent' values correctly.
1995-10-08 19:31:44 +00:00
pk
ecf1cf893d
Add forgotten `eeprom' configuration.
1995-10-08 11:45:39 +00:00
pk
21a594651a
eeprom_match: account for differing physical addresses (per Jason Thorpe).
1995-10-08 11:44:59 +00:00
pk
87a0c55d23
Patch from Jason to factor out a common framebuffer size determination
...
routine from the individual drivers.
1995-10-08 01:39:13 +00:00
mycroft
c078d7a9f4
Remove __builtin_saveregs().
1995-10-07 22:27:31 +00:00
mycroft
6287d3d7b2
Remove bzero().
1995-10-07 22:24:50 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
pk
48849279bf
Script to assist installing second-stage boot programs.
1995-10-05 21:03:12 +00:00
pk
aea329df61
rcons: rc_maxcol and rc_maxrow were swapped.
1995-10-05 13:16:57 +00:00
pk
c8f10b184c
Do not set `ra_len' in bwtwomatch(); we only need the pixels for CONSOLE,
...
but if so, we need the lot.
1995-10-05 00:33:23 +00:00
pk
de0c6a97bd
RCONSOLE => RASTERCONSOLE.
1995-10-05 00:26:07 +00:00
pk
c1e313b122
include `files.rcons'.
1995-10-05 00:21:35 +00:00
pk
b79dc038d5
Machine dependent RASTERCONSOLE font definition to be passed to rcons_init().
1995-10-05 00:02:54 +00:00
pk
859b799130
RCONSOLE => RASTERCONSOLE
1995-10-04 23:44:33 +00:00
pk
d19cacbb03
RCONSOLE => RASTERCONSOLE.
1995-10-04 23:35:13 +00:00
pk
dad96c6619
Add a few constants used for mapping bit and pieces in the kernel driver.
1995-10-04 00:21:27 +00:00
pk
32c023995c
Bring reset logic into interrupt state machine.
1995-10-03 17:32:12 +00:00
pk
fcc53878ca
Make fbrcons_init() resistant against SUN4s.
1995-10-02 21:48:21 +00:00
pk
cfbe993b9b
Update to use <machine/cgtworeg.h>
1995-10-02 21:44:51 +00:00
pk
38d1101ad3
Silly me.. there's already a <machine/cgtworeg.h>
1995-10-02 21:44:22 +00:00
pk
fb58a99a8f
Fix some bogus calls to {read/write}disklabel().
1995-10-02 21:04:45 +00:00
pk
82434458cc
Get some of the bugs out. Thanks to David Gilbert for testing.
1995-10-02 09:07:03 +00:00
pk
13dcbfbb29
Make this work with OBJ dirs.
1995-09-30 21:43:35 +00:00
pk
160b38697c
Refer to installboot(8)
1995-09-30 21:33:30 +00:00
pk
a029979ad3
Manual page for installboot(8).
1995-09-30 21:32:14 +00:00
pk
691b9f2bfa
Avoid reading the filesystem superblock in bootxx; all info now prepared
...
by installboot (per Gordon Ross).
1995-09-27 09:03:13 +00:00
chuck
b3ecc4c310
make sure devopen() sets pd->devtype properly when BOOTXX is defined
...
(should be DT_BLOCK). otherwise the bootxx boot block will fail if
you are on a system with a v2 openprom [because it will not do the
v2_seek in obp_strategy()]. fixes the problem recently noted on
the port-sparc list by matthew green <mrg@eterna.com.au>. i tested
fix on a ss2 with a v2 prom.
1995-09-26 20:07:53 +00:00
pk
f33cf7c909
Correct cgtwo address.
1995-09-25 22:33:37 +00:00
chuck
b47de9fb69
new "xy" disk device driver from me.
...
the "xy" driver runs Xylogics 450/451 SMD disk controllers.
1995-09-25 20:35:14 +00:00
chuck
25563b1f82
add config info for "xy" xylogics 450/451 driver
1995-09-25 20:27:30 +00:00
chuck
8d19642cd6
add "xy" xylogics 450/451 config stuff
1995-09-25 20:20:27 +00:00
chuck
1779adf6be
minor cleanups:
...
- don't let pcyl go unassigned if we have a non-sunos disklabel.
if nothing else, guess pcyl = ncyl + acyl.
- don't use bogus disklabel data if disk label is invalid
(xdgetdisklabel() now returns if label was ok or not).
- move xddriver decl. before start of actual code (cleanup).
1995-09-25 20:12:44 +00:00
chuck
2aff99a206
bug fix: xddummystrat() was clearing all but B_BUSY when it should
...
have been clearing just B_BUSY (s/B_BUSY/~B_BUSY/). this
fixes hard hang when reading disklabel when booting system.
minor clean up: added a few prototypes and only fool with bootpath
if booting the system (in xdattach).
1995-09-25 16:02:09 +00:00
pk
825bd034de
Move pseudo swap block device to major 4 to make way for `xy'.
1995-09-24 20:45:27 +00:00
chuck
4408ec71bf
init bad144 table before we actually try and read anything from the
...
disk, rather than init'ing after reading block 0 [in case we get an
error reading block zero].
1995-09-24 00:27:59 +00:00
thorpej
b903d705da
Compile the kernel with -Werror and -fno-builtin.
1995-09-19 23:26:58 +00:00
thorpej
7d7396c414
Make system calls conform to a standard prototype and bring those
...
prototypes into scope.
1995-09-19 22:53:47 +00:00
pk
c030fa6ef2
Install in /usr/mdec
1995-09-18 23:33:42 +00:00
pk
aa41c30406
Don't strip bootxx on installation.
1995-09-18 23:32:41 +00:00
pk
4025edc861
Make this compile again by calling readdisklabel() with a dummy strategy routine.
...
XXX - need some reorganization to this from xdopen().
1995-09-18 23:26:39 +00:00
pk
371dd67d56
sync filesystems just prior to writing the bootblocks to the raw device.
1995-09-18 22:36:19 +00:00
pk
974115eb54
Adapt to libsa changes & some other minor nits.
1995-09-18 21:31:44 +00:00
chuck
05f929580f
read superblock into &sblock rather than LOADADDR. we can't read
...
into LOADADDR because it can't be mapped into DVMA space. this fixes
a dvma panic on a sun4 boot from an xd disk.
1995-09-18 20:24:53 +00:00
chuck
24ba08adca
Fixed RELOC's to be hex numbers (as expected) rather than decimal.
...
(e.g. s/340000/0x340000/). Fixes DVMA panic on my sun-4/280 when
booted diskless.
1995-09-18 19:52:15 +00:00
pk
f447526366
vmes => vmes0
1995-09-17 21:11:13 +00:00
pk
11f1ea06af
These files have moved to sys/dev/rcons.
1995-09-17 21:08:25 +00:00
pk
2c523b5941
Remove rcons lines.
...
Add cgtwo.
1995-09-17 21:03:36 +00:00
pk
30150218f5
Add cgtwo0.
1995-09-17 21:02:56 +00:00
pk
c5bc107461
cgtwo framebuffer, cloned from cgthree.c and sun3's cg2.c.
...
Note: untested, shall be considered a framework to get things started..
1995-09-17 20:53:43 +00:00
pk
c92d076f5b
Change interface to th `fb' pseudo device to not need the major device
...
number (a la sun3).
Put in new glue for rcons.
1995-09-17 20:43:39 +00:00
pk
b89096d14f
Remove all rcons related stuff from `fbdevice'; this is now defined in
...
dev/rcons/rcons.h.
1995-09-17 20:41:30 +00:00
pk
a32163f292
Correct some prototypes.
1995-09-17 00:50:54 +00:00
pk
f97c30e5fe
Network booting; "oldmon" support; combine all functionality in single images.
...
Many thanks to Gordon Ross and Chuck Cranor for figuring out and testing
the old monitor (sun4) stuff.
1995-09-16 23:20:22 +00:00
pk
db43cabe32
Re-instate configuration print routines, following Chris' suggestion.
...
Only prints something if there's no scsi bus to attach.
1995-09-14 20:38:53 +00:00
chuck
851669ceab
cleaned up bootpath code:
...
- v2 openprom disk boot generates "/sbus/esp/sd@3,0" which we translated
into "/sbus@0,0/esp@0,0/sd@3,0"... this caused esp.c to reject
the bootpath because it was looking for sbus slot/offset 0,0.
changed the code to generate "/sbus0/esp0/sd@3,0" to fix this
panic.
- when generating fake boot paths, generate them with unit numbers
rather than slot/offsets (thus, /obio@0,0 becomes /obio0, as
does vmel and vmes).
- fixed up comments to reflect these changes
tested new code on: 4/280 (diskless), 4/360 (diskless), 4/360 ("xd" disk),
4/370 (scsi disk), ss1 w/v1 openprom (diskless),
ss1 w/v1 openprom (scsi disk), ss2 w/v2 openprom (diskless),
ss2 w/v2 openprom (scsi disk).
1995-09-12 22:03:02 +00:00
pk
9d7c17bfcb
We have no need for `esp_print()'; the only child we expect is a `scsibus',
...
and there's nothing to say if it isn't there. Returning -1 is an error
anyway as noted by Chuck Cranor.
1995-09-11 19:41:21 +00:00
pk
0a5ab32e3d
We have no need for `si_print()'; the only child we expect is a `scsibus',
...
and there's nothing to say if it isn't there.
1995-09-11 19:35:06 +00:00
pk
5bf0d8e4fa
`si' and `sw' are scsibusses.
1995-09-11 19:20:12 +00:00
pk
bac2393fb0
Probe config registers correctly.
1995-09-06 12:35:38 +00:00
pk
896097d846
Fix `le' faked bootpath (PR#1438, Rolf Grossmann).
1995-09-05 21:46:04 +00:00
pk
60a7c4c394
Add `sw' scsi adapter on obio (per Jason Thorpe, PR#1422).
1995-09-05 21:43:09 +00:00
pk
b04e172458
Rename a `xxx' function.
1995-09-04 09:53:53 +00:00
pk
003751356c
Patches from Jason Thorpe to deal with 4/110 scsi (PR#1422). Also includes
...
bootpath glue (PR#1414) (this needs finishing off in disksubr.c).
1995-09-03 22:21:27 +00:00
pk
8bdbf4be70
Update from Jason: eeprom device needs 8-bit access.
1995-09-03 21:55:36 +00:00
pk
af6e3d03cf
Add data structures used to interface to the monitor-resident drivers.
1995-09-03 21:36:06 +00:00
mycroft
29053c58b2
SA_ONSTACK --> SS_ONSTACK
1995-09-01 20:05:59 +00:00
pk
9b3308eeec
Enable writing of disklabels (Many thanks to Jason Thorpe, Gordon Ross
...
and Matthew Green).
1995-09-01 17:19:50 +00:00
pk
b1ae3d7339
Garbage collect.
1995-08-29 23:09:29 +00:00