Commit Graph

11772 Commits

Author SHA1 Message Date
thorpej
33e1caaf99 Couple of changes:
- New delay() function, modeled after sun3/mvme68k delay,
	  calibrated with a model's known cpu speed.
	- Use the defined constants for machineid and ectype
	  when determining what kind of machine we have, rather
	  than their expanded equivalents, for clarity.
	- Move the vector table to the data segment so that it
	  can be patched at run-time.
1996-05-17 15:27:26 +00:00
thorpej
bbc04e2011 Define the machineid and ectype constants. 1996-05-17 15:20:55 +00:00
thorpej
b20981c51d Remove cpuspeed from here. 1996-05-17 15:19:02 +00:00
thorpej
3ad552e74b Adjust for new DELAY() ... s/DELAY(1)/DELAY(5)/ and lengthen some
timeouts.
1996-05-17 15:15:29 +00:00
thorpej
c3fc839395 Change "DELAY(1)" to "DELAY(5)". This is basically equivalent to how
the old implementation of DELAY() behaved with small values.
1996-05-17 15:12:30 +00:00
thorpej
f708ced3a3 Adjust for the new values of cpuspeed. 1996-05-17 15:09:39 +00:00
thorpej
be71c11843 Add 2 missing ";"s ... they weren't noticed before because of the
old implementation of DELAY().
1996-05-17 15:08:13 +00:00
is
0ffd802ca1 Make "options DRACO" kernels boot on Amiga mainboards, too:
- don't change the _lev2intr and _lev6intr entry points in static code
- set the level 2, 5, 5 and 6 interrupt autovectors from initcpu() on DraCo.
1996-05-17 12:56:49 +00:00
oki
6cab72d789 Add a "_kernel_text" symbol, for libkvm. From Gordon Ross. 1996-05-17 12:22:22 +00:00
mark
c2af4f7f17 add 'kernel_text' symbol, for use by kvm_mkdb 1996-05-17 11:00:45 +00:00
chuck
0b05acfe0a add _kernel_text 1996-05-17 04:38:02 +00:00
briggs
e9d5ab8b3a Set _kernel_text as recommended by Gordon--set before vector table. 1996-05-17 02:11:47 +00:00
thorpej
7d279a797f Add a "_kernel_text" symbol, for libkvm. From Gordon Ross. 1996-05-16 23:53:10 +00:00
pk
2d2098c11b Check for `configuration parent' differently: compare against "sbus"
rather than "ledma".
1996-05-16 22:57:32 +00:00
cgd
93bc248f7c add 'kernel_text' symbol, for use by kvm_mkdb 1996-05-16 22:54:30 +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
cgd
a7b26a647b change the comment after the #endif for the #ifdef _KERNEL changed
in the previous commit to be /* !_KERNEL */.
1996-05-16 22:17:49 +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
is
16465b6509 merge. 1996-05-16 20:18:01 +00:00
leo
c4b5129d5d Add edahdi to the subdirs. 1996-05-16 20:03:53 +00:00
leo
9e086936f3 Remove files commited in the wrong directory. Sorry. 1996-05-16 20:02:33 +00:00
leo
15f7f8dcfd edahdi, an AHDI partition-id editor 1996-05-16 19:51:25 +00:00
mark
4a03434386 Increased delay time while waiting for acknowledgement following the
sending of a keyboard reset code. This fixes a problem on some machine
where the reset code ends is a long loop continually trying to reset the
keyboard.
1996-05-16 19:32:25 +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
mark
525cc1eebc Fixed the printing of the podule description from the chunk directory
for unrecognised podules.
1996-05-16 19:05:35 +00:00
thorpej
a9bd225c1c Remove duplicate definitions of the "le" device .. "oops" 1996-05-16 19:00:06 +00:00
mark
0d476cb7d0 bus memory and I/O space access functions/macros, to be used by
machine-independent code for more sane access to bus resources.
Defines:
        bus_{io,mem}_{map,unmap}
        bus_{io,mem}_{read,write}_{1,2,4,8}
        bus_io_{read,write}_multi_{1,2,4,8}
functions, and several types to go with them.
Note: The bus_io_*_8 functions are not supported.
1996-05-16 18:08:40 +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
is
d0bd068b17 cleanup comment. 1996-05-16 17:52:22 +00:00
is
ee807dac4c Correct a -Wall correction. 1996-05-16 17:50:25 +00:00
mark
f38ec079c3 Removed definitions of mouse buttons. These should be obtained from
iomd.h and do not need to be duplicated here.
1996-05-16 17:45:10 +00:00
is
eced298a2b - tell new version of assembler to still accept 851/030 opcodes when compiling
with -m68060
- add -Wall -Wstrict-prototypes
1996-05-16 17:07:08 +00:00
is
d3ad3efef5 3 more constants for 68060 access error trap stack frames. 1996-05-16 16:51:30 +00:00
is
9546c59d96 Only declare setconf() #ifdef GENERIC. 1996-05-16 16:10:11 +00:00
oki
a104ff9340 spl0 prototype. 1996-05-16 16:03:35 +00:00
is
d5793c310d add DCIA prototype. 1996-05-16 16:02:15 +00:00
oki
347edbdf91 fixed gcc -Wall warning. 1996-05-16 15:57:32 +00:00
abrown
4bbf23d04c Copyright police (s/Harvard University/Harvard College/). 1996-05-16 15:56:54 +00:00
is
5b2b46b306 Fix for unused var warnings in compiler problem workaround. 1996-05-16 15:53:02 +00:00
is
3b8b982891 Naive translation of text to assembler had caused some assembler syntax
errors. Fixed them. Thanks to Bernd Ernesti for the early report.
1996-05-16 15:37:49 +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
mycroft
0cb9c8e106 Regen. 1996-05-16 07:07:57 +00:00
mycroft
19f4141a4e Add another ID for BusLogic cards. 1996-05-16 07:04:58 +00:00
mycroft
2001bba8c5 Fix bogus argument to bus_io_unmap(). 1996-05-16 06:39:34 +00:00
mycroft
f952cd37cd Slight redux of EISA crap. 1996-05-16 06:30:22 +00:00
mycroft
1474c6f3a3 Replace STAILQ with SIMPLEQ. 1996-05-16 05:22:28 +00:00
mycroft
f636c54f70 Replace STAILQ with SIMPLEQ. 1996-05-16 05:20:23 +00:00
mycroft
0a21bae649 Add a SIMPLEQ type, cloned from TAILQ, but with only a single pointer in each element. 1996-05-16 05:17:14 +00:00
mycroft
e03577c2a4 Slight adjustments for new version of ahc driver. 1996-05-16 04:00:58 +00:00
mycroft
117bb8ae8b New version, with changes from Justin Gibbs and Noriyuki Soda. 1996-05-16 03:59:03 +00:00
mycroft
19b0b9502f New version, with changes from Justin Gibbs and Noriyuki Soda. 1996-05-16 03:44:13 +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
thorpej
5179f14567 This hasn't been kept up to date. 1996-05-15 23:52:44 +00:00
thorpej
31526bc8e8 These haven't been kept up to date... 1996-05-15 23:50:30 +00:00
is
8fea0bb1e5 fix typo 1996-05-15 21:16:44 +00:00
is
317ba427c1 Now that we imported the 68060 software support package and committed the
glue code for it, activate this again.
1996-05-15 21:10:57 +00:00
is
89e428b280 Initial commit of the machine independend part of the glue code for
the 68060 software support package.
1996-05-15 21:06:18 +00:00
is
0a68161069 RCS ID police 1996-05-15 19:47:31 +00:00
is
508069c020 Initial import of the Motorola M68060 Software Package Production
Release, revision P1.01.
1996-05-15 18:17:45 +00:00
oki
34a55c3e59 fixed gcc -Wall warning. 1996-05-15 16:12:48 +00:00
leo
4001987d06 Make a BOOTX(tra) config file. It suits more people than BOOT and it allows
me to keep the BOOT config small.
1996-05-15 12:57:32 +00:00
leo
b4ca145026 Get in sync with the mac68k version of the 5380 driver. Also increase
the maximum values of wait_req_xx() functions so some old (slow) scsi-1 drives
will work.
1996-05-15 09:21:29 +00:00
leo
b0db2f6250 French keyboard map (Cedric Moreau). 1996-05-15 09:15:14 +00:00
leo
be7b319e1b Fix "might be used uninitialized" warnings. 1996-05-15 07:31:55 +00:00
leo
dd8fd30935 Prototype + -Wall fixes. 1996-05-15 07:28:51 +00:00
tls
3052b5a949 fix obscure problem involving ptrace of init 1996-05-15 06:17:47 +00:00
briggs
df57030b9c Add register use constraints to a bunch of asm() statements. 1996-05-15 03:23:10 +00:00
briggs
1350f9fb7d print the failure if we do not correctly determine the amount of RAM
on the ethernet card.
1996-05-15 03:20:22 +00:00
briggs
65b1980d5a Invalidate the pte for the peeked va in bus_peek(). 1996-05-15 02:51:00 +00:00
briggs
22637072e3 Set mac68k_vidphys outside of get_mapping() so the II and others will
get the default value correctly.
1996-05-15 02:34:33 +00:00
mrg
9ad87ec76e remove some RCS id's we don't need. 1996-05-15 02:13:39 +00:00
thorpej
2cd534aa06 Don't include <machine/intr.h> twice on the Alpha. 1996-05-14 22:23:38 +00:00
thorpej
5dc3777c41 Be more careful with types, and pull in <machine/intr.h> 1996-05-14 22:22:05 +00:00
thorpej
527edf030d Be more careful with types. 1996-05-14 22:21:05 +00:00
mrg
16b514adc6 KNF some debug statements. 1996-05-14 13:57:29 +00:00
jtc
944b1d4225 Use #ifdef _KERNEL to wrap struct ostat declaration 1996-05-14 13:26:49 +00:00
leo
153c617719 Clear SDEV_MEDIA_LOADED bit on the last close of a device. This causes the
geometry info & the disklabel to be reloaded on each 'first-open' of the
device.
1996-05-14 10:38:47 +00:00
leo
c9a8578d2b Fix gcc -Wall warnings about printf arguments. 1996-05-14 10:28:18 +00:00
leo
5f0e599c40 Remove a line of debugging code. 1996-05-14 10:25:01 +00:00
leo
de6b7f34fc Make dk_establish() a void function. 1996-05-14 10:23:29 +00:00
leo
c1381aa33f Document some more interesting options. 1996-05-14 10:21:48 +00:00
leo
1dd829a703 Update to make this work correctly when using an obj-directory. 1996-05-14 10:16:13 +00:00
briggs
df2dde6eb0 Some updates from Bob Nestor <rnestor@metronet.com> to get the Performa 550
working again.  I broke it when I moved the ROM mapping so it was no
longer mapped on a friendly address boundary.  Some cleanup.
1996-05-14 04:00:48 +00:00
briggs
ce096d50d5 Add a short comment. 1996-05-14 03:57:32 +00:00
thorpej
52e2ab70b0 #include <machine/intr.h> to get IST_* definitions. 1996-05-14 00:31:04 +00:00
thorpej
f668914751 Update for the arpwhohas() change. 1996-05-14 00:16:04 +00:00
thorpej
1379322cde Print the error code in the "not queued" message, to make debugging
a bit easier, and make sure a newline gets printed.
1996-05-14 00:10:37 +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
christos
6ba5bd8c10 Fix OGETUDATA for Solaris-2.3 (From Greg Hudson) 1996-05-13 16:57:50 +00:00
christos
7cc0c97a06 Fix printf() statement argument order 1996-05-13 14:10:21 +00:00
mrg
d0f2ced7d2 use %p not %x for pointers 1996-05-13 07:13:23 +00:00
mycroft
b3d8a261b9 Make imask[] larger, to match other changes. 1996-05-13 06:11:28 +00:00
thorpej
16f2a8fbf0 Regenerate. 1996-05-13 06:04:43 +00:00
thorpej
7846c3d45b Add an LSI Logic vendor id, and an S3 product id. Provide more detail
on a couple of S3 and UMC product ids.  From Shelby Noonan <shelby@og.org>
1996-05-13 06:02:18 +00:00
mycroft
4abbd9427d Remove intr.h for now. This requires more work. 1996-05-13 02:26:15 +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
635c72115c Add multiple-inclusion protection. 1996-05-13 01:35:06 +00:00
mycroft
417bb90896 Move spl*() and soft interrupt definitions into intr.h. For now, include it
from psl.h.  XXX Will change after release.
1996-05-13 01:28:01 +00:00
mycroft
682960c500 Use intr.h on alpha and i386. 1996-05-13 01:01:55 +00:00
mycroft
cec36bf8d5 Use intr.h. 1996-05-12 23:51:23 +00:00
mycroft
6e2250caf3 Use intr.h. 1996-05-12 23:38:08 +00:00
mycroft
db4ceee7f8 Remove the PCVT_SLOW_INTERRUPT option. It is required. 1996-05-12 23:33:32 +00:00
mycroft
f7624a5fd1 Use intr.h. 1996-05-12 23:24:47 +00:00
mycroft
eda98d375d Use intr.h. 1996-05-12 23:11:54 +00:00
mycroft
a8e2ce97e4 Implement IPL_HIGH. 1996-05-12 23:06:06 +00:00
mycroft
9f8f77f8f6 Move IPL_* and IST_* constants into intr.h. 1996-05-12 22:52:23 +00:00
thorpej
b5823eb83d Squish a straggling inb(), and tweak so that this compiles on the Alpha. 1996-05-12 22:23:31 +00:00
mark
cf31abcc16 Minor changes to the configuration of some devices. 1996-05-12 21:54:37 +00:00
mark
b7105daa51 Updated boot0() to leave the processor in 32 bit data/address space mode
when jumping back into the ROM at 0x00000000.
1996-05-12 21:54:05 +00:00
mark
db208e96e3 Addition of configuration file for RC7500 development board. 1996-05-12 21:49:01 +00:00
mark
169f7f2a06 Fixed the vt220 printing bug.
Fixed the 'loss of console output while X is switched in' bug.
1996-05-12 21:42:44 +00:00
mark
8a3097c984 Fixed panic strings with %i in them where it should have been %s. 1996-05-12 21:40:21 +00:00
mark
6ad1b0f567 Added the es ethernet driver. 1996-05-12 21:37:47 +00:00
mark
95ee0f849a Initial commit of the SMC91C9X ethernet driver found on RC7500
motherboards.
1996-05-12 21:35:07 +00:00
mark
05ae98d7ed Fixed the order of the machine includes. 1996-05-12 21:33:18 +00:00
mark
0efacab0e1 Removed some lurking experimental code that does not work relating
to CDROM devices.
1996-05-12 21:30:15 +00:00
mark
267415c841 Define FLT_ROUNDS properly. Guard #defines with #ifndef / #endif 1996-05-12 21:27:52 +00:00
mark
62b52adc0e Definitions of various contants and types for arm32 IEEE float point. 1996-05-12 21:26:20 +00:00
oki
afed73e5a8 fixed for gcc -Wall warning. 1996-05-12 20:49:57 +00:00
oki
611a9dc5c7 x68k mouse has no hardware flow control. 1996-05-12 20:46:33 +00:00
thorpej
645664c6f1 In bus_mem_unmap(), pass kernel_map to kmem_free(), rather than
kmem_map (the VA space is allocated from kernel_map).

In both bus_mem_map() and bus_mem_unmap(), adjust some arithmetic to
avoid wasting a page of VA space per call to bus_mem_map().
1996-05-12 19:02:19 +00:00
thorpej
afd45c1aaf Value returned by pci_conf_read() is a pcireg_t, so don't try to store
it in a u_short.
1996-05-12 18:48:21 +00:00
thorpej
e64215c6f4 Oops, I accidentally commented out the "le" attach directive. Thanks,
veego!
1996-05-12 16:17:19 +00:00
is
2a8a23a622 Disable .include of arch/m68k/060sp/Makefile.inc for now. 1996-05-12 13:36:02 +00:00
mhitch
70b7922d41 Use new format for dumpfile and include chip memory in dump.
Fix another -Wall warning (from '060 integration).
1996-05-12 04:10:15 +00:00
mhitch
8afe5318ba Used by the new libkvm and kernel coredump. 1996-05-12 02:47:46 +00:00
thorpej
7484bd0c7f Don't use home-grown macros to extract PCI vendor and product IDs.
Also, be truthful; We're actually looking for Configuration Base IO
Address, not Configuration Base Memory Address.
1996-05-12 02:46:15 +00:00
mhitch
b3186217c2 Use dumpconf() to set dumplo instead of directly setting it. 1996-05-12 02:41:00 +00:00
mhitch
177ffe3ea4 Fix yet another -Wall warning. 1996-05-12 02:38:23 +00:00
thorpej
6f3fb2ce0b Fix a think-o (my fault) that caused LANCE register offsets to be wrong.
While I'm here, convert driver to use <machine/bus.h> and the new PCI
I/O space interface (the new PCI interrupt interface was already in-use).
Also, correct a "corrected" printf.
1996-05-12 02:30:03 +00:00
mhitch
caf4c8f158 Remove old-style disk instrumentation now that iostat, systat, and
vmstat are fixed.
1996-05-12 02:26:03 +00:00
thorpej
ea8aad3319 Use <machine/bus.h> ... on the right track to making this an MI driver. 1996-05-12 01:37:02 +00:00
mycroft
7f0f603f3a Bug fixes from PR 2329, plus a few from me. 1996-05-11 22:21:51 +00:00
mycroft
9401257bde Regen. 1996-05-11 18:30:39 +00:00
mycroft
261382c331 Change VOP_UPDATE() semantics:
* Make 2nd and 3rd args timespecs, not timevals.
* Consistently pass a Boolean as the 4th arg (except in LFS).
Also, fix ffs_update() and lfs_update() to actually change the nsec fields.
1996-05-11 18:26:27 +00:00
mycroft
540f9550c0 Make `make depend' work for libraries. 1996-05-11 16:11:30 +00:00
mycroft
50c94f92ce There was no need to change ac_ipaddr here. 1996-05-11 14:00:15 +00:00
mycroft
e901286aad When sending an ARP request, use the interface address for the route, rather
than the first address assigned.  This gives slightly different behaviour in
the presence of aliases.  From Bill Fenner, via Pete Bentley.
1996-05-11 12:59:55 +00:00
mark
e3937c848b Added new filesystem type and name. 1996-05-10 23:07:37 +00:00
jtk
6ddae4d140 Implement proper `..' locking in lookup code to avoid many potential
deadlocks.

copy up properly when adding a link to lower-layer only file.
(I believe there are still more deadlocks remaining.)
1996-05-10 22:57:49 +00:00
jtk
c9c8daaf7c Add locking code to avoid deadlocks on vnode reclaim, which means the
addition of null_lookup, null_lock, null_unlock, null_islocked.
1996-05-10 22:50:45 +00:00
scottr
ba554befe5 Make sure we clean up libkern.o and libkern.po, too. Closes PRs 1951
and 2387.
1996-05-10 21:27:32 +00:00
briggs
468b8f30c6 Get rid of the NuBus Superspace kludge--it should no longer be necessary
or even desirable.
1996-05-10 20:53:31 +00:00
gwr
01e80ddb16 Add a new member to the softc (sc_parity_disable) with per-target
bits that tell the driver not to expect parity from those targets.
XXX: For now, it is up to MD code to set this mask.  Eventually,
XXX: we should identify targets first (without demanding parity)
XXX: and then use a new "SCSI quirk" to set the right bit.
1996-05-10 18:04:01 +00:00
is
d6ea9eae71 Cleanup the mess I left when committing yestereve's changes; in this case,
an unused variable.
1996-05-10 15:36:05 +00:00