summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
AgeCommit message (Collapse)Author
2005-03-08Cosmetics...Thierry Deval
Mainly remove space between locators parens, replace spaces with tabs where appropriate and consistently align dependencies.
2005-01-25Do not write anything when ignoring cl interrupts not for us; this killsMiod Vallat
M8120, since cl0 and cl1 share the same interrupt, and cl1 would warn, using cl0 as the console, and an infinite loop would occur. Spotted by Christian Groessler, thanks!
2005-01-15make sure interface is in RUNNING state before touching the multicast filtersBrad Smith
From NetBSD NetBSD PR 27678 for details ok mcbride@
2004-12-27Finally put copyrights on files I wrote _long_ ago. prodded by miod@Dale Rahn
2004-12-25Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no functional change.
2004-12-24{e,}intr{cnt,names} bye-bye.Miod Vallat
2004-12-02We do not support 2MB machines, so don't bother taking them into accountMiod Vallat
in allocsys().
2004-11-13Let the chip settle for a bit more time between trying to output twoMiod Vallat
characters; this will prevent us from falling into timeout behaviour when it is in fact not necessary.
2004-11-11TyposMiod Vallat
2004-11-09Kill guarded_access() - the way we map OBIO, there is no need for specialMiod Vallat
treatement of interrupt vectors variables, a simple read will do. While there, speed up the interrupt handlers a bit: - remove old debug code or only compile it if option DEBUG. - use short circuits for setipl() if we know interrupts are disabled at this point: there is no need playing with the psr in these cases.
2004-11-09Do not map empty mbufs (m_len == 0) in bus_dmamap_load_mbuf() as these mappingsClaudio Jeker
may disturb the dma as seen in ipw(4). Emtpy mbufs are at the beginning of the mbuf chain and are as example a "side-effect" of a previous m_adj() call. OK miod@ mickey@ jason@ markus@
2004-11-09Kill more unused stuff.Miod Vallat
2004-11-09Luna88k does not have an iomap, so kill all iomap related defines, andMiod Vallat
move the mapiodev()/unmapiodev() code back to mvme88k.
2004-11-09Split {get,set,raise}ipl() into per-board implementations.Miod Vallat
2004-11-08Kill struct md_p, which was really only necessary for mvme88k; onMiod Vallat
luna88k it disappears completely, while mvme88k keeps 3 global variables, one of them scheduled to disappear very soon.
2004-10-08Move dev/cons.c to MI conf/files.Alexander Yurchenko
ok miod@
2004-10-01guarded_access() is really only used by the MVME188 interrupt engine, soMiod Vallat
do not provide it on luna88k. Makes trap() slightly faster on non-MVME188 kernels.
2004-10-01More mvme88k code cleaning:Miod Vallat
- merge locore_c_routines.c into machdep.c - split machdep.c into really machdep.c content, and board-specific routines (memory sizing, early initialization, etc). No functionnal change.
2004-10-01Oops, trimmed includes too much for RAMDISK.Miod Vallat
2004-09-30Introduce sparc-like CPU_ISFOO macros, to short-circuit evaluations whenMiod Vallat
compiling for one flavour only. This makes code slightly smaller on all m88k-based platforms (my roughly 1KB), and saves more than meets the eye on luna88k, which is m88100-based.
2004-09-30Closer to reality comments.Miod Vallat
2004-09-30More code shuffling, probably the final touch.Miod Vallat
2004-09-30Move common signal code to m88k-agnostic location.Miod Vallat
2004-09-16cleanup deafult locators (blah ?); please check that your most hated ↵Michael Shalayeff
architecture is still fluffy (;
2004-09-06Jumbo pack of fixes:Miod Vallat
- do not leak memory when polling; - bring LUN support back - Motorola documentation says LUNs are not supported, but it's a SysV/m88k limitation, not a hardware one. - honour request timeout while polling (instead of using a fixed value) - do not program the scsi command length if the hardware knows it from the scsi command group (as advised in the manual) - various minor fixes, especially better error recovery. tested by nick@ and I; ok deraadt@.
2004-08-25Swap the sources for clock and statclock on MVME188 (the Z8536 being moreMiod Vallat
reliable), and add a large block of comments to explain the timer mess^Wsituation on MVME188.
2004-08-25Rearm the DUART counter as soon as we enter the interrupt handler, to notMiod Vallat
drift the clock of the hardclock() processing time.
2004-08-25Better DUART timer interval computation for clock.Miod Vallat
2004-08-25Use a simpler delay() routine for MVME188, from Mach via Luna88kMiod Vallat
2004-08-24The#@$#%^&}1 z8536 timers runs at PCLK/2, hence 2MHz. Compensate, sinceMiod Vallat
the code assumes 1MHz timers.
2004-08-24Oops, unbreak dartcngetc().Miod Vallat
2004-08-24Correctly initialize and shuffle statclock on 1x7.Miod Vallat
2004-08-19Fix (well, rewrite) the start() logic - not only would it eat characters,Miod Vallat
but it could cause the output to stop completely. While there, fix cnputc() prototype and clean up cngetc().
2004-08-09Take advantage of the recent ABI change to use less stack space and doMiod Vallat
less stack pointer manipulation; the kernel needs to be compiled by an up-to-date compiler now, or a tree will fall on your house.
2004-08-06Merge Luna88k and mvme88k M88200 management code. Features:Miod Vallat
- simpler structures (no more redundant or easily computable information). - split scheme configuration (for 4:1 and 8:1 designs) is only compiled in if necessary (read: only on a mvme88k kernel configured for MVME188 support), which speeds up CMMU operations on the Luna88k. - will not enable bus snopping on a monoprocessor system. Tested on Luna88k-2, MVME187 and various MVME188 by aoyama@ and I.
2004-08-05Unbreak luna88k; spotted by aoyama@Miod Vallat
2004-08-04Use the ad hoc register define to access the Pbus fault status register,Miod Vallat
rather than an ugly 0x108.
2004-08-04Completely remove BATC code. BATC on 88200 are way too small to be worthMiod Vallat
using as part of the general pmap machinery (though they might come back at some point to speed up I/O mappings), and we don't use the 88110 BATC yet.
2004-08-04More cleaning:Miod Vallat
- a really working and simpler ddb "machine translate" helper. - get rid of the remains of the BATC code, which would not work as is on 4:1 and 8:1 boards.
2004-08-04KNF and a spanking in the ddb helper code.Miod Vallat
2004-08-03Overhaul of the MVME188 logic:Miod Vallat
- change the split CMMU strategy from splitting on user/supervisor, then A14/A14*, to A12/A12*, then A14/A14*. I believe this arrangment, being more symmetrical, uses the extra CMMUs better. - correctly handle 88204 - they will split on A14 and A16 instead of A12 and A14. - fix the addressing logic, when we need to know if a specific CMMU manages a certain address, or not. Code is even smaller now! - since the strategy choice makes user/supervisor distinction obsolete, remove the associated logic in m8820x_cmmu_set(). We now run multiuser on a 2P128 (4:1 88200) HYPERmodule. All 4:1 configurations should work; 8:1 configurations (1P128 with 88200, and 1P512) could not been tested due to lack of such hardware.
2004-08-03hide more inside _KERNEL; miod okTheo de Raadt
2004-08-03Clear CMMU fault status registers after reading them, for 4:1 and 8:1Miod Vallat
MVME188 configurations. Thus, we are looking at valid values when electing the faulting CMMU.
2004-08-02On MVME188 systems with 4:1 or 8:1 CMMU pairings, make sure the exceptionMiod Vallat
handling code checks the error status of the correct CMMUs and really reports an error code. This gets us closer to getting these modules to work, at the expense of sanity and some code readability.
2004-08-02Fun with the BUG:Miod Vallat
- add the board's suffix to the machine description if there is one; - recognize BUG version < 5 on MVME188, which don't provide a CNFG block. in this case we'll assume 20MHz for now, until we can parse the ENV data block correctly...
2004-08-02Better Z8536 initial programming.Miod Vallat
2004-08-02More include files cleaning:Miod Vallat
- move MAX_CPUS constant to <machine/cpu.h> - do not include <machine/board.h> unless needed. In fact, remove this file entirely on mvme88k, and include <machine/mvme*.h> on a compiling-for-this-board basis - keep MAX_CMMUS constant private to the m8820x code
2004-08-01Trim include file list.Miod Vallat
2004-08-01Move 88100 DAE code to its own file, shared between luna88k and mvme88k.Miod Vallat
2004-07-31Always claim dart interrupts, even if they report disabled conditions, butMiod Vallat
warn about them on console. More informative than ``regular'' spurious interrupt warnings.