Commit Graph

26584 Commits

Author SHA1 Message Date
matt 362ba8300c Include USB and 1394 support (sun models now have them). 2001-04-13 16:26:41 +00:00
bjh21 991d163aa2 Remove code from pmap_fault() that ws trying to do referenced/modified
emulation on kernel pages (and getting it wrong).
2001-04-13 15:09:35 +00:00
bjh21 7b00aef2da Rev 1.3 accidentally undid rev 1.2. Re-do it. 2001-04-13 14:50:47 +00:00
bjh21 ac01781de7 Make UBC_WINSHIFT a constant. 2001-04-13 12:40:16 +00:00
itojun fbc07662f5 $NetBSD$ tag cleanup 2001-04-13 08:11:44 +00:00
itojun eb0cfc6af5 s/$Id$/$NetBSD$/ 2001-04-13 08:09:07 +00:00
kleink 9133b51cd8 Replace the 'unsigned __COMPILER_INT64__' construct with a new name,
__COMPILER_UINT64__, to be supplied - if such a case is made, it shouldn't
be assumed that the unsigned type-specifier may be applied to it.
2001-04-12 22:01:18 +00:00
reinoud fdeb609887 Place a remark ... the old vidcconsole code can't handle the comconsole
not yet for it is called early in the init_arm() ... this needs to be
patched one day so it can be called very early; but is this possible ?
2001-04-12 21:54:06 +00:00
reinoud 242cca702b Part one of the COMCONSOLE repair ... it works now but the video console
is effectively dead instead... this needs work. Also the boottime switching
to the vidcconsole would be good.
2001-04-12 20:15:06 +00:00
thorpej 0d8e6faeb2 splimp -> splvm 2001-04-12 19:43:46 +00:00
thorpej 316dcc474b splvec.splimp -> splvec.splvm 2001-04-12 19:21:20 +00:00
thorpej 023e07a194 splimp -> spluba 2001-04-12 19:16:56 +00:00
thorpej c031c366f6 Add spluba(). 2001-04-12 19:16:06 +00:00
thorpej 9b2337e9d8 splimp -> splbio. 2001-04-12 18:34:56 +00:00
thorpej 89fb12c497 splimp -> splhigh when frobbing netisr. 2001-04-12 18:28:40 +00:00
thorpej 0f05a2b35c splimp -> splhigh for frobbing the netisr. 2001-04-12 18:26:26 +00:00
thorpej f5940ea000 splimp -> splvm (XXX Time critical sections, but don't want to block
the clock).
2001-04-12 18:22:55 +00:00
leo ba0a86fa22 There are no level1 or level7 interrupts possible on the Milan... 2001-04-12 09:09:56 +00:00
leo 8507fcec54 Update these for Milan addresses. 2001-04-12 07:17:30 +00:00
thorpej 7a46b74c7b splimp -> splbio. 2001-04-12 06:20:59 +00:00
thorpej b614ba3c5c splimp -> splhigh 2001-04-12 06:08:44 +00:00
thorpej ff7a879497 splimp -> splvm 2001-04-12 06:07:42 +00:00
reinoud 11c012efcc Just switch the RI_CENTER off for now ... just to avoid troubles with
the hardware scrolling code...
2001-04-12 00:42:50 +00:00
uch 62ec61f5e9 fix comment. 2001-04-11 20:13:52 +00:00
manu bb1594b20b Integrated security review for signal delivery by Wolfgang Solfrank 2001-04-11 19:41:02 +00:00
leo 3f7694f804 Adapt these for use on the Milan. 2001-04-11 14:45:07 +00:00
sato 5dd91b669c add VR4101 specific BCU registers.
add VR4122 specific BCU registers.
add cpu specific comments.
2001-04-11 08:52:59 +00:00
sato 68d21310de opt_vr41x1.h -> opt_vr41xx.h.
add 'options VR41XX' and kill 'options VR41X1'.

add 'options VR4101' (not yet supported)
add 'options VR4102'
add 'options VR4111'
add 'options VR4121'
add 'options VR4122' (not yet supported)
add 'options VR4181' (not yet supported)
these are for config level size optimization.
currenty, no optimization codes are exist.
NOTE: there are some incompatibility in VR4181 & VR4101 &
VR4102,4111,4121 group & VR4122.

GENERIC (for VR41XX series) has options VR4102, VR4111, VR4121.
2001-04-11 08:23:26 +00:00
briggs 4290b6b288 Make sure that this will compile on a big-endian system. 2001-04-11 01:47:18 +00:00
bjh21 d039e70428 Remove the "asc" driver. It's never worked, and we should have an MI version
sometime.
2001-04-10 21:33:00 +00:00
leo 247d880fc9 The Milan uses the U0 pin to switch the pci-bridge between little & big
endian mode. That's why I moved the 'wired' flag to U1.
2001-04-10 19:51:00 +00:00
leo dcc1c6a9fb Take NFDISA into account. 2001-04-10 19:36:20 +00:00
bjh21 4c8caed00d Apply a bandage to delay() so that it takes a more suitable time on
StrongARM Risc PCs.  It really should be replaced entirely, but I've got more
important bugs to fix.
2001-04-10 19:08:42 +00:00
bjh21 edde8b993b Add a DIAGNOSTIC check to see if delay() waits long enough (it doesn't on
my machine).
2001-04-10 18:58:56 +00:00
leo dc0e725f9d full[tc]flush from GLOBAL -> ASLOCAL. 2001-04-10 13:59:10 +00:00
fvdl 7d1452855c Fix bus_space_write_multi_* in the memory case; the asm constraints
were wrong.
2001-04-10 12:59:32 +00:00
fredette b27eda4ead Added. 2001-04-10 12:46:26 +00:00
fredette 1dfde059ab Use fb_setsize_eeprom to do some intialization of the
fb structure.
2001-04-10 12:44:12 +00:00
fredette bb09d2bc78 Fixed a bug where we were trying to map the board RAM
using the physical address of the board registers.
2001-04-10 12:42:51 +00:00
fredette ca414a50ad In prom_init, when making our local copy of the bootparams,
be sure to calculate the shift in terms of chars, not struct
bootparams, and don't shift undefined arguments.
2001-04-10 12:40:53 +00:00
fredette 8efc1dcff9 Fixed has_context to return true on the kernel pmap,
which always has context zero.  This was causing panics
under DIAGNOSTIC.
2001-04-10 12:39:56 +00:00
fredette 857e8fbc6b The mainbus doesn't define a device name in the attach args
after attaching the special busses, so just match when it
isn't, instead of calling strcmp with it.
2001-04-10 12:37:49 +00:00
fredette c6871b7720 Make softintr_handler return one, not zero, to properly
claim the interrupt.  Added special bus_space_probe
handling to sun2_bus_map.
2001-04-10 12:33:09 +00:00
fredette af0a9202ce Under DIAGNOSTIC, disabled a test that was using an
instruction not available on the 68010.  Also removed
more old sun3 cache-related code.
2001-04-10 12:29:10 +00:00
fredette c4973c2333 In fpu_probe, now be sure to return FPU_NONE. Returning
FPU_UNKNOWN was causing confusion in cpu_switch.
2001-04-10 12:27:40 +00:00
fredette 0cb40c9174 Define a very small UBC_NWINS to keep UBC from eating all kernel VM. 2001-04-10 12:24:05 +00:00
fredette 0050ddd2b2 Be paranoid, #undef PAGER_MAP_SIZE before defining it. 2001-04-10 12:23:14 +00:00
ross eeea1bcd05 g/c transfer_check 2001-04-10 10:09:45 +00:00
leo 3e3afaaac3 Regen. again... 2001-04-10 07:03:49 +00:00
leo e3d2d361fd The Hades also uses the TT030 like SCSI driver. Remove 'mouse' here... 2001-04-10 06:46:01 +00:00
leo 2d38da2932 Initial MILAN generic config 2001-04-10 06:39:36 +00:00
leo e409b5d5df Regen. 2001-04-10 06:39:10 +00:00
leo 99047718f0 fdisa needs-flag... 2001-04-10 06:37:08 +00:00
leo 30f5357c6e Move dma.c away from the mainbus floppy and make it a separate entity with
tag 'mbdma'.
2001-04-10 06:36:08 +00:00
leo e159fdc910 files.atari:
Defopt motherboard type and make ym2149.c dependend on 'standard' atari
    boards.
Configfiles:
    Add pseudo device mouse. It got dropped in the moves by accident.
2001-04-10 06:28:38 +00:00
leo dfaa29355b Add a config file for the Milan. Note that you cannot build a working Milan
kernel yet. There are still quite some bits missing in the repository.
2001-04-10 05:56:25 +00:00
leo 1e08d983e3 Move GENERIC to GENERIC.in . This avoids confusion since GENERIC is not a
standalone config file anymore.
2001-04-10 05:52:14 +00:00
sommerfeld 422ddeb55b In cpu_fork(), initialize u_pcb.pcb_context[8] so that the newly
spawned kthread/process runs at IPL_0 instead of whatever IPL the
parent was running at.

This appears to fix the NTP clock stability problems observed on some
alpha systems; the clock appears stable even when there's heavy
raidframe (i.e., kthread-intensive) I/O under way.
2001-04-10 00:27:00 +00:00
pk cd24bc13e7 Account for the number of counter ticks that elapse while statintr()
processing takes place. This prevents stat clock skew by a factor
approximately proportional to stathz (not a serious problem if stathz==100;
but considerable already if stathz==1000).
2001-04-09 21:28:50 +00:00
pk 2c2e7aca80 Add macro to convert a counter register value to microseconds. 2001-04-09 21:17:33 +00:00
eeh 986e7f8f1c Interrupt latency fix from sparc port. (Hm. One insn instead of 5). 2001-04-09 21:15:42 +00:00
marcus b6c1c5d49a Altentries should also be marked as functions, to keep linker happy. 2001-04-09 20:31:20 +00:00
reinoud 3e6eaba006 The old vidc console code can't handle all display depths 2001-04-09 19:33:22 +00:00
reinoud ba53dd71d7 Re-enable setmode() in wscons implementation. 2001-04-09 19:23:32 +00:00
reinoud b592059273 Just some pretty printing for 640 width screens 2001-04-09 19:22:42 +00:00
pk a0daff5647 proc_trampoline(): mave the new process run at base interrupt priority level.
This is especially important for in-kernel processes started from here,
which would otherwise keep running at splclock().
2001-04-09 18:18:48 +00:00
marcus e0d02d24d5 Mark syscalls as functions. 2001-04-09 15:52:59 +00:00
reinoud e9d5de6e98 Patch the hardware scrolling to be only used when using VRAM until it is
working perfectly with DRAM only.
2001-04-09 13:59:44 +00:00
leo 3aabea5c70 Remove '_KERNEL' conditionalizing. This break userland apps.
Noted by Steve Allan.
2001-04-09 05:35:32 +00:00
tsubai 2a7597f49e Make this compile w/o ukbd. 2001-04-08 08:53:31 +00:00
reinoud ed0aea79a7 Make the NC start run again ... it didnt detect the start of the DRAM good
enough.
2001-04-07 20:57:24 +00:00
dbj 179671f564 automatically restart dma for unexpected shutdowns 2001-04-07 13:02:55 +00:00
dbj b2e3cc1a2e continue to tweak nextdma detection of xfer length
add check to esp driver for incomplete transfers, but still does not handle them.
2001-04-07 11:29:50 +00:00
tron 824065dc0a Don't call "is_a1200()" again after its result was stored in the "softc"
structure.
2001-04-07 05:09:27 +00:00
leo adc78de568 Regen. 2001-04-06 21:55:11 +00:00
leo 54d70d6eef Add a 'ser0' device to all. Add ne2000, 3Com 3c59x/3c90x and ESS Solo-1
support to the Hades.
2001-04-06 21:53:39 +00:00
fredette 666b4cf417 A successful compile is near. 2001-04-06 17:17:58 +00:00
simonb 1c69191831 Fix typo - s/dbcst/dcbst/. 2001-04-06 16:48:11 +00:00
fredette ec984a04ad Added. 2001-04-06 15:05:55 +00:00
fredette 3ff14b7ac5 vm/vm.h -> uvm/uvm_extern.h
Cleaned up definitions of cputype and mmutype.
mon.h -> promlib.h, and use all of the new prom_
functions instead of the old mon_ functions.
Removed all of the old mon_ capturing code to
promlib.c.
2001-04-06 14:59:09 +00:00
fredette e3edb8d20c Gratuitous comment changes. 2001-04-06 14:52:56 +00:00
fredette 6529ec2635 Now include machine/promlib.h instead of machine/mon.h, and
use the new prom_ functions instead of the old mon_ functions.
Added the internal _pmap_extract_pmeg function, and removed
some old Sun3 cache-related code.
2001-04-06 14:52:19 +00:00
fredette 353ad332f0 Added some support for the old-school 'g0' and 'g4' monitor
hooks, and removed some old Sun3 cache and interrupt-register
related code.
2001-04-06 14:36:08 +00:00
tsutsui 06c28be1fe Install byte_swap.h on make includes. 2001-04-06 14:11:20 +00:00
fredette 20293ce870 Added. 2001-04-06 13:13:01 +00:00
fredette d8d78f2801 Added a prototype for the internal function _pmap_extract_pmeg,
used by the bus_dma implementation when double-mapping pages
by hand.
Now define PMAP_OBMEM for completeness.
2001-04-06 13:12:06 +00:00
fredette 874e89c74d Added an internal bus_space flag to find and use PROM mappings.
Added an internal bus_dma flag to mark when a map has been
loaded by double-mapping pages by hand, outside of the pmap.
Added more prototypes for our bus_dma implementation.
2001-04-06 13:09:10 +00:00
fredette 85c6ec3b50 Now use the proper DVMA map size depending on what
machine type we're on.
Removed all prototypes, since we're going bus_dma.
2001-04-06 13:03:14 +00:00
wiz 14dbdf5518 Negative exit code cleanup: Replace exit(-x) with exit(x).
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
toshii ff71a021ca There is no /usr/include/hpcarm/disklabel_acorn.h. 2001-04-06 11:10:57 +00:00
jdolecek e482ee9d62 add rnd (for ssh/sshd) and couple comments 2001-04-06 06:44:08 +00:00
toshii 3180bc6ac6 Fix a couple of bugs including kernel_pt_table[] range overflow.
I thought some incompatiblity with gcc-2.95.3 prevented booting,
but the actual reason was this silly overflow.
2001-04-06 05:38:01 +00:00
reinoud 0eb01da9c9 Two preliminary NC kernel definition files.... 2001-04-05 22:34:28 +00:00
reinoud 1b2003f235 Apply patches for the NC ... not really in the line of the merge but at least
its in the source tree for now.
2001-04-05 22:33:12 +00:00
bjh21 9411be7c80 Re-enable the old "ea" and "eb" drivers under the names "oea" and "oeb".
These shouldn't last long, but they may be useful until I hammer all the bugs
out of the new version.
2001-04-05 20:31:50 +00:00
tsubai b672929b7f Support uni-north based models. (XXX not complete) 2001-04-05 19:55:01 +00:00
reinoud b44dca831b Since the NC's seem to have trouble with the OS_HeapSort, i've implemented
my own sorting routine (bubblesort). Also replaced a declaration for BASIC
seemed to mess things up.
2001-04-05 19:17:17 +00:00
rearnsha d9de58f3e1 Ansify. Replace bcopy/bzero with memcpy/memset. Clean up formatting.
Clean up debug messages.  No significant functional changes.
2001-04-05 18:06:45 +00:00
tsubai a9e0aabf3f Correct input volume settings. 2001-04-05 14:21:31 +00:00
leo 1324cab42e And commit the generated files. 2001-04-05 12:25:15 +00:00
leo 6b22a0776c Forgot this in previous commit. 2001-04-05 12:22:10 +00:00
leo fb0acfc293 Major overhaul in the config files. The idea is to have the major part of
the generic options in GENERIC instead of duplicated all over the place.
To generate a config file, run 'makeconf'. This script uses cpp to combine
a '.in' file and GENERIC to a real config file.
2001-04-05 12:21:30 +00:00
tsubai b01df63489 Assume USB keyboard when `usb-kbd-ihandles is not found. 2001-04-05 10:10:26 +00:00
tsubai eb4f61df19 Regenerate this file from cvs repository in order to get back original
copyright.
2001-04-05 09:58:05 +00:00
dbj 4db02d75fa initialize zsaddr to intio address space in zs_attach
addresses pr 6770
in the future, zs should be upgraded to use NEXT68k_INTIO_BUS_SPACE
instead of using IIOV directly.
2001-04-05 05:35:12 +00:00
dbj 0c6af3e769 comment out M68030, since we do not yet support NeXT 68030 computers 2001-04-05 04:42:42 +00:00
dbj 14688b4513 check for a 68040 MMU before using the TBIA instruction
addresses PR 10409
code grabbed from mvme68k locore.s
2001-04-05 04:37:43 +00:00
dbj 1e812ee6cf remove unused cache operations, we now use shared m68k/cacheops.c 2001-04-05 04:23:56 +00:00
reinoud d2b84b36d2 Removing an old unused include 2001-04-04 21:40:20 +00:00
reinoud 8008708109 Hmm... these were just plain wrong ... it should be more sane now 2001-04-04 21:11:07 +00:00
is 3a27b85296 This only works with data registers. 2001-04-04 19:53:05 +00:00
reinoud 9d0e339af2 Fix a big memory allocation bug in the bootloader; i underdementioned
a piece
2001-04-04 17:13:28 +00:00
manu 4678df7c23 Cosmetic change 2001-04-04 17:08:07 +00:00
tsutsui 41e535a424 Remove an unused variable which was caused on KERN_* error code removal. 2001-04-04 16:43:04 +00:00
pk 0929f3662e * Missing PROM_OPENFIRM: case in getdevtype() and prom_getether().
* In getdevtype(), use prom_instance_to_package() to get to the device node.

From Valeriy E. Ushakov on port-sparc@netbsd.org.
2001-04-04 15:41:46 +00:00
tsubai 570716506c Add rnd. 2001-04-04 10:18:28 +00:00
tsutsui c8ff6232b7 Restore #endif which was mistakenly removed in previous. 2001-04-03 22:46:03 +00:00
manu 15fbc5943f Added a comented out COMPAT_LINUX option in GENERIC kernels of PowerPC ports 2001-04-03 19:50:43 +00:00
jhawk d95ba2eb80 Remove gratuitous setting of SYSDIR;
it is set in sys/kern/Make.tags.inc
2001-04-03 17:12:23 +00:00
jdolecek c84d3343d1 add standard NetBSD RCS Id on top 2001-04-03 13:10:26 +00:00
sato 6601895830 add vrc4172pwm for MC-R510, MC-R520. 2001-04-03 09:02:24 +00:00
hpeyerl bda486229f This machine hasn't existed for some time. 2001-04-02 14:46:48 +00:00
reinoud 4b9911dfd2 Finally implement the BREAK key in the wskbd ! :)
The BREAK key is a wierd one that gives an extra prelude.
2001-04-02 12:34:34 +00:00
fvdl ecca88089a Override NFS read and write size to default to 32k for the i386 here
(can be overridden from a config file).
2001-04-02 11:48:18 +00:00
wdk dacfad3be3 Clear interrupt latch after interrupts are processed, not before. 2001-04-02 09:54:16 +00:00
dbj 6c04c75c6c No longer clobber the DMACSR_SETENABLE bit in the dma interrupt
Add the ability to handle unexpected dma shutdowns
2001-04-02 05:29:43 +00:00
dbj a5523b0bfd remove unused ifmedia fields 2001-04-02 05:29:42 +00:00
dbj dff3edd66d removed unused mediachange routines
changed ethernet receive to handle unexpected dma shutdowns
2001-04-02 05:29:42 +00:00
dbj 235c2b2545 reenabled flushcount diagnostic check.
tweaked formatting on hex dump debugging routine
2001-04-02 05:29:42 +00:00
dbj 403a09df61 resync with mvme68k 2001-04-02 05:28:38 +00:00
chs 10e361a3bf in the 386 case of copyout(), reload "len" from the stack after verifying
write permission since pcb_onfault will clobber %eax if we fault.
2001-04-01 23:54:14 +00:00
jdolecek 8a08e12c86 slighly adjust comment 2001-04-01 23:14:02 +00:00
reinoud 12f7f9e0de Make it compile again ... removed an unused variable 2001-04-01 20:16:25 +00:00
reinoud 321ff3e0db Remove the VIDC start video programming from the Vsync to when its moved; this
also solves problems with the interrupts being disabled in ddb resulting in no
scrolling :(
2001-04-01 20:08:18 +00:00
ragge b98dc685a3 Be sure that all kernel stack pages are valid after swapin. Fixes PR#12520. 2001-04-01 19:18:42 +00:00
reinoud 4b7f5e2feb Add hardware scrolling to the RiscPC wscons implementation.
There are still some minor oddities esp. at startup but after that it
functions OK.

The scrolling speed is increased *dramatically* and allmost even faster
compared to the old vidcconsole code; *NOT* tested yet on non-VRAM machines.
2001-04-01 16:58:05 +00:00
reinoud 29cf89ce1a Bump BtNetBSD version number to 0.95 ... forgot that 2001-04-01 16:50:24 +00:00
tsubai 85dc2162fb Correct vBufA offset. (currenly not used) 2001-04-01 15:14:36 +00:00
tsubai 42fc57ff46 Remove gpio. It's not a time to use separate gpio node yet. 2001-04-01 10:42:34 +00:00
tsubai 158796407f Adjust timing for pmu99. Internal keyboard of recent PowerBooks
should work now.
2001-04-01 10:40:45 +00:00
dbj 36f2be46e8 purge the cache on BUS_DMASYNC_PREREAD instead of BUS_DMASYNC_POSTREAD 2001-04-01 01:42:51 +00:00
leo ad8c9f3a7e Wcd attacment code for the Milan. The Milan has the standard dual IDE port
hardware. A Milan specific attachment is needed to modify the iot so that
the streaming methods do a byteswap.
Configure like:
  wdcisa0 at isa? port 0x1f0 irq 14
  wdcisa1 at isa? port 0x170 irq 15
2001-03-31 20:24:10 +00:00
leo a054ccd1d4 Add a tag to the fdcisa.c and isa/fd.c files. So they won't be used
unnecessary (and cause trouble).
2001-03-31 20:13:19 +00:00
chris 101035dac6 Add EtherN/EtherI card support + EtherH media auto detection support.
Based on updated patch from Mike Pumford, originally submitted in
port-arm32/8765.
2001-03-31 15:32:46 +00:00
toshii fe9328ad71 Reorder so that basic devices attach first. 2001-03-31 13:49:44 +00:00
toshii 2303009aeb Add SA11[01]0 DMA controller register definitions.
(I forgot to commit this a week ago.)
2001-03-31 13:13:22 +00:00
toshii 4f12f94c95 Protect spl changing functions from interrupts. 2001-03-31 12:53:59 +00:00
toshii c1244a5828 Remove cons_init(com), which prevents compiling in com_pcmcia.c. 2001-03-31 12:52:31 +00:00
toshii 02811d05f2 Fix a bug which caused interrupt loss. 2001-03-31 12:49:21 +00:00
toshii 2efdaff40e Set hardware interrupt masks in sa11x0_intr_{establish,disestablish}. 2001-03-31 12:48:10 +00:00
toshii 129f529148 Back out most of rev 1.4 so that it compiles again. 2001-03-31 12:36:53 +00:00
toshii dfddb1e107 Increase spl_masks[] size by one and set the extra element to 0.
irq_entry accesses here.
2001-03-31 12:22:37 +00:00
ragge fab65b55e4 (Untested) recognition of KA55. 2001-03-31 11:50:45 +00:00
ragge 9a6b7bcffa Support for the 4000/600 cache, from Lord Isildur. (mrfusion@vaxpower.org) 2001-03-31 11:50:12 +00:00
hubertf 267271c1b2 Explain some SA_* options - reading compressed kernels, netboot
Useful for stripping down bootcode.
2001-03-31 09:45:11 +00:00
minoura 1a1b6fb6d2 Match XpressAudio. 2001-03-31 09:24:37 +00:00
minoura 92e327c226 Match PNP0320 (Japanese 106-key keyboard A01).
- We could use this information to determine the default keymap (?)
 - Match more keyboards? (e.g.strncmp(idstr, "PNP03", 5))
2001-03-31 09:20:40 +00:00
dbj 5f670bebfc Initialize the entire pmap table before populating it.
This addresses pr 7174
Thanks to Christian Limapch for diagnosing the problem.
2001-03-31 09:05:21 +00:00
tsubai c13ba16f2b Fix an uninitialized variable reference in cpu_fork().
Reported by Tad Hunt <tad@entrisphere.com>.
2001-03-31 07:50:59 +00:00
dbj 41833a3286 comment out device register structure definitions, used for reference only.
remove unnecessary BUS_SPACE_MAP_LINEAR when mapping ethernet dma registers.
2001-03-31 06:56:54 +00:00
jdolecek 803c0c7eda Add driver for AT1720 MCA cards. This uses generic MB86960 support code,
and shares some bits with ISA AT1700 driver. Gee, this one was really
easy :)

This card turned out to be quite good performer - I get about 360KB/s
on 386DX PS/2 machine, which is best of all supported cards so far.
2001-03-31 00:43:04 +00:00
enami 2ceebb6c0e Remove unnecessary test of tp->t_linesw against NULL; they are results
of confusion while correcting compilation error after t_line is
replaced with t_linesw.
2001-03-31 00:35:21 +00:00
wdk 6b982beac1 Call softintr_init() 2001-03-31 00:10:03 +00:00
wdk 3e4cc841a7 Add softintr and ISA bus support 2001-03-31 00:08:34 +00:00
wdk a03b2aaaf0 Reverse previous commit - isa headers don't belong in /usr/include 2001-03-31 00:05:57 +00:00
wdk d3a8b4016e Add isa_machdep.h and isapnp_machdep.h 2001-03-30 23:59:19 +00:00
wdk 0ca4ab64ac Add ISA serial port device 2001-03-30 23:54:45 +00:00
wdk 9641e5d860 Probe ISA bus devices 2001-03-30 23:52:05 +00:00
wdk dd068f675e Changes to interrupt architecture for softintr support 2001-03-30 23:51:14 +00:00
wdk cdba0ef41c Add some ISA bus cards 2001-03-30 23:49:37 +00:00
reinoud 7cf783665e Please preserve copyright notices modified by Ben Harris since the a.out and
ELF structure loadings are of his design from BBBB
2001-03-30 23:49:06 +00:00
wdk 1b6e2e02dd Add files for ISA bus and softintr support 2001-03-30 23:47:58 +00:00
wdk 8cd59636b4 Support for ISA expansion slot in Mips 3230
The ISA Bus on this machine doesn't support DMA, and all interrupt lines
are wire-OR'ed together.   Mileage may vary if sharing interrupts.

Tested cards:
     com:  8250 and 16550 UART's (8 bit)
     ec:   3com Etherlink II (8 bit)
     we:   SMC 8013 Ethernet (16 bit) [work in progress]
             Probes, ARP in both directions works, sends clean packets,
             tcpdump show correct packets on receive, NDP for IPv6 works,
	     netstat -s shows nothing strange.. but doesn't talk TCP/IP!
2001-03-30 23:45:18 +00:00
reinoud 7d798b3ef7 Initial ELF kernel loading for RiscPC/A7000/NC based on Ben Harris's work
Since arm32 isnt switched to ELF yet its not completely tested; It loads
a kernel but then hangs on symbol table loading; propably a ELF/a.out
symbol table conflict.

Also cleaned up the code a bit
2001-03-30 23:44:58 +00:00
wdk 154a3bba69 use MI softintr 2001-03-30 23:28:00 +00:00
wdk 5d03735614 Move most interrupt functionality to arch/mipsco/mipsco/interrupt.c
Remove old style soft interrupts to favor MI softintr support
2001-03-30 23:26:29 +00:00
wdk 09d79c4b1f New data structures and prototypes for MI softintr support 2001-03-30 23:23:37 +00:00
wdk 273d283d25 Implement MI softintr functions (softintr_establish, softintr_schedule etc) 2001-03-30 23:21:30 +00:00
wdk 9477a9256c Re-implement bus_space(9) functions:
- Correctly handle striding of data
 - Better support for endian neutral access
 - Correctly implement _stream variants of bus_space functions that can
   byte swap.  This reverses the automatic byte swapping done in hardware
   for 16 bit ISA bus cards
2001-03-30 23:17:03 +00:00
leo a22b0cbf4d Optimize bswap16() and bswap32() functions to inline assembly. 2001-03-30 20:00:05 +00:00
tsutsui 7cd0069dfc Make this compile without com. 2001-03-30 16:32:02 +00:00
uch c5496871db fix comment. 2001-03-30 15:59:17 +00:00
minoura a9a5dcd043 Add yds at pci and children.
Alpha and i386 are the only tested ports.
2001-03-30 14:47:48 +00:00
mycroft 355086c412 The `speed' statistic from the RNG was brought to you by the letter `B' and
the letter `S'.  I don't think anyone will miss it.
2001-03-30 12:05:02 +00:00
toddpw a6a587a71e Track prototype change to isa_fillw() that avoids passing u_short as an arg. 2001-03-30 11:21:33 +00:00
ur 5ba1d71d33 Don't reference nonexistent register on R96. (and maybe R94 too) 2001-03-30 09:10:48 +00:00
wdk 70a7bcb64b Remove ncr53c9x_dmaselect 2001-03-30 07:49:07 +00:00
fredette cce60f68dc Added. 2001-03-29 21:07:56 +00:00
petrov d6b50e1598 add fas configuration 2001-03-29 18:54:58 +00:00
tsubai 6386dedebe When attached, do not change brightness if the value is zero. 2001-03-29 17:44:50 +00:00
eeh cc5ddb2b20 Make `trace' useful even w/o symbols and add /f option to dump parameters. 2001-03-29 14:58:08 +00:00
fredette fb96b4d88c Added. 2001-03-29 04:58:52 +00:00
fredette 22a64b5a3e Added. 2001-03-29 04:35:09 +00:00
fredette fbd8636feb Added. 2001-03-29 04:16:21 +00:00
fredette da500dc6be Removed some sun3 references. 2001-03-29 04:07:54 +00:00
petrov 1c9cc1b092 use NCR_F_DMASELECT instead of ncr53c9x_dmaselect 2001-03-29 03:30:19 +00:00
fredette 6095b6e2ff Added. 2001-03-29 03:24:19 +00:00
marcus 0640ad6ace When the endians are little, they are little. 2001-03-29 03:23:33 +00:00
fredette 3eb7866aaa Added support for the 68010 bus error frame. 2001-03-28 23:08:15 +00:00
ichiro a8c0b619da support umct USB-serial device 2001-03-28 18:45:07 +00:00
drochner 676bacb4ea include "opt_ddb.h" explicitely 2001-03-28 18:03:49 +00:00
tsutsui 7f28cbe9dc Fix an obvious typo. 2001-03-28 17:33:07 +00:00
tsutsui fdce371144 objcopy -> ${OBJCOPY} 2001-03-28 17:04:44 +00:00
tsutsui 864a597f2d Define ${OBJCOPY}.
XXX: Should we use ${CROSSDIR} here or not?
2001-03-28 17:03:48 +00:00
fredette 2deceb396c Brought up-to-date with revision 1.124 of the Sun3 pmap. 2001-03-28 14:15:11 +00:00
fredette a8cd6c5401 Added. 2001-03-28 13:47:58 +00:00
bjh21 5677634e50 Small comment correction. 2001-03-28 13:04:57 +00:00
toshii 221f247a25 Add some missing functionality.
- wait READY signal in enable function
 - use tsleep for large delays
 - implement disable function
2001-03-27 18:06:39 +00:00
ragge b6aa1dfc2b Compile vsbus_dma.c if vax53, hinted by Michael Kukat. 2001-03-27 18:01:59 +00:00
ross e84bc939c9 On alternate Tuesdays, SRM uses a different method of identifying
PCI interrupts routed to the ISA ICU.
2001-03-27 01:39:51 +00:00
pk a97039b0ae pmap_release(), pmap_pinit() and the `pm_regstore' field are obsolete. 2001-03-26 23:18:51 +00:00
pk 4de5b658ad Use a pool cache for pmap allocation. The cached pmap structures include
a ready-to-use level 1 page table (on sun4m) and MMU context.
A simple `fork()' test shows an improvement in spent system time of
around 4 percent (which is just a bit disappointing, IMO, but it's
an improvement nonetheless).
2001-03-26 23:12:03 +00:00
pk 104bada017 Missing KERNEL_PROC_LOCK() in the WIN_OF trap code. 2001-03-26 21:58:34 +00:00
briggs 10e66b85b1 Ensure that my last change compiles with warnings enabled. 2001-03-26 19:56:32 +00:00
briggs 2ff606560c Do not save/restore the kernel SR since we are no longer trying to copy
it in pmap_activate().  Pointed out by ws in a private message.
2001-03-26 18:52:29 +00:00
chs ded6fe39cd bump version to 1.9: ELF and MI loadfile(). 2001-03-26 15:36:48 +00:00
lukem 20ba07f2fe - add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
and use appropriately

- create more helper macros:
   . cdev__xyz_init(c,n), such as cdev__ocri_init() for
     /* open, close, read, ioctl */, etc.
   . cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
     method `R' and the comments now read /* xxx (read) yyy */ instead
   . cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
     as well

- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
  always DTRT WRT returning a valid result.  (a few devices previously
  incorrectly returned ENODEV)

- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
  == 0, because it doesn't matter if dev_type_stop isn't implemented in that
  case, and it allows the use of the cdev__xyz_init macros. certain ports
  (sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
  drivers, whereas everything else uses enodev

- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
tsutsui 7e28d29b32 - MI loadfile() returns a file descriptor, not errno.
(error is printed in MI loadfile() anyway)
- Make sure to try to load all default kernel names,
  including netbsd.sun3[x].

Now sun3 ELF based miniroot works properly on my 3/80.
2001-03-26 11:54:50 +00:00
tsutsui 09bedcf84f Add GENERIC_TINY config for low memory (and slow) machines. 2001-03-26 10:25:34 +00:00
sato 6c5da9bd76 o Change initialization for config_hook() base lcd control.
o Fix backlight control in case that light is controlable but not be
  able to get status.
o change some verbose prints.
2001-03-26 09:40:45 +00:00
sato 887d70ab8f CONFIG_HOOK_GET support for get current port status. 2001-03-26 08:57:02 +00:00
reinoud 903b8688da The interface to `setdisplay' was implemented wrong. The utility stated the number
of bits per pixel instead of the log2_bpp as assumed (since the rest uses this).
2001-03-25 21:25:35 +00:00
uch 113c9ed888 recompile. 2001-03-25 17:16:33 +00:00
uch e78f561e10 speed up physical address detect routine. (MemoryManager_VirtualCopy) 2001-03-25 17:14:53 +00:00
uch 24beb5ffb9 support 'reverse video' option. 2001-03-25 17:14:04 +00:00
uch c31816f70c selectable serial console speed. 2001-03-25 17:13:15 +00:00
is 0e72b76163 Missing changes to the last update, making this compile (and work) again. 2001-03-25 16:14:00 +00:00
uch ed26af9e66 recognize hpcboot.exe's ELF symbol table. 2001-03-25 15:15:18 +00:00
takemura 44e4c53338 Add MQ200_USECRT option, which enables CRT output on MC/R530.
This is kernel configuration option and you can't enable and disable CRT
dynamically for now.
2001-03-25 13:06:52 +00:00
takemura bea77d06a2 Add #ifndef _HPC_PLATID_H_. 2001-03-25 12:17:35 +00:00
jdolecek b53fce84d3 Add an autoconfig node for PCI-MCA bridges. Configures MCA bridges
via callback. This beast is very rare, present only on some IBM PCs.
Code was copied off pceb.
2001-03-25 09:54:10 +00:00
ross 5b36d84a9c Don't panic until DEFCON 1. 2001-03-25 06:38:50 +00:00
nathanw a45ca84ab5 Verbose display of machine check errors on AS200/400 boxes. 2001-03-25 05:52:38 +00:00
bjh21 8edd158910 MI(ish) EtherB driver using the MI SEEQ 8005 driver. Very lightly tested. 2001-03-25 01:09:36 +00:00
bjh21 cbe4d910da It might be useful if I actually filled in the interrupt handle for
podulebus_irq_establish() to use.
2001-03-25 00:56:58 +00:00
matt f283c0a504 Use ${THISSH3} instead of ../.. ; not everyone builds in ../compile/FOO 2001-03-24 18:26:11 +00:00
sato c5956b89f8 change backlihght parameter value type to int8_t. 2001-03-24 16:08:36 +00:00
sato 8c78f7fad3 add vrc4172pwm for MC/R520A(MobilePro770) 2001-03-24 15:56:59 +00:00
sato 1907b28be1 add MobilePro770(MC/R520A) parameters. 2001-03-24 15:53:37 +00:00
martin 478c6ce6b9 Adjust to new hardware driver <-> isdn layer 2 and above sheme. 2001-03-24 12:45:15 +00:00
briggs 132a113507 Do not hardcode the kernel segment register, and do not load the kernel
segment	register in pmap_activate().
2001-03-24 05:30:57 +00:00
christos 728aee3ccb Some bios's when apm is disabled [or even some functions of it are disabled],
they keep giving error 0x30b. Unfortunately this keeps happening every second
making the console unusable. Keep track of the last error that occurred and
if the last 10 times apm was called the same error was returned, give up and
exit the apm thread.
2001-03-24 02:07:54 +00:00
bjh21 8bd452c648 Create an MI Ether3 driver. It's derived from the arm26 driver, which uses
my MI SEEQ 8005 driver, which is based on the arm32 ea driver.
2001-03-24 00:14:52 +00:00
bjh21 2714607c72 Add podulebus_shift_tag, which generates a bus_space_tag_t with a specified
address shift (stride).  This is necessary because many podules have standard
chips with odd address-bus wiring to allow for using LDM for
bus_space_*_multi_*().
2001-03-24 00:10:42 +00:00
jdolecek 75b7bea508 Add MCA we(4) attachment for WD80x3 cards and clones. Tested with
WD8003W/A, card provided by David Brownlee (thanks!). The SMC Elite stuff not
tested since I don't have any; hopefully it's correct, should match
information in ADF files.

The MCA-specific init quirk taken from Linux smc-mca.c driver.
I don't quite grok why it works, but it does *cross fingers*.

The WD8003W/A seems to be quite a good choice. I get like 340KB/s on my
machine, where 3c523 does only like 310KB/s. The numbers would be probably
even better with faster CPU than 386DX :)
2001-03-23 19:25:35 +00:00
toshii d2f3ad2de2 Support machdep.booted_kernel sysctl. 2001-03-23 11:10:10 +00:00
sato 8f5f11180a o add sysctl machdep.booted_kernel support.
o add sysctl machdep.root_devoce support.
2001-03-23 11:09:49 +00:00
tsubai 95a27e3b60 Remove devices which don't exist on floppy based models.
Now boot floppy fits 1.4MB again.
2001-03-23 09:30:49 +00:00
toshii 7ed6dadd10 Handle bootargs passed by hpcboot.
Change stack pointer initialization.
2001-03-23 08:58:14 +00:00
toshii 3bf1867147 Rebuild after the bootarg change. 2001-03-23 08:51:23 +00:00
toshii 59b3c088fe Pass bootargs like usual function calls.
Initialize sp register to more useful value.
2001-03-23 08:48:12 +00:00
toshii 07b77f05ce Have LINEBYTES for jornada720. 2001-03-23 08:46:56 +00:00
simonb 5aa49b6404 Delete unused uvtopte() macro. 2001-03-23 01:27:59 +00:00
petrov b47f68b66c fix 'show registers' mis-aligned access, PR11580 2001-03-22 22:20:28 +00:00
uch 40de0e48b0 add ELF kernel linker script. 2001-03-22 18:35:33 +00:00
uch 5a79dd1121 load symbol table to DDB if ELF kernel. 2001-03-22 18:34:08 +00:00
uch 7060cad775 recompile. 2001-03-22 18:30:49 +00:00
uch 4e6c980fa0 add HD64461 UART serial console.
add SH3 SCI console method
add SH3 TMU register dump
use generic serial console when companion chip is unknown.
2001-03-22 18:27:51 +00:00
uch a7876b44d8 add file logging method. 2001-03-22 18:26:45 +00:00
uch 044f4eb367 fix calcurating kernend bug. 2001-03-22 18:23:08 +00:00
uch 87aeed6110 fix file handle leek. 2001-03-22 18:21:02 +00:00
uch bf58a25f9b weakly machine dependent configuration moved to machine_config.cpp 2001-03-22 18:20:35 +00:00
uch 62bef7c830 fix file pointer bug. 2001-03-22 18:19:36 +00:00
uch f0190d355c add machine independent serial console method. (use WinCE API) 2001-03-22 18:19:09 +00:00
uch 985f960311 add HP Jornada 690 Hungarian, German entry and
my target machines (CASIO Cassiopeia A-55V, HITACHI PERSONA HPW-650PA).
2001-03-22 18:16:13 +00:00
jdolecek 031c6d8c24 Add MCA ep(4) attachment, for 3Com 3c529-type cards. Tested with 3c529-TP,
provided to me by David Brownlee (thanks!).

Performance of this card is quite poor on my PS/2 with 386DX, like 100KB/s
at best, but as low as 5KB/s when transferring bigger files due to
packet overruns. It would be good to revisit this later, probably by
teaching the ic code to use RX Early.
2001-03-22 16:54:45 +00:00
mrg 74786e7894 remove overzealous locking changes. 2001-03-22 15:56:43 +00:00
minoura 23d323f4f9 Sync with amiga 1.15.
Make this compile again (when building the LKMs).
2001-03-22 12:47:11 +00:00
minoura b711716241 A bit of ELF support. From scw. 2001-03-22 12:46:19 +00:00
matthias 2282e42ec2 Fix type in pliptransmit declaration (C version). Noticed by
Tyrel Beede <tb90@mail.csuchico.edu>.
2001-03-22 08:14:23 +00:00
mrg 0fa02bb6e6 sync with sparc64. 2001-03-22 06:21:43 +00:00
mrg e563dea3f6 sync with sparc64 (just some debug messages.) 2001-03-22 06:21:15 +00:00
tsubai ce8902b7fe Merge my MP tree. At this point, Daystar dual 604 card (i.e. Power Macintosh
9500/180MP and 9600/200MP) runs at least into single-user mode, possibly
multi-user mode (not stable yet).
2001-03-22 04:11:46 +00:00
toshii 2d6322c3be Handle ELF symbol table. 2001-03-22 03:45:39 +00:00
lukem 9f60674a47 now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
2001-03-21 23:42:14 +00:00
lukem 723cd818d8 move duplicate definitions for:
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
ragge 4a933b0a25 VAX_STYP_690 added, from Lord Isildur. 2001-03-21 21:11:13 +00:00
soren 912c115675 s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. 2001-03-21 18:40:28 +00:00
toshii 7e9512010c Oops. I forgot this line. 2001-03-21 17:43:39 +00:00
toshii 4b32677535 Map DMA controller and disable its DMA channels. 2001-03-21 17:42:37 +00:00
toshii f8dab8e69a Make card insertion/removal work.
XXX powerdown and {io,mem}_unmap are still missing.
2001-03-21 16:16:35 +00:00
toshii 7c429e90c2 Handle interrupt polarity. 2001-03-21 16:08:34 +00:00
toshii f1b9737b90 Fix nit. 2001-03-21 14:48:30 +00:00
toshii d16849a006 Make this compile again. 2001-03-21 14:40:00 +00:00
toshii b0b31f8cfc Rebuild binaries after ELF symbol table support. 2001-03-21 14:18:28 +00:00
tsutsui 8c60f09e43 - Use ${PRINTOBJDIR}
- size -> ${SIZE}
2001-03-21 14:08:03 +00:00
toshii 358a8ee71a Load ELF symbol table for DDB. 2001-03-21 14:06:25 +00:00
toshii 5b519fb0f9 Fill in framebuffer address for jornada720. 2001-03-21 14:05:10 +00:00
tsutsui 45480ac3bc Move rules to create m68k and machine symlinks to common Makefile.inc. 2001-03-21 13:43:58 +00:00
tsubai 577fa61b83 Enable interrupts before calling interrupt handler(s). 2001-03-21 11:38:39 +00:00
tsutsui 34e44075e0 - Remove "NOMAN= yes"
- Use "WARNS?= 1" rather than add warning options to COPTS.
2001-03-21 11:08:52 +00:00
tsutsui 650e6506dc Remove "NOxxx= yes" lines since "MKxxx= no" is enough. 2001-03-21 11:02:24 +00:00
tsutsui 9ae0cb4d12 Make sure to create m68k and machine symlinks to include loadfile_machdep.h. 2001-03-21 10:58:54 +00:00
mrg 47e6a41505 only lock the kernel around sy_call if !SYCALL_MPSAFE 2001-03-21 09:01:16 +00:00
chs 11fe9ca446 use ubc_winshift instead of ubc_winsize in pmaps to set up kernel
virtual space.  the latter isn't initialized yet when the value is needed.
fixes PR 12440.
2001-03-21 03:16:05 +00:00
mrg af58b235e0 adapt to systems with out interrupt-map & interrupt-map-mask properties. 2001-03-21 01:33:47 +00:00
pk b54ea24924 Merge in4_cksum(). 2001-03-21 00:38:47 +00:00
bjh21 de59def2f2 Remove spurious #define mod_base. 2001-03-20 23:29:07 +00:00
bjh21 998606396f Move struct podule_list and struct podule_description to podulebus.h.
They're MI, even if only arm32 actually uses them at present.
2001-03-20 23:27:04 +00:00
bjh21 86d6442c28 Move machine-dependent podulebus headers to <machine/podulebus_machdep.h>.
<dev/podulebus/podulebus.h> is the canonical file to include, and includes
<machine/podulebus_machdep.h>.
<arch/${MACHINE}/poudulebus/podulebus.h> remains for backward compatibility.
2001-03-20 22:59:39 +00:00