summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
AgeCommit message (Collapse)Author
2005-12-03The first thing done when XXX_scsi_cmd() returns TRY_AGAIN_LATER isKenneth R Westerback
to set xs->error to XS_BUSY. So it is pointless and misleading to set xs->error to XS_TIMEOUT, XS_DRIVER_STUFFUP or XS_BUSY just before returning TRY_AGAIN_LATER. No functional change. ok miod@
2005-11-25Prefer vaddr_t and paddr_t types, instead of void * and heavy casts.Miod Vallat
Improves readability, no functional change.
2005-10-13Merge <machine/cpu_number.h> into <machine/cpu.h>, preparing for intrusiveMiod Vallat
changes.
2005-10-13Put the register clobbering constraints on the BUG trap instruction,Miod Vallat
not the first ldcr; hopefully gcc did not dare optimizing too much around here, so this should not change anything in practice. test martin@
2005-10-12Kill unused global variable.Miod Vallat
2005-09-25Change the size parameter of cmmu_flush_tlb() from bytes to pages. This makesMiod Vallat
things easier for the callers, and allows us to inline the "fewer than 4 pages" situation for speed.
2005-07-31Introduce bpf_mtap_af and bpf_mtap_hdr to be used when passing a mbuf chainChristopher Pascoe
to bpf with either an address family or other header added. These helpers only allocate a much smaller struct m_hdr on the stack when needed, rather than leaving 256 byte struct mbufs on the stack in deep call paths. Also removes a fair bit of duplicated code. commit now, tune after deraadt@
2005-07-18remove trailing newline in panic(9); ok millert@ and deraadt@Federico G. Schwindt
2005-04-30Remove m88k_psr_type and function with utterly long names to control the psr,Miod Vallat
and use get_psr() / set_psr() or simple macros that expand into them everywhere. No functional change.
2005-04-30Remove disabled code which would disable all interrupts rather than switchMiod Vallat
to spltty for processing.
2005-04-27Allow userland to cause the data cache to be flushed for any arbitrary addressMiod Vallat
range in the current process, using trap #451. This is necessary for proper gcc trampolines operation, and, later, ld.so...
2005-04-27Always include <uvm/uvm_extern.h> before <machine/cmmu.h>.Miod Vallat
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-24{e,}intr{cnt,names} bye-bye.Miod Vallat
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-09Luna88k does not have an iomap, so kill all iomap related defines, andMiod Vallat
move the mapiodev()/unmapiodev() code back to mvme88k.
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-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-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-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.
2004-07-30Really initialize the z8536; gives us the profiling clock again on 188.Miod Vallat
2004-07-30Move evcount structures inside struct intrhand, this makes more sense andMiod Vallat
gives us more counters in the process. Also clean up intrhand structures and usage, especially move them to SLISTs.
2004-07-23Better fix for the ttymodem issue.Miod Vallat
2004-07-23Eventually get the MVME188 reset sequence to work, and allow it to returnMiod Vallat
to the BUG instead of spinning if our reset fails.
2004-07-23Be more careful when handling interrupts - especially the first one afterMiod Vallat
the console transition from BUG to the chip could lead us to invoke ttymodem() on a bogus tty.
2004-07-23Better delay code for MVME188. Should make console and network much moreMiod Vallat
reactive.
2004-07-20Forgot to put this chunk in.Miod Vallat
2004-07-20Let the boot device detection code handle secondary SCSI buses.Miod Vallat
2004-07-20Work in progress to support daughterboards. The driver now will attach aMiod Vallat
second scsi bus if a SCSI daughterboard is present, and is supposed to know about this and send scsi commands to the appropriate bus. Unfortunately probing the second bus does not report any device at the moment (though you can boot off it), but I can't see the issue at the moment. Thanks to tdeval@ for lending a few boards equipped with daughterboards for testing.
2004-07-20Use sc_print_addr for error messages.Miod Vallat
2004-07-19Recognize the daughter board type, if any - but it is not supported yet.Miod Vallat
2004-07-19After a work queue has been aborted and the abort has been acknowledged,Miod Vallat
do not keep setting the A.A. bit in further queue control operations, as advised by the manual.
2004-07-19When we want to thaw all work queues we care about, do it correctly.Miod Vallat
2004-07-19Direct REQUEST_SENSE commands to the correct target, instead of alwaysMiod Vallat
target zero. This makes targets other than zero working now... Spotted by nick@
2004-07-18TyposMiod Vallat
2004-07-02Switch mvme88k to evcount, but keep maintaining intrcnt[] too for now.Miod Vallat
2004-07-02Be sure to fill intrhand structures correctly.Miod Vallat
2004-07-02Remove unused extra intrhand.Miod Vallat
2004-06-10Fix a logic error in sglist creation.Miod Vallat
2004-05-26Define correct EOF and EOL characters in the default firmware termiosMiod Vallat
structure.