pk
a05df4e228
* finish off support for the 82077 chip as found on sun4m machines.
...
* add non-dma mode bit to `specify command', so formatting disks starts
working (thanks to Jeremy Cooper for finding out about this).
1997-05-02 13:03:44 +00:00
pk
3e9d89dcd0
Switch to copy of file in /sys/dev/ic.
1997-05-02 08:30:42 +00:00
jeremy
e5380025ac
Now in dev/ic.
1997-05-02 06:31:16 +00:00
briggs
1b2e317732
Thanks to Tobias Beal <tbeal41@maine.maine.edu>, we can clear interrupts
...
on at least one Radius Precisioncolor 8 board.
1997-05-02 00:54:28 +00:00
gwr
7a80e420ed
Remove unused part of sun3_kcore_hdr.
1997-05-01 22:48:09 +00:00
briggs
aba671db48
Treat drhw 118 and 119 the same for Apple ethernet cards.
1997-05-01 18:17:13 +00:00
thorpej
766d429d62
Correct a comment long since outdated.
1997-05-01 16:24:26 +00:00
gwr
24af362f60
Implement pmap_pa_exists() so that /dev/mem works.
...
This was the reason ps (kvm_getargs) did not work.
1997-05-01 15:00:11 +00:00
gwr
b9a0ca59bb
oops...
1997-05-01 14:58:20 +00:00
gwr
887d5be03e
Forgot to import this. (Thanks, der Mouse)
1997-05-01 14:57:17 +00:00
cjs
4072012b2b
Ep driver on ISA bus is no longer untested. Also optimistically
...
removed the `untested' designation from the EISA-bus version, since
there's no reason at all why it won't work.
1997-05-01 07:11:11 +00:00
thorpej
989ed431e1
Oops, the numbers for "t" and "s" got swapped around. No functional
...
difference, just correct now.
1997-05-01 05:26:48 +00:00
briggs
a64bc3c19c
Clear the interrupts properly on an E-Machines Futura II LX and make a wild
...
guess at clearing them on a Futura II SX/DSP and RasterOps ColorBoard 364.
Thanks to Michel Chalufour <michelc@tiac.net> for loaning me the II LX.
1997-05-01 03:34:07 +00:00
briggs
ef185efb22
Add in a couple more board types.
1997-05-01 03:31:07 +00:00
gwr
5e11440dae
Fix printf format vs. arg type warnings (in DEBUG sections).
1997-04-30 23:28:03 +00:00
scottr
19f1b8dd3f
Remove dependency on if_aereg.h for vendor constants; these are really
...
driver-, not architecture-specific.
1997-04-30 19:47:11 +00:00
scottr
b28e1b9459
Fix typo in last change.
1997-04-30 19:32:32 +00:00
scottr
4a36cdfd19
Adjust to use16bit -> dcr_reg change in MI driver.
1997-04-30 18:10:37 +00:00
mycroft
19c4f04eeb
Sync with GENERIC, and nuke procfs and kernfs.
1997-04-30 06:06:02 +00:00
augustss
526ef2f618
Change the interface between the high and low level audio drivers
...
so that all audio encoding parameters are set at once. This simplifies
the interface and make error checking easier.
1997-04-29 21:01:33 +00:00
scottr
0852aa1f1a
Use the new 8390 driver back end.
1997-04-29 05:17:13 +00:00
scottr
63ac9ee6e0
Use the new MI 8390 driver, and garbage collect.
1997-04-29 04:40:22 +00:00
jonathan
d6611ebcef
* Add fixes for possibly-uninitialized variables from rev 1.11.
...
(The operator-precdence changes in 1.11 were pulled up in rev 1.14).
* If the chip asserts a SCSI-bus error (SII_BER) in sii_intr,
reset the SII_BER bit instead of ignoring it.
XXX SII_BER May need checking and resetting elsewhere.
1997-04-29 01:58:38 +00:00
gwr
42f8cf900b
Use unsigned when doing copy/xor check.
1997-04-28 23:43:56 +00:00
gwr
cb96a536e4
Add a comment about obio_mapin().
1997-04-28 23:38:47 +00:00
gwr
1046c915b6
Drivers that use obio_mapin should enforce OBIO attachment
...
(just to be paranoid).
1997-04-28 23:30:19 +00:00
gwr
304d49b554
include <machine/leds.h>
1997-04-28 23:21:01 +00:00
gwr
712f2e8d93
Moved leds_* declarations into leds.h
1997-04-28 23:19:39 +00:00
gwr
589bdf49d5
si_intr: if our CSR indicates an interrupt, return 1.
1997-04-28 22:10:41 +00:00
gwr
445e244536
Do console initialization earlier (see obio_init).
...
Document initialization order dependencies.
1997-04-28 22:08:36 +00:00
gwr
2e1c5c36ad
Be quiet in _save_symtab() unless there is a problem.
...
Improve some comments (and sync with sun3x code).
1997-04-28 22:06:20 +00:00
gwr
2223431f0a
No longer needs an early init call (just normal autoconfig).
...
Only animate the LEDs when we were idle (like SunOS).
1997-04-28 22:04:29 +00:00
gwr
df35245ac0
Fix a bug where OBIO locators were not presented to the children.
...
Rename obio_alloc to obio_mapin; add comments, etc. (like sun3x)
1997-04-28 22:02:43 +00:00
gwr
388bf0e0e0
Rename obio_alloc/obio_mapin and check for obio in match functions
...
for attachments that will use obio_mapin.
1997-04-28 21:59:19 +00:00
gwr
a5efc65699
Sync. up with the sun3x version.
1997-04-28 21:55:59 +00:00
gwr
479d3fa66d
No longer needs an early init call (just normal autoconfig).
1997-04-28 21:51:49 +00:00
gwr
3c841dcb79
Export the symbol _Idle for clock.c (and fix some comments).
1997-04-28 21:49:38 +00:00
gwr
dcd4fae823
Use AUTOVEC_BASE instead of 0x18.
1997-04-28 21:48:25 +00:00
gwr
46cd1d0fec
Add a kernel declarations section.
1997-04-28 21:47:10 +00:00
gwr
52e455e8ba
Fix declaration of get_control_byte().
1997-04-28 21:46:31 +00:00
gwr
236a126750
Declare peek_long().
1997-04-28 21:45:47 +00:00
gwr
a0d8cf3b65
Kill an obsolete comment.
1997-04-28 21:44:53 +00:00
scottr
c69d32662f
From Mycroft: Oops; forgot to GC the last mbuf allocated when
...
out of clusters.
1997-04-28 20:31:16 +00:00
mycroft
df082e3c8d
A handle of 0 means the open failed...
1997-04-28 18:46:15 +00:00
mycroft
37cb09ba66
DTRT if OF_read() returns 0 when no data is available.
1997-04-28 18:33:57 +00:00
scottr
70dcf0b5f6
Undo a hack added in the last overhaul (which caused an extraneous byte
...
to be written to the target). Also, use the sc_min_dma_len field
to determine whether to use PDMA or PIO.
1997-04-28 15:59:20 +00:00
pk
547d95a029
Remove esp FLUSH when residual bytes are present in FIFO, the ncr53c9x
...
driver will flush when necessary. Doing the FLUSH here interferes
with DMA-enabled target selection.
1997-04-27 22:12:40 +00:00
thorpej
97a6c32e58
Garbage-collect a bunch of _very_ hp300-specific code, most of which
...
doesn't work anyhow (due to current and future fundamental differences
between NetBSD and HP-UX device semantics). This can probably be shared
with other m68k ports now.
1997-04-27 21:38:57 +00:00
thorpej
ba0a5d5c58
Bump version: Better SPU detection code
1997-04-27 21:18:31 +00:00
thorpej
8b4cae0516
CPU -> SPU
1997-04-27 21:17:13 +00:00
thorpej
3cb561ed9f
Don't define our own machineid values - pull in <machine/hp300spu.h>
1997-04-27 21:15:14 +00:00
thorpej
fbad957c52
Update getmachineid() for new machineid values.
1997-04-27 21:13:55 +00:00
thorpej
767517edcc
Don't even look for a Domain keyboard if we're not a 400, 425, or 433.
1997-04-27 21:12:43 +00:00
thorpej
5b511796c1
Uniquely identify 345 vs. 375 vs. 400 and 380 vs. 425. Adapted by me from
...
code provided by Mike Smith. While I'm here, convert this file to use
macros from <machine/asm.h> rather than making assumptions about how
C labels are handled.
1997-04-27 21:10:06 +00:00
thorpej
cdb54b8d65
Update for new SPU options.
1997-04-27 21:06:29 +00:00
thorpej
b27a863b02
Generate option headers for SPU type options, so that we may generate
...
dependencies on them.
1997-04-27 21:05:49 +00:00
thorpej
772891accd
Use information provided by <machine/hp300spu.h> to determine if we
...
might have a physical address cache.
1997-04-27 21:02:34 +00:00
thorpej
650df29d4d
These files depend on things in <machine/hp300spu.h>
1997-04-27 20:58:55 +00:00
thorpej
18a931000e
Use <machine/hp300spu.h> to determine if we might have a physical address
...
cache.
1997-04-27 20:54:39 +00:00
thorpej
544f501d29
Rewrite identifycpu() to be partially table-driven, and to be more
...
sane in general. Since we can uniquely identify each SPU type
(except for 318/319/330, because there _are_ no differences, really),
require that the appropriate SPU option be configured into the kernel.
1997-04-27 20:53:30 +00:00
thorpej
d62e267a0c
Uniquely identify 345 vs. 375 vs. 400 and 380 vs. 425, useful when
...
looking for hp4xx-only hardware during autoconfiguration. Code
mostly from Mike Smith, with a few changes by me.
1997-04-27 20:50:01 +00:00
thorpej
9d4c5c9106
- Define new machineid and mmuid constants.
...
- Rearrange slightly.
1997-04-27 20:47:23 +00:00
thorpej
fc79829eab
#include <machine/hp300spu.h>
1997-04-27 20:43:37 +00:00
thorpej
80ff0f0f2f
- Move a bunch of hp300 SPU-specific stuff out of cpu.h, and place it
...
in new hp300spu.h file. This includes the code that associates
model number with cpu/mmu/cache combinations.
- Define "mmuid" constants for several models, derived from code
provided by Mike Smith.
1997-04-27 20:37:07 +00:00
thorpej
f5ccce44c8
srt0.s renamed to srt0.S via repository copy Magick - we want this
...
file to be preprocessed before it is assembled.
1997-04-27 20:29:43 +00:00
briggs
d25f63a7bf
What was I thinking?
1997-04-27 19:26:48 +00:00
is
5c869c4c5b
The delay loop needs 8 cycles, not 3, on the 68030; so use _that_ value
...
for the pre-calibration.
1997-04-27 18:14:34 +00:00
tls
c96effb7f8
don't allow i386_set_ioperm if securelevel > 1, either (and fix a really silly bug)
1997-04-26 21:33:42 +00:00
tls
3d9b09a843
If in highly-secure mode, don't ever allow access to IO ports
1997-04-26 20:30:02 +00:00
jonathan
26adc250c2
Stop ignoring DCD transitions on ioasic SCC serial lines.
...
From entropy@zippy.bernstein.com>.
1997-04-26 02:26:54 +00:00
jonathan
45d369d5fb
Ted Lemon's (RR 3540) cross-compilation patch: use ${SIZE} instead of size,
...
Also add "SIZE=? size", so that native kernel compiles work, too.
1997-04-26 02:20:59 +00:00
jonathan
55a34d0cf4
Add "options MIPS1" and delete commented-out lines inherited from GENERIC.
1997-04-26 01:35:41 +00:00
gwr
5d8f130bb6
Be quiet in sunmon_abort().
1997-04-25 22:26:14 +00:00
veego
560544f47c
Add a -I${.CURDIR} to build netbsd.sa with a obj dir
1997-04-25 22:17:33 +00:00
leo
7c2c0c846c
- Provide the reasonable size that can/may be mmap-ed. This might differ
...
from the current frame buffer size.
- The et-driver now allows for a 16Kb io-region (was 8Kb) that can be
mapped. The XFree server uses this.
1997-04-25 19:25:38 +00:00
leo
d5733f126e
Allow formatting of 360Kb floppies.
1997-04-25 19:18:04 +00:00
leo
d1c63a4095
Changes to bounds_check_with_label:
...
- Take care of the case where d_secsize < DEV_BSIZE (From Waldi Ravens)
- Don't check if an unsigned value <= 0. This was the cause of various
panics when savecore(1) was reading at bogus offsets because the crash
dump format was changed. Thanks to Jason for unintently revealing the
bug ;-)
1997-04-25 19:16:30 +00:00
gwr
92efd222d0
Hack for now: if fpu is there, report it as an mc68882.
1997-04-25 19:16:10 +00:00
gwr
dfc2e0f30d
Add devices: idprom, oclock. Add file leds.c.
1997-04-25 19:12:57 +00:00
gwr
1676e3a212
Add idprom, oclock, and rearrange somewhat.
1997-04-25 19:11:48 +00:00
leo
ef06b2e55d
Use info on the actual RAM-segments to check the validity of /dev/mem
...
accesses. Reformat some comments.
1997-04-25 19:07:45 +00:00
gwr
cd6ee4737e
Renamed obio_alloc/obio_mapin.
1997-04-25 19:02:46 +00:00
gwr
678f326c7f
Make idprom_init() figure out where the IDPROM resides.
...
Add autoconfig glue, which currently just shows the
address where the IDPROM was found.
1997-04-25 19:02:06 +00:00
gwr
49f095a342
No longer need eeprom_init().
1997-04-25 18:57:49 +00:00
gwr
e2ca51d2a1
Fixed OBIO locators bug, so this can do the normal thing now.
...
Also improved handling of spurious interrupts, and sync up with
the sparc version.
1997-04-25 18:55:05 +00:00
gwr
4c64781365
Moved the actual model identification work into identifycpu(),
...
which used to be in _startup.c:_verify_hardware().
Use sunmon_abort() in cpu_reboot() for now...
1997-04-25 18:52:11 +00:00
gwr
9ae1b69554
Rename "Idle" to "_Idle" so clock.c can reference it.
1997-04-25 18:48:39 +00:00
gwr
25d7b6b348
Provide a struct representing only the clock.
1997-04-25 18:47:41 +00:00
gwr
885a1fc439
Add /dev/leds support.
1997-04-25 18:46:10 +00:00
gwr
2dd63e3378
Use bus_mapin, and minor tweaks.
1997-04-25 18:45:39 +00:00
gwr
f7749f47fe
Add "oclock" support for the Sun3/470.
1997-04-25 18:31:37 +00:00
gwr
8f9276c727
Move the _verify_hardware() work into machdep.c:identifycpu().
...
Call obio_init() after _vm_init() so we can use peek_byte() to
probe the idprom. Be quiet in _save_symtab() when all is well.
1997-04-25 18:29:58 +00:00
gwr
b41693a034
Moved bus_scan() and bus_print() from here to bus_subr.c
...
because they are now different in sun3 vs sun3x.
1997-04-25 18:07:36 +00:00
gwr
477a320277
Moved bus_scan() and bus_print() here from autoconf.c
...
because they are now different in sun3 vs sun3x.
1997-04-25 18:02:47 +00:00
gwr
3619a4da3d
Rename obio_alloc to obio_mapin, update *_init declarations.
...
Remove OBIO_P4_REG (not a fixed address, but per-device).
1997-04-25 18:00:49 +00:00
gwr
fd42058232
Add kernel function declarations.
1997-04-25 17:52:54 +00:00
gwr
23f821bcc5
Add idprom_init().
1997-04-25 17:42:34 +00:00
gwr
963c410824
Change the OBIO address probe order a little, to allow determination of
...
which kind of idprom and clock we have (3/80 vs 3/470 differences).
Fix a bug where obio_submatch() failed to copy some locators.
Rename obio_alloc to obio_mapin. Add lots of comments.
1997-04-25 15:35:27 +00:00
gwr
20ac88e4b1
Add /dev/leds support for the 3/470.
1997-04-25 15:15:45 +00:00
briggs
e861dbf8c7
A couple of performance improvements from Denny Gentry <denny1@home.com>
1997-04-25 03:40:09 +00:00