summaryrefslogtreecommitdiffstats
path: root/sys/arch/aviion/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Send Aviion to same place as Nova IIderaadt2015-12-0117-4122/+0
| | | | discussed with jsg
* When investigating an uninitialised variable in the armv7 resettodr()jsg2015-06-131-2/+2
| | | | | | | miod pointed out that time_second should be compared to 1 not 0 in the md resettodr() functions as it is initialised to 1. ok miod@ deraadt@
* Convert to uiomove().miod2015-02-102-13/+19
|
* First step towards making uiomove() take a size_t size argument:miod2015-02-102-4/+4
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* Pass real sizes to free().miod2014-12-242-4/+4
|
* unifdef INETtedu2014-12-222-6/+2
|
* Replace a plethora of historical protection options with justderaadt2014-11-162-5/+7
| | | | | | | PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-122-4/+4
| | | | after discussions with beck deraadt kettenis.
* Remove "WARNING:" prefix from SYSFAIL and ACFAIL messages, so that, in casemiod2014-05-171-3/+3
| | | | of ACFAIL, what reaches the console is explicit enough.
* Format string fixes for m88k; remove -Wno-format from the m88k kernels.miod2014-05-084-10/+10
|
* Add a sc_hwinit callback when running on an ILACC, to make sure CSR4 doesmiod2013-10-231-6/+15
| | | | | not get lost if the chip is reset. Also try to mask the `TX start' interrupt, but this doesn't seem to work.
* Checkpoint of work-in-progress DMA support for oaic(4). Not working yet,miod2013-10-234-1/+368
| | | | | | | probably due to incorrect programming of the system board ``Diagnostic Control Register'', for which I do not have documentation yet; commited so as not to lose this work, since the machine I was testing on has apparently commited suicide and will no longer POST.
* a better way to disable the speaker on AV400 familymiod2013-10-171-2/+2
|
* Driver for the AIC-6250 SCSI controller found on AViiON models 100, 200, 300,miod2013-10-151-0/+151
| | | | | 400 and 4300. Limited to PIO mode only for now, until the DMA controller is tamed. Heavily based upon the MI aic(4) driver.
* Clear SYSFAIL upon boot, for real.miod2013-09-261-1/+2
|
* Extend le@syscon to support the ILACC chips found on-board the AV530 family.miod2013-09-242-103/+201
| | | | | | GENERIC.MP on a 2x88100(6:1)@33 4605 can now make build on local disk and local net; but it still needs to boot its kernel off the network at the moment.
* Switch to MI dart(4) driver.miod2013-09-213-1143/+248
|
* Drop the ipl locator from syscon attachments, and have the syscon childrenmiod2013-09-164-13/+7
| | | | | | request explicit IPL_xxx levels. Fix VME Ethernet config stanzas to request IPL_NET.
* Use time_t for storing and returning time_t values, and cast to time_tguenther2013-07-021-5/+6
| | | | | | before the last multiplication that might take it past 2^31 secounds. ok deraadt@ miod@
* Rework secondary processor initialization. cmmu initialization is nowmiod2011-10-091-3/+3
| | | | | | performed much earlier in the processor startup. No visible change, paves the way for the much important diff three commits from here.
* Do not use NULL in integer comparisons. No functional change.miod2011-04-073-6/+6
| | | | ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
* Massive overhauling of the m88k pmap, though I can't pretend it's a new pmapmiod2010-12-312-4/+4
| | | | | | | | | | | | | | | | | | | | | since a large part of the structures and logic remains. Since m88k has separate supervisor/user spaces, we can map physical memory 1:1 in supervisor space, and have the kernel virtual address space start from the end of physical memory. This allows us to switch to __HAVE_PMAP_DIRECT. And to get rid of the double mapped sdt, since now their virtual and physical addresses will always match. The upper bound of the kernel virtual memory space is now platform dependent, until the code which relies upon some hardware devices being mapped 1:1 in supervisor mode is updated to no longer require this (this is mainly a PITA on luna88k, where onboard devices start at 0x40000000, leaving only 1GB of KVA at the moment - still much better than the previous 512MB). Tested on mvme88k only (187, 188, 197LE, 197DP). Other platforms ought to work, aviion will be checked shortly and fixed if necessary. No known OpenBSD/luna88k system in working condition at the moment.
* Kill pmap_phys_address(), and force every driver's mmap() routine to returnmiod2010-12-262-4/+4
| | | | | | | a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
* Get rid of evcount's support for arranging counters in a treematthew2010-09-202-6/+4
| | | | | | | hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
* Move common code for waking up writers on a tty into a function.nicm2010-07-021-10/+4
| | | | ok deraadt matthew millert
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-281-2/+2
| | | | | | | | max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
* SMP support for models 4600 and 530, adapted from the MVME188 code. Modelsmiod2010-04-242-3/+12
| | | | | | | | | 4000 and 4300 will need more work, because they don't have as many distinct software interrupt sources as required by this implementation, so a different IPI scheme will be necessary. Tested on dual-processor 4625 (AV530 family) and single processor 4300 (AV400 family).
* Replace heuristics used to figure out which model we are running on, andmiod2010-04-244-14/+25
| | | | | trust the cpuid value returned by the prom itself (verified against /usr/opt/sdk/include/sys/dg_sys_info.h on a DG-UX filesystem).
* More reworking of interrupt handling and VME support, and rename variousmiod2010-04-217-241/+410
| | | | | | | | | | | board-specific defines to prevent any risk of collision. This also adds clock support for AV530 family, and timecounter support (cio code sync'ed with mvme88k). And various bugs fixed in the process. This is enough to get models 4600 and 530 to run multiuser with a Hawk Ethernet VME card (the onboard Ethernet is not supported yet, coming soon). There is no way to share a disk with DG/UX yet, the kernel (and fdisk(8)) needs to become aware of its ways.
* Add bus_dma and oosiop(4), as found on the AV530 family. Tested on model 4605.miod2010-04-203-44/+332
|
* Work in progress support for AViiON models 4600 and 530.miod2010-04-181-30/+37
| | | | | | Also features support for {awkw,bast}ard 6:1 CMMU:CPU configurations (4I2D). Tested on model 4605, which runs up to cpu_initclocks(), which is not written for this system family yet. No regression on model 4300.
* Apply the same interrupt enable bit fiddling protection as done for le@fwiomiod2010-04-181-38/+70
| | | | | on vax, since interrupts on syscon are edge-triggered. Fixes the onboard lance getting stuck after a while.
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-3/+3
| | | | a process instead of using curproc. ok deraadt
* Make sure the boundaries of uvm_pglistalloc() calls are set up with lowmiod2010-03-311-2/+2
| | | | | | | being page-aligned, and high being end of page (i.e. high & PAGE_MASK == PAGE_MASK) everywhere, for consistency. Future code will depend on this. ok deraadt@
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.
* Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()deraadt2009-10-311-1/+2
| | | | | | | calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
* Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.oga2009-04-141-2/+2
| | | | | | | | | For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Cleanup cn_pri. Change constants to more meaningful names, rather thanjsing2008-01-231-2/+2
| | | | | | | 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@
* Print the VME vector number used when attaching.miod2007-12-201-1/+2
|
* Stricter range checks in mmap function.miod2007-12-201-2/+2
|
* Overhaul interrupt handling, in order to make it (arguably) simpler andmiod2007-12-198-113/+268
| | | | | | | | | | | | | | | | | | | | | | | | | | | more board design-independent. The main changes are: - define logical interrupt sources, which match the on-board devices as well as the seven VME interrupt sources. Use these whenever possible when registering interrupts in the drivers, so that the actual interrupt mask layouts are hidden. - make the on-board and VME interrupt handlers separate. On-board interrupt handlers are not really associated to an interrupt vector, only to a given interrupt source, and only one handler can be registered for a logical interrupt source. On the other hand, VME interrupts come with a vector number, and can be shared. This allows VME devices to really use the whole 256 vectors space, starting at vector zero. - update the real interrupt masks upon interrupt handler registration and removal, so that only interrupt sources for which a handler exists may be enabled. - update the VME interrupt allocation logic to allow exclusive vector allocation. - move the Z8536 clock routines to their own file, since they are not AV400-specific; while there, calibrate the delay constant upon startup for more accurate delay(). The vme driver is the only one left with AV400 tentacles left, to be fixed very soon.
* The serial console address apparently does not change accross 88100 designs,miod2007-12-192-13/+9
| | | | so stash it in a board-independent header.
* Allocate memory for the onboard le interface using uvm functions, instead ofmiod2007-12-191-17/+63
| | | | | stealing pages in pmap_bootstrap. While there, use up to four times more memory for these buffers if the machine has enough physical memory.
* Disable the built-in speaker when initializing the chip, before mymiod2007-12-121-4/+3
| | | | neighbours start visiting me with large axes.
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-101-2/+2
|
* Ratibibugle struct frame and <machine/frame.h>miod2006-11-161-2/+1
|
* Cope with clock_subr.c changes.miod2006-07-171-10/+1
|