Commit Graph

15853 Commits

Author SHA1 Message Date
minoura
a6b5ab0c92 Moved parioctl.h to the system header directory. 1998-08-07 16:16:36 +00:00
minoura
4c4cdda003 Switched to MI zs driver. 1998-08-07 11:19:13 +00:00
drochner
dabc8eb436 Implement the 'i' flag which makes the bootloader ask for the file to
load (as in OSF/1).
Useful for netboot where "-file" doesn't work as needed.
1998-08-07 10:38:37 +00:00
drochner
e8564df3b9 implemt a simple "beep" device to access the ISA speaker 1998-08-07 10:26:38 +00:00
drochner
026fbbe2db Match PCI-ISA bridges on class/subclass instead of vendor/device.
2 reasons:
-no need to keep a list of all known parts
-there is at least 1 bridge (ACC micro 2051) which reports the same
 device ID for its various subfunctions; this would require an additional
 check in the match function
(keep the old list inside #if 0 in case one of the historical bridges
doesn't report the right class/subclass - I can't check them all)
1998-08-07 10:15:32 +00:00
augustss
48bae9ee88 Add MIDI support. The MIDI devices can be accessed as ``raw'' through
the /dev/rmidiN devices, or with a sequencer interface via /dev/music.
So far the only supported MIDI device is the MPU401 port on SoundBlaster
(and only on SB on isapnp, since we do not have locators with multiple
values yet).
1998-08-07 00:00:55 +00:00
minoura
d082dd3db4 Moved grfioctl.h and iteioctl.h to the public include directory. 1998-08-06 14:08:53 +00:00
kleink
546365a27e _POSIX_SOURCE -> _POSIX_C_SOURCE 1998-08-06 11:25:04 +00:00
kleink
709dda58f8 _POSIX_SOURCE -> _POSIX_C_SOURCE, and add missing protection bits. 1998-08-06 11:22:57 +00:00
kleink
e2a897639d KNF (only include one of <sys/{param,types}.h>). 1998-08-05 16:50:39 +00:00
augustss
d8582601c5 Make panic message a little more explicit. 1998-08-05 16:34:36 +00:00
minoura
4df8f47ebc Switched to MI zs driver. 1998-08-05 16:08:33 +00:00
minoura
e8551dcab3 Fixed stray pointer access reported by Yasufumi Itoh. 1998-08-05 15:57:43 +00:00
minoura
89f91f85fa Fixed typo. 1998-08-05 14:40:20 +00:00
perry
c3579ce3f5 bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-05 02:45:08 +00:00
perry
54f97ab9d1 bzero->memset, bcopy->memcpy 1998-08-05 02:28:26 +00:00
perry
584757c02b bzero->memset 1998-08-05 02:11:00 +00:00
perry
bf0943278c Fix a problem first noticed by a user with a screwed up real time
clock past the End of Time.

If time_t is 32 bits, then the "End of Time" is Jan 18/19 2038
(depending on time zone).

This code copes with RTC's past the end of time if time_t is an int32
or less. It just forces the time back to 2037.  This will let users
with screwed up clocks to at least boot and function long enough to
set their clocks to something sane.

This kludge is conditioned on an
	if (sizeof(time_t) <= sizeof(int32_t))
which will automatically optimize the code out once we switch time_t
to a 64 bit quantity, which should happen well before 2037.

Patch based on code from Michael C. Richardson, with help from
Allen Briggs who pointed out a fencepost error.
1998-08-05 01:21:54 +00:00
thorpej
9186d2da5c Simple instrumentation of pmap_steal_memory(). 1998-08-04 22:40:17 +00:00
jonathan
71c8693225 Add missing "-a" to mkdep line for pmax locore_machdep.S.
From Noriyuki Soda.
1998-08-04 20:17:09 +00:00
mark
25997dd19d IPL_TTY -> IPL_SERIAL. 1998-08-04 20:09:37 +00:00
mark
b6ffd3a85e Don't call cpu_tlb_flushID() from the pmap_update macro. 1998-08-04 19:11:29 +00:00
dbj
e9545cf241 Fixed memory probe for color turbo machines. 1998-08-04 19:08:23 +00:00
mark
167a777474 Drop in the lastest round of optimisations from Neil Carson.
The cache cleaning code in pmap_copy_page() and pmap_zero_page()
  has been rewritten and uses a new function pmap_clean_page().
  pmap_remove() has been completely rewritten to make it more efficient
  when there are only a few pages that actually need to be removed.
1998-08-04 19:02:19 +00:00
minoura
b72d8d17f9 __BROKEN_INDIRECT_CONFIG fixes. 1998-08-04 16:51:51 +00:00
minoura
ea7f1dbe36 Some files were not deleted with make clean.
Keymap files are now installed in /usr/share/keymaps/x68k.
1998-08-04 16:39:55 +00:00
mark
47ac4421e0 In setregs(), only pass the stack value in r12 if COMPAT_1[123] is defined. 1998-08-04 16:25:28 +00:00
mark
4b14908352 Fix the validation of source addresses in db_read_bytes() so that
memory ranges mapped with L1 section mappings do not cause aborts
due to lack of L2 page table.
1998-08-04 16:19:54 +00:00
mark
e9c872cd6b Define a macro L1_MASK to mask out the level 1 pde type bits. 1998-08-04 16:16:22 +00:00
minoura
aced90770c Message fixes. 1998-08-04 16:10:45 +00:00
minoura
233cd5d60b RB_POWERDOWN is now supported.
Check if the power switch is open (off) in the shutdown_hook,
and try removing the power in cpu_reboot.
poffd default action is now shutdown -p.
1998-08-04 16:07:53 +00:00
kleink
3dc1e8147c Kill "options FIFO" - they're mandatory now. 1998-08-04 11:19:02 +00:00
mark
d91830b032 Namespace cleanup. Prefix all the JMPBUF* macros with _JB. 1998-08-04 02:01:17 +00:00
leo
5429ccda94 Pass the dma_tag to _bus_dmamap_load_buffer. 1998-08-03 13:09:01 +00:00
mark
70fe6c76a1 Pass ps_strings in r0 when execing processes.
Use macros rather than absolute values in zero_page_read*() functions.
1998-08-02 21:50:31 +00:00
kleink
005ae749a7 Oops, make a sentence added in previous commit parseable. 1998-08-02 19:42:35 +00:00
thorpej
bf8f319d0e Remove some lint. 1998-08-01 21:12:32 +00:00
thorpej
8eeb95fce4 Implement pci_intr_disestablish(). 1998-08-01 20:25:12 +00:00
thorpej
92fa3a68ad In sio_intr_disestablish, also make sure that IRQs 0, 1, 8, and 13
default to edge-triggered, just like in the setup.
1998-08-01 19:38:29 +00:00
thorpej
0b60fda7c8 Implement sio_intr_disestablish(), and ensure that an initially-enabled
interrupt is never disabled and an initially-level-triggered interrupt
never becomes untyped.
1998-08-01 18:54:21 +00:00
thorpej
528dab6808 Implement alpha_shared_intr_disestablish(). Simply removes the handler
fromthe list, allowing the caller to manipulate the sharing type,
if appropriate.
1998-08-01 18:52:36 +00:00
scw
aec399e36f Changes to keep lint happy.
In particular, fix some Makefiles so the include
paths are passed to lint.
1998-08-01 11:22:51 +00:00
pk
6c727e1651 dvma_malloc(), dvma_mapin() and dvma_mapout() are gone; all drivers
the use bus_dma(9) interface now.
1998-07-31 22:35:07 +00:00
pk
359cf8c23d Move `dvma_cachealign' here from vm_machdep.c 1998-07-31 22:23:30 +00:00
pk
a0818b4b8b Use bus_dmamem_alloc/bus_dmamem_map. 1998-07-31 22:21:35 +00:00
thorpej
0869d8f714 Blargh, deal with some fallout from the ISA PnP goo, this will go away once
we can pull in files.isa properly.
1998-07-31 16:42:01 +00:00
pk
519f1f7f0e Convert to bus dma. 1998-07-31 15:53:11 +00:00
ross
22554e01a9 Following discussions with eeh and mrg, change most of these types so
that they should make an ILP32 setup with an ILP32 compiler and an LP64
setup if run through an LP64 compiler. None of the data sizes actually
change right now, and any type errors that show up would have to be fixed
eventually anyway.
1998-07-31 15:30:40 +00:00
mycroft
a24dbc8065 (Always) (practice) (safe) (macro expansion). 1998-07-31 15:07:41 +00:00
pk
c206cad36e Convert to bus_dma. 1998-07-31 12:45:48 +00:00
thorpej
46c7e2fa53 ISA PnP goo. 1998-07-31 04:55:30 +00:00
thorpej
2e33e4c2fa First-cut support for ISA PnP for NetBSD/bebox. 1998-07-31 04:54:38 +00:00
thorpej
29ad6dac50 ISA PnP goo. 1998-07-31 04:50:01 +00:00
thorpej
6f3b1afe37 First-cut ISA PnP support for NetBSD/arm32. 1998-07-31 04:48:42 +00:00
thorpej
92d42c0871 Add a comment about why we can (and must) use bus_space_{,un}map() directly
in this file.
1998-07-31 04:44:10 +00:00
thorpej
a138b68143 Don't include files.isapnp here. 1998-07-31 04:39:23 +00:00
thorpej
9589268364 Add unused zskbd and zsms entries, and ISA PnP entry. 1998-07-31 04:38:51 +00:00
thorpej
e2ce6c8a28 Machine-dependent ISA PnP goo for NetBSD/alpha. 1998-07-31 04:38:04 +00:00
thorpej
f948e430bb Provide a hook for bypassing space accounting, needed to support ISA PnP
for now.
1998-07-31 04:37:02 +00:00
thorpej
ecf815f930 Back out previous; it is perfectly reasonable, and desirable, to print out
debugging info ifdef DEBUG.
1998-07-31 02:10:12 +00:00
mjacob
36f9ab27ce >We're not Linux. If we still want driver version strings to be displayed
>at boot, then I suppose DEBUG is a reasonable compromise.
Makes the whole concept useless. This is for default printouts. If you
can build a debug kernel, you know what version you have. This was under
the concept of 'RAS' so that hapless users could tell you microversion
things. But I guess this isn't the right way according to our local
Jesuits. Oh, well. I'll think up something different and hopefully
less objectionable. And yes, NetBSD isn't linux. The developers seem
to be equally bad tempered, but linux is more successful.
1998-07-31 01:56:49 +00:00
pk
af89712b25 Use bus_dma_*() instead of dvma_mapin/dvma_mapout. 1998-07-30 22:42:04 +00:00
pk
32a5557426 Adapt to changes in the base bus_dma* functions. 1998-07-30 22:29:34 +00:00
pk
8a39d7a7fb The IOMMU now has its own dma bus tag and associated functions.
machdep.c retains the `mainbus' (i.e. sun4/sun4c) bus_dma* versions for now.
Create a DVMA map specifically for 24-bit devices (le,ie), which has a
more room than previous DVMA map which should be reserved for sun4 VME.
1998-07-30 22:28:44 +00:00
pk
862c0bafcc Define a BUS_DMA flag for devices that have a 24-bit address space.
Update _bus_dma* prototypes.
1998-07-30 22:20:31 +00:00
thorpej
7b68dfc9c7 Fixup include paths. 1998-07-30 21:58:48 +00:00
thorpej
d85ed3d973 Put the SoundBlaster stuff back for files.ofisa (Until we can just
properly include files.isa).
1998-07-30 21:51:00 +00:00
pk
741c837f77 Get to DMA map functions through parent tag, instead of calling some base
functions directly.
1998-07-30 18:54:06 +00:00
augustss
cdeb158d5f A first stab at making the SHARK sound work. It doesn't really work
yet, but it probes and makes a noise when used.  Stay tuned!
1998-07-30 14:11:42 +00:00
mrg
7712d62ed7 allow ${SIZE} to be set from the environment, also allow using genassym.sh (both for cross compiling). 1998-07-30 13:34:09 +00:00
leo
3a8b550914 Make this a bit more complete. (Triggered by Julian Coleman ;-) 1998-07-30 12:02:41 +00:00
mrg
813b2f15cf allow ELFSIZE to be pre-defined 1998-07-30 00:27:04 +00:00
pk
ab0e92568b <sparc/dev/sbusvar.h> => <dev/sbus/sbusvar.h> 1998-07-29 18:48:54 +00:00
pk
9104b183fa Lots of things have moved to <dev/sbus/sbusvar.h> 1998-07-29 18:45:57 +00:00
pk
402a052405 Deal with sbus attach args changes. 1998-07-29 18:44:22 +00:00
pk
9e4d2f9b53 Switch to new sbus attach arguments layout. 1998-07-29 18:42:32 +00:00
pk
58d952ce7d Deal with sbus attch args changes.
Use sbus_destroy_attach_args().
1998-07-29 18:37:23 +00:00
pk
426330f642 We no longer need to get the register sets by ourselves. 1998-07-29 18:36:08 +00:00
pk
718ff722b7 In the reset() function, preserve the current cable selection bit.
If in auto media select mode, this avoids losing carrier every time
the lance code decides to re-initialize.
1998-07-29 16:10:57 +00:00
augustss
33a72d432a Add wss on isapnp. 1998-07-29 12:36:47 +00:00
tsubai
5b03ac980b Use ite for screen console by default until wscons support. 1998-07-29 05:38:04 +00:00
tsubai
fbd86622a0 Add ``install floppy'' config file. 1998-07-29 05:19:26 +00:00
thorpej
eb32016a95 Split up using BWX for PCI config and bus access. Default to using BWX for
the former, but not the latter.  Hopefully, this will address some problems
people have been experiencing w/ some devices on Pyxis systems when BWX
is used for bus access.  (If it's not used for PCI config access, we can
get fatal machine checks while probing behind PCI-PCI bridges!!)
1998-07-29 01:28:44 +00:00
mark
620bc79e36 Fix the copyin(), copyout() argument validation to check for zero
length copy before returning EFAULT for a bad address.
1998-07-29 00:56:08 +00:00
thorpej
1712467308 fic typi 1998-07-29 00:31:01 +00:00
thorpej
8a2c338704 Use a std options file, like other ports do. 1998-07-29 00:19:20 +00:00
thorpej
7698349700 Ah, we use a _different_ ofcons; rename it macofcons to avoid the
name collision.
1998-07-28 23:43:33 +00:00
thorpej
c8f1cea511 Provide SSIZE_MAX. 1998-07-28 23:20:54 +00:00
thorpej
8a3626d966 ofcons attaches to ofbus, not pci! Comment it out, since we do not have
any ofbus support in these configurations.
1998-07-28 23:09:07 +00:00
thorpej
d0714d3f21 Support NFS_BOOT_DHCP. 1998-07-28 23:02:06 +00:00
thorpej
37b70b3064 Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
1998-07-28 21:39:54 +00:00
thorpej
6dd25080b4 Garbage-collect ofisacs, noted by Scott Reynolds. 1998-07-28 21:19:13 +00:00
pk
9111209fdf In _bus_dmamem_map(), use uvm_km_valloc() to get kernel addresses.
uvm_map() -- which used to be here (why was that?) -- was called with
an uninitialized value in its `start' argument.
1998-07-28 20:46:28 +00:00
drochner
5788941588 document "Intelli"mouse support 1998-07-28 20:22:29 +00:00
drochner
fa0aee147e Use the new mkdtemp() instead of mktemp();mkdir().
Various cleanups (and typecasts) to get lint quiet.
Add remaining prototypes, enable -Wmissing-prototypes -Wstrict-prototypes.
1998-07-28 20:10:53 +00:00
thorpej
3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
thorpej
e8063e5201 Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:30:54 +00:00
pk
cc0d537633 GC. 1998-07-28 14:04:08 +00:00
eeh
5ed2ac8a95 Apparently we need to specify both slot and offset for all SBUS devices.
This is really annoying....
1998-07-28 04:48:04 +00:00
eeh
fbb376b4ee Fixup problems caused by sys/dev/sbus addition. 1998-07-28 04:46:48 +00:00