summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
AgeCommit message (Collapse)Author
2009-02-14Add vsbic(4), a drive for the MVME327A SCSI and floppy controller, only forMiod Vallat
the SCSI part so far.
2009-02-14Fix a few defines.Miod Vallat
2009-02-13Provide a specific delay() routine using separate timers for the two cpusMiod Vallat
on MVME197DP boards running the MP kernel.
2009-02-12BPP routines for ``intelligent'' Motorola MVME boards. Currently not usedMiod Vallat
by anything, will eventually be used by the vx(4) MVME332 driver (once I take the time to fix it) and the vsbic(4) MVME327 driver being worked on.
2009-02-08Use the correct flags when bus_dmamap_sync()ing the s/g lists.Miod Vallat
2009-02-01Nuke whitespace at EOL.Miod Vallat
2009-02-01Finally switch this driver to bus_dma.Miod Vallat
2009-01-29Add a few cache operations after I/O completes.Miod Vallat
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-23Fix uninitialized variable.Miod Vallat
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-05For each channel, tell if it is single-ended or differential if we can knowMiod Vallat
this. Might help before someone sets his disks on fire. Especially with boards where not all channels are of the same type.
2008-01-03Enable wide transfers in the IOPB on wide busses, and get the IOPB passthroughMiod Vallat
SCSI commands length correct (it's a length in 16 bit words, not in 8 bit bytes).
2008-01-01Match on Cougar boards, and try to drive them like Jaguars on steroids. OnMiod Vallat
wide Cougars, use one command queue per target and disable lun support, so that we do not overflow the board's memory; and since we are behaving as a Jaguar, do not do tagged queuing or synchronous transfer negotiation. Tested on two MVME328XT-2 (4220 and second revision artwork 4220) narrow Cougar-I (but wide external connectors), but probes fail with select timeout so far; I could not get various Motorola BUG to probe devices on these boards either, so we're even (and maybe both my boards are toast, but I won't bet money on this).
2008-01-01A potpourri of bugfixes:Miod Vallat
- switch back to a fixed queue number allocation, but keep the rotating command queue entries. Force openings to 1 because of this. - make sure to mark the queue as ready before invoking scsi_done(), which could trigger a request for the same target. - allocate a command queue and an IOPB at the same time, instead of using two routines and ugly queue pointer arithmetic. This makes the daughterboard work, as long as the first scsi chain is not empty.
2007-12-27Make the mvme188 interrupt handling closer to the aviion interrupt handling:Miod Vallat
non-VME syscon interrupt sources will now use their own intrhand array, and interrupt sources will be enabled in the arbiter as interrupt handlers are registered. This allows VME devices to use the whole 256 interrupts range.
2007-12-25Increase timeout on the processor bus when running without snooping enabled.Miod Vallat
This lets 40MHz MVME197LE boards run with instruction cache enabled, and also fixes random instruction faults occuring on the early 50MHz models.
2007-12-20Stricter range checks in mmap function.Miod Vallat
2007-12-15All MVME BUG manuals concur on SR3 being the only register needing to beMiod Vallat
preserved across BUG calls, but on the other hand the last 16 traps need to be restored to BUG values, not only trap #496.
2007-12-13Disable write posting, this does not work on BusSwitch revision #1. The BUGMiod Vallat
should do this for us, but better play safe.
2007-12-04Work in progress SMP code for 88110 processor using the BusSwitch chip asMiod Vallat
an IPI facility, for MVME197DP. It's still missing a few remote cache IPIs and IPI do not seem to be reliably triggered on remote processors at the moment (but this could be a problem on the board I am currently testing on), at least it will boot multiuser using only cpu0 to schedule processes.
2007-12-04Program the abort interrupt source correctly.Miod Vallat
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-22Quote a few errata to explain why odd things are done in oddly ways on 88110.Miod Vallat
2007-11-17Add some preprocessor magic to let M187 and M188 kernels compile again.Miod Vallat
2007-10-06Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.Kenneth R Westerback
2007-10-03MALLOC+bzero -> malloc+M_ZERO.Kenneth R Westerback
In ip_esp.c all allocated memory is now zero'd in the "malloc(sizeof(*tc) + alen ..." case. The +alen memory was not initialized by the bzero() call. Noticed by chl@. "Looks good" art@ "seems ok" chl@
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-19Silence a diagnostic message in multiprocessor kernels, it makes things worse.Miod Vallat
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-22When registering VME interrupts, maintain a direct ipl->vector table, as longMiod Vallat
as no more than one interrupt is registered for a given level. Then, if the VME interrupt vector reading cycle fails on the 188 interrupt arbiter, we can use this table as a hint if it has a valid entry, since we know on which ipl line the interrupt occured. This basically silences the m188_ext_int: timeout getting VME interrupt vector, level 3, mask 0x400<IRQ3> occasional messages appearing when the MVME376 is overloaded.
2007-02-11Rework the i/o mapping logic so that it allows the 1:1 region to not go up toMiod Vallat
the end of the address space; allows the A16D16 VME space to be mapped correctly again on MVME197.
2006-12-21'tranfer' -> 'transfer' in comments.Kenneth R Westerback
2006-12-01Unbreak.Miod Vallat
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-18A better and shorter wait sequence between writes to the command registerMiod Vallat
(spec wants 3 X1 clock cycles, thus 0.82 microsecond on mvme188)
2006-11-18Do not include <machine/frame.h> (forgotten when the former was removed).Miod Vallat
2006-11-16Ratibibugle struct frame and <machine/frame.h>Miod Vallat
2006-07-284KB buffer on the stack, and would you like fries with that?Miod Vallat
2006-07-07Get rid of the fixed iomap for device mappings, and allocated va rangesMiod Vallat
off kernel_map whenever necessary.
2006-06-19move clock_subr.c to a better place, and now it is always in the kernelTheo de Raadt
so that things can use it; tested on all architectures; ok kettenis
2006-05-08Replace gazillions of badvaddr() or badwordaddr() calls with badaddr() calls.Miod Vallat
With a few prototype declarations shuffling, this finally allows <machine/locore.h> to die.
2006-05-06On 88100-based systems, take the two hardwired BATC into account inMiod Vallat
pmap_extract(), and do not bother creating regular page table mappings for obio regions which are covered by these BATC entries.
2006-05-02Wave goodbye to bugtty on mvme88k as well.Miod Vallat
2006-04-27Adjust sizes for the mandatory 1:1 mappings created in pmap_bootstrap().Miod Vallat
Saves up to 12KB of no longer necessary page tables.
2006-04-27Manage a local copy of the MVME188 nvram and update the real data whenMiod Vallat
necessary; allow opening /dev/nvram0 on MVME188 again (but no mmap).
2006-04-27typoMiod Vallat
2006-04-26On MVME188, the 2KB nvram is non contiguous; each byte is mapped into aMiod Vallat
32 bit int. So map the right size, and fail open() until the uiomove() wrapper is modified to cope with this.