Commit Graph

24847 Commits

Author SHA1 Message Date
mrg
a40fb261e6 deal with no DDB 1998-08-26 12:41:47 +00:00
mrg
446bcd99d6 panicstack: is needed outside of DEBUG. use _C_LABEL, and printf not db_printf (incase no ddb!) 1998-08-26 12:37:35 +00:00
augustss
9deb19798f Add OPL driver. 1998-08-26 12:10:57 +00:00
augustss
bb3c56652c Make the OPL driver turn on the sound on sound cards that require it.
That makes it much more likely that we get any sound.  DUH!
1998-08-26 12:10:22 +00:00
tsubai
a890d2dd7f Add MD DELAY and spl routines to fit Nisimura's change. 1998-08-26 12:07:21 +00:00
tsubai
1c3e72cd0e Back out previous change. 1998-08-26 11:44:06 +00:00
mrg
8912df90bf fix missed sparc -> sparc64 1998-08-26 10:36:42 +00:00
mrg
e791891d53 - use UVM by default.
- clean up the Makefile a bit to be less solaris-centric :)
- add support for compat_sparc32 (32bit compat module for NetBSD/sparc).  this
  isn't yet fully tested but it mostly written and compiles if not totally
  links yet.
1998-08-26 10:31:36 +00:00
mrg
d3aee6e637 regen 1998-08-26 10:24:11 +00:00
mrg
3ba6ab0970 add a 32-bit compatibility module for the sparc64 port, so it can run NetBSD/sparc binaries with a LP64 kernel. 1998-08-26 10:20:33 +00:00
augustss
76567c8213 Remove ad1848 attribute; it's in conf/files now.
(Why don't we remove the XXX hack in this file?)
1998-08-26 09:32:24 +00:00
mrg
e9762ad2be add COMPAT_SPARC32 1998-08-26 09:31:24 +00:00
mrg
8ea67882ab make this actually work 1998-08-26 09:09:31 +00:00
mrg
be25ea2fb5 put pmapdebug usage inside #ifdef DEBUG 1998-08-26 07:55:10 +00:00
sakamoto
4fa399d4db vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t 1998-08-26 04:54:17 +00:00
thorpej
bc21c243cd For non-MII Vortex/Boomerang, set full-duplex in the MAC CONTROL register
in epsetmedia() if full-duplex is selected (new feature on these cards!)

On MII Boomerangs, set the full-duplex bit in MAC CONTROL in the statchg
callback from the MII layer.  Should fix full-duplex on these cards.
1998-08-26 01:32:41 +00:00
thorpej
19b759c2e4 Define the full-duplex bit in the W3 MAC CONTROL register. 1998-08-26 01:29:03 +00:00
thorpej
7cfa6e0972 Always use pmap_kremove() if removing a mapping from the kernel pmap. 1998-08-25 23:09:08 +00:00
pk
6ab705c01b Also include SUN4 in the temporary split 1998-08-25 22:42:48 +00:00
pk
2e345f45ff Define the ad1848 attribute here. 1998-08-25 22:38:29 +00:00
pk
d4ec33b5f0 The new MI part of the AD1848 driver. 1998-08-25 22:36:40 +00:00
pk
f7151935ef Adjust for ad1848.c split. 1998-08-25 22:35:25 +00:00
pk
2ffb54bdcc Split the AD1848 driver into MI (dev/ic/ad1848.c) and ISA parts. 1998-08-25 22:34:29 +00:00
mark
47e470f2af Use UVM as standard. 1998-08-25 22:07:46 +00:00
mark
34f8ef18c9 Updated for changes to some of the constants defined in vmparam.h
Simplified serveral parts of the initarm() to make the code clearer and
modified parts of initarm() as part of an on-going effort to abstract
out part of initarm() on various machines.
1998-08-25 22:03:07 +00:00
mark
61bd706797 Include machine/vmparam.h 1998-08-25 21:56:14 +00:00
mark
bd14bb41f0 Define KERNEL_PD_SIZE in terms of various constants defined in vmparam.h 1998-08-25 21:55:06 +00:00
mark
cda0e37703 Collect various kernel constants together and define them in all one
place (some moved from param.h)
Define several constants such as page table addresses in terms of other
constants.
Increase some of the limits :
  MAXTSIZ	8MB -> 16MB
  DFLDSIZ	16MB -> 128MB
  MAXDSIZ	256MB -> 512MB
  DFLSSIZ	512KB -> 2MB
1998-08-25 21:53:37 +00:00
mark
4e8239cdca Removed a number of kernel constants as they have moved to vmparam.h 1998-08-25 21:50:54 +00:00
thorpej
b42b94b608 Shave yet more translation ops from the inner loops of pmap_protect(). 1998-08-25 18:21:17 +00:00
ragge
218681f3e5 Kernel stach should be 4K, not 32K. Increase MCLSHIFT to 11.
Remove ovbcopy().
1998-08-25 17:35:23 +00:00
augustss
a48f7d8a24 Attach the OPL FM synth to the ESS driver.
It probes, but alas, no sound.
1998-08-25 12:52:47 +00:00
matthias
fb5e3aef9b For the pc532 MACHINE (pc532) isn't equal to MACHINE_ARCH (ns32k) but there
is no sys/arch/ns32k.
1998-08-25 11:52:26 +00:00
thorpej
2fa5652849 Break the code that cleans out page tables from pmap_remove_mapping() into
separate functions that perform the cleanout starting at the l3pt, l2pt,
or l1pt.
1998-08-25 09:00:19 +00:00
pk
af5a3e52a5 yanko 1998-08-25 08:28:53 +00:00
thorpej
33caa59da3 Optimize the pmap_protect() loop. Will make a similar change to pmap_remove()
once some changes are made to how pt pages are cleaned up.
1998-08-25 08:00:15 +00:00
thorpej
b7fb6e1711 Change pmap_changebit() to take a mask of bits to set, and a PTE mask,
shaving several instructions out of the inner loop.
1998-08-25 06:21:16 +00:00
thorpej
daa8ad1747 Add some braces to make egcs happy. 1998-08-25 04:56:01 +00:00
thorpej
9f42788795 Add some braces to make egcs happy. 1998-08-25 04:43:46 +00:00
thorpej
2cffea3962 Use do { ... } while (0) in RTFREE(). 1998-08-25 04:22:33 +00:00
scottr
2d981dac3b The return value from intr_dispatch() is no longer necessary. 1998-08-25 04:03:56 +00:00
scottr
2aa56b1c61 Implement splaudio(). 1998-08-25 03:59:01 +00:00
mark
f920e4e2d6 In physconinit(), don't use printf() to clear the screen but call
the console's putstring function directly.
1998-08-25 03:26:36 +00:00
mark
b75234f009 Add calls to cpu_cache_cleanID() after calling setttb() during initarm().
This is necessary as the memory addresses being used for the cache clean
(if the CPU is a SA110) may have been remapped by the setttb() call and
thus the cache could loose sync with memory.
1998-08-25 03:10:25 +00:00
nisimura
e37ce1c5b6 Make spl(9) rountines target port dependent. delay() is also port
dependent anticipating a target with high resolution timer available
for on-the-fly re-programming.  Enum decstation_t was removed from MI
trap.c.
1998-08-25 01:55:38 +00:00
thorpej
9c3e900094 Use the pool allocator for pmap structures. 1998-08-25 01:46:01 +00:00
thorpej
7ff538b614 Oops, use M_VMPMAP as the malloc type in pool_init(). 1998-08-25 01:11:11 +00:00
thorpej
4dfff51650 Use the pool allocator to allocate pmap structures. 1998-08-25 01:09:04 +00:00
thorpej
85c6c03e2a Change the 32-bit fields of the RFA to an arrays of bytes, so that
egcs won't attempt to optimize inline copies of them into a single
load/store (the RFA is not 4-byte aligned in the DMA area).

Just use memcpy() to copy those fields, now, not our own home-grown.
1998-08-25 01:08:15 +00:00
matthias
04232f6196 declare end[] everywhere the same, fix an egcs "missing braces" warning. 1998-08-24 22:52:23 +00:00
mrg
514a5d2570 vm_page_bootstrap takes vaddr_t *'s not paddr_t *'s 1998-08-24 22:36:36 +00:00
drochner
103b7e7b17 The Intel 82371MX identifies itself erroneously as a miscellaneous bridge.
(from "Johnny C. Lam" <lamj@stat.cmu.edu> per PR kern/6021)
1998-08-24 19:27:05 +00:00
augustss
4e7c07c2b4 Write MIDI data from the sequencer to the device in a more sane way. 1998-08-24 17:59:25 +00:00
matt
ea3bfd6d80 Fix bug in transmit logic that would transmits to stop. Boolean dyslexia
stricks again.
1998-08-24 14:09:15 +00:00
pk
c6905522d2 These files are no longer used. 1998-08-24 07:23:10 +00:00
tv
b3e9be0ee3 egcs warning fixes, clean up `register' 1998-08-24 02:37:16 +00:00
tv
54bf4389f9 egcs brace warning 1998-08-24 02:34:44 +00:00
sakamoto
62ed825858 vm_offset_t --> [pv]addr_t. 1998-08-24 01:40:26 +00:00
pk
8c15879aa5 bitmask_snprintf() now takes a quad_t. 1998-08-23 22:43:27 +00:00
pk
9e744b8155 Merge Chris Torek's new `%b' bit-field format into bitmask_snprintf(). 1998-08-23 22:42:32 +00:00
eeh
d395d34886 Work on 32-bit cleanup. 1998-08-23 15:52:43 +00:00
eeh
41fb08c335 Added pv_syncflags() (unused) and debug stuff. 1998-08-23 15:51:23 +00:00
eeh
a579357e66 Remove dvma_mapin() and other cruft. 1998-08-23 15:49:02 +00:00
pk
66795e62e7 Move sparc_vme_dmamem_map() outside `#ifdef SUN4M' 1998-08-23 10:40:38 +00:00
pk
4539119e83 Nuke phys_map & old dvmamap. 1998-08-23 10:08:25 +00:00
pk
4fe6cdf6ca Nuke obsolete prototype. 1998-08-23 10:07:09 +00:00
pk
2a6be00de5 Rename DVMA constants. 1998-08-23 10:05:53 +00:00
pk
666587112f Use bus_dmamem_{alloc,free} instead of the old VM hack. 1998-08-23 10:04:56 +00:00
pk
e68fd96987 Remove DVMA address special cases in pv_changebit(). 1998-08-23 10:01:24 +00:00
pk
434a2cc972 Nuke phys_map & old dvmamap. 1998-08-23 09:59:24 +00:00
pk
9a2b941ecb Rename DVMA constants. 1998-08-23 09:53:03 +00:00
eeh
5e1f92b621 64-bit clean cleanup of ofwboot.elf. 1998-08-23 02:48:28 +00:00
msaitoh
7734e0ef29 fix version string (from PC Card Standard, April 1998 (Release 6.1)) 1998-08-22 23:41:48 +00:00
augustss
c7e036f6e2 Let opl attach to ess.
WARNING: it doesn't work yet.
1998-08-22 22:55:09 +00:00
augustss
f2ff59edc5 Change debug output. 1998-08-22 22:54:11 +00:00
augustss
95fac46655 Get opl MIDI dependecy right. 1998-08-22 22:53:06 +00:00
augustss
c29fdceff3 Prepare for MIDI devices. 1998-08-22 22:50:53 +00:00
eeh
edab5330c3 Fix typo in previous fix. 1998-08-22 22:45:19 +00:00
eeh
9f5435229a 64-bit-ify this. Depend on _lp64. 1998-08-22 22:16:01 +00:00
thorpej
23e384954a Comment the fields in the uio structure. 1998-08-22 20:25:02 +00:00
scw
592953d009 Fix tyop. 1998-08-22 18:11:25 +00:00
msaitoh
369bc4cb89 Allocate an I/O according to the config table entries.
Auto assign is done only when all cfe->iospace[0].start fails.
1998-08-22 17:47:58 +00:00
mrg
0d6736494d change sunos compat structure members from long to int so they stay the same on sparc64 1998-08-22 17:41:43 +00:00
mrg
c54c62ad31 bsd_audioio.h is not used. 1998-08-22 15:56:46 +00:00
mrg
9d4112bf21 make struct xd_iocmd's block member an u_int not a u_long 1998-08-22 15:11:02 +00:00
mrg
4d4f129eaa make "struct sun_dkpart" the same for sparc/sparc64 (sparc64 must have been broken?) 1998-08-22 14:55:28 +00:00
minoura
7f4ad4748e Eliminated vm_offset_t and vm_size_t. 1998-08-22 14:38:36 +00:00
ragge
e727d1e031 Must #define __warn_references if not GNUC. 1998-08-22 12:12:38 +00:00
pk
bc7c6c0c4c Fix DVMA address handling. 1998-08-22 11:47:45 +00:00
scw
a84a67440f vm_offset -> [vp]addr_t and vm_size_t -> [vp]size_t
While I'm here, expunge use of 'register' storage class.
1998-08-22 10:55:33 +00:00
ragge
00475fbb1f New times, new pagesize, use magic number in exec header. 1998-08-22 09:16:45 +00:00
scottr
9237e1254f Take a stab at support for the PowerBook 190/190cs, based on comparison
with other PowerBook hardware.  They seem to be most closely related
to the PowerBook 500-series, but have an internal IDE disk instead.

NOTE:  only external SCSI disks have a chance of working, at this
point.  Nothing has officially changed with regard to IDE support
(yet).
1998-08-22 06:06:05 +00:00
scottr
f234add115 Add gestalt machine type for the PowerBook 190/190cs. 1998-08-22 05:47:37 +00:00
is
9948205c5a Prepare for support of Apollo-cpuboard-reworked A3000 mainboard SCSI. 1998-08-21 19:13:27 +00:00
is
ae8175cb09 Workaround for the incomplete fastmem loading scheme: put uptbase lots higher,
so that hopefully it doesn't get overwritten by the 1:1 mapped kernel copy.
See line 375 for an explanation.
1998-08-21 18:51:58 +00:00
tsubai
5a294dbb55 Add missing "-a" to mkdep line for locore_machdep.S. 1998-08-21 16:24:25 +00:00
tsubai
d4d7416198 vm_offset_t --> [pv]addr_t. 1998-08-21 16:13:28 +00:00
tsubai
f6dcf3f9c6 Change vm_offset_t to [pv]addr_t. 1998-08-21 14:52:29 +00:00
pk
79dd1e8563 Convert to [pv]addr_t & [pv]size_t. 1998-08-21 14:13:53 +00:00
pk
ef6b13cc87 vm_offset_t => vaddr_t. 1998-08-21 14:13:47 +00:00
pk
b8a1caac4a Convert to [pv]addr_t & [pv]size_t. 1998-08-21 14:12:18 +00:00
pk
24255abca0 iommu_{enter,remove} moved to iommuvar.h 1998-08-21 14:10:42 +00:00
pk
ca5b5652b4 Remove vm_offset_t & vm_size_t. 1998-08-21 14:09:59 +00:00
pk
f318f15bc3 Convert to [pv]addr_t. 1998-08-21 14:07:37 +00:00
tsubai
5bcec15811 Add #ifdef DDB around Debugger(); 1998-08-21 14:07:03 +00:00
ragge
6aba9c11ff VAX logical page size increased to 4k. 1998-08-21 13:46:38 +00:00
scottr
33395d926e Remove an extraneous printf when attaching a Valkyrie. 1998-08-21 13:46:31 +00:00
ragge
b3574d3923 VAX logical page size increased to 4k. 1998-08-21 13:41:09 +00:00
pk
7575f8fac5 Move iommu_enter/iommu_remove here from <include/cpu.h>. 1998-08-21 13:29:57 +00:00
ragge
fc2106d632 VAX 1k page size compatibility executable handling. 1998-08-21 13:25:47 +00:00
tsubai
057ca9bfe1 No longer used. 1998-08-21 13:22:25 +00:00
tsubai
5617a263e0 Correctly initialize scb struct. 1998-08-21 13:19:43 +00:00
matt
f1a6a0936f The VAX46 (VS4000) needs the clock stuff the VAX43 does... 1998-08-20 23:52:42 +00:00
pk
02d030ca52 Pass on NOWAIT' and boundary' args to extent_alloc(). 1998-08-20 20:49:33 +00:00
pk
363b678b9e Flesh out more of the sun4 busdma functions. 1998-08-20 20:46:59 +00:00
pk
02c059eefa Pay attention to BUS_DMA_NOWAIT & boundary args where appropriate. 1998-08-20 20:45:40 +00:00
veego
ff2c3adddc Add some braces to stop the new egcs warnings. 1998-08-20 19:55:06 +00:00
tls
8a146cd406 update for b->mem change in sys/kern; now we need memcmp and memset, not just memchr. AFAIK, memcpy is provided by the compiler or by locore on this platform. 1998-08-20 17:56:22 +00:00
ragge
fb9171df3d Fix write/read of memory. 1998-08-20 16:47:11 +00:00
scottr
b27d106197 Match grf_obio devices correctly for the 58x/63x. 1998-08-20 13:58:04 +00:00
pk
aee27828f9 Some machines (Voyagers) apparently have zs devices with multi-valued
register properties in the PROM.
1998-08-20 11:47:39 +00:00
pk
5ad46000df Remove vestiges of sparc-specific interrupt handling. 1998-08-20 11:44:58 +00:00
pk
177621555f remove sparc hack: there's a bus.h now. 1998-08-20 11:42:55 +00:00
pk
1f007a13cc Cast bus_size_t to u_long in printf() args. 1998-08-20 11:42:13 +00:00
augustss
a6ed1cdd4e Provide a workaround for people who want a sequencer but have no MIDI devices. 1998-08-20 10:59:09 +00:00
augustss
915f1fe566 Add missing __P 1998-08-20 10:46:10 +00:00
kleink
a6d3fb3799 vm_offset_t -> {paddr_t,vaddr_t}, vm_size_t -> vsize_t 1998-08-20 08:33:41 +00:00
thorpej
96aa1cec21 Add ofisa attachment for the ISA joystick driver.
XXX currently arm32-specific.
1998-08-20 07:02:32 +00:00
thorpej
f73a7043f3 ISA Game port driver, lifted from BeBox port. 1998-08-20 06:31:34 +00:00
thorpej
b176b7ba0f Add joy driver at cdev 56. 1998-08-20 06:30:56 +00:00
thorpej
31ac3d022c Add joy driver devsw declarations. 1998-08-20 06:28:43 +00:00
thorpej
2d282c7e70 Add joy driver glue. 1998-08-20 06:28:18 +00:00
thorpej
cc042ba0e5 Correct a function name in a panic message. 1998-08-20 05:46:20 +00:00
kleink
1bbb6339c8 In readlink, don't copy the string's NUL-terminator, and remove a redundant
check.
1998-08-19 13:12:40 +00:00
explorer
5ae808b38d ss->special could be NULL, so sane would crash the kernel. 1998-08-19 08:40:31 +00:00
matt
5232b66bd5 Initial steps to getting the VAX to use the MI driver framework. 1998-08-18 23:55:00 +00:00
thorpej
8021b2ae29 Initial support for the Brooktree Bt463 RAMDAC. 1998-08-18 23:29:28 +00:00
thorpej
ff266f0937 Add some braces to make egcs happy. 1998-08-18 18:23:07 +00:00
thorpej
1083dcb6ca Back out previous. 1998-08-18 18:16:30 +00:00
thorpej
39f683419f Back out part of last change (uninitialized work-around). 1998-08-18 18:15:41 +00:00
augustss
0e6f209f9d Add forgotten OPL file. 1998-08-18 17:56:39 +00:00
thorpej
ee26f0775b This now needs <dev/midi_if.h> to build. 1998-08-18 17:55:09 +00:00
thorpej
706381d9ac Fix missing ;, pointed out by Erik Bartelsen, PR #5987. 1998-08-18 17:31:25 +00:00
mycroft
a76eb95be9 Tab vs. space, and turn *off* XSERVER_DDB by default. 1998-08-18 17:03:42 +00:00
leo
2ce88694c7 Do not include files.isapnp, this file is now included from files.isa...
(Julian Coleman)
1998-08-18 11:51:07 +00:00
thorpej
813dfd31c5 Fix a couple of obvious bugs in the hardware cursor handling code, and
use the RAMDAC callbacks to get/set the cursor colormap.
1998-08-18 08:40:39 +00:00
thorpej
6ba7f2f6fd Need an entry point to check cursor colormap entries for validity
before actually setting them.
1998-08-18 08:23:46 +00:00
thorpej
3db6850bb7 When updating the cursor colormap, actually store the data in our
copy of the cursor colormap, not the regular colormap!
1998-08-18 08:22:49 +00:00
thorpej
feaf75c755 Add set_curcmap and get_curcmap RAMDAC methods, for use by the TGA hardware
cursor code.  These are unneeded on the Bt485, since the RAMDAC handles
the hardware cursor.  They are needed for the Bt463, however, since the
RAMDAC only provides cursor color.
1998-08-18 08:07:45 +00:00
thorpej
082116a927 vm_offset_t -> vaddr_t 1998-08-18 08:00:17 +00:00