summaryrefslogtreecommitdiffstats
path: root/sys/mips/rmi
Commit message (Collapse)AuthorAgeFilesLines
* Fix for the rge driver for boards without rge6 and rge7.rrs2010-02-202-5/+24
| | | | | - changes to avoid adding theses instances on specific chips Obtained from: C. Jayachandran - JC - c.jayachandran@gmail.com
* Changes for pci and pci-e supportrrs2010-02-204-164/+1112
| | | | | | | | - add bus_space_rmi_pci.c for PCI bus space - files.xlr update for changes in files - pcibus.c merged into xlr_pci.c (they were small files with inter-dependencies) - xlr_pci.c - lot of changes here with few fixes, formatting cleanup Obtained from: C. Jayachandran (JC) - c.jayachandran@gmail.com
* Opps forgot to add this:rrs2010-02-201-0/+760
| | | | | | - add bus_space_rmi_pci.c for PCI bus space Obtained from: C. Jayachandran - <c.jayachandran@gmail.com>
* Cleanups for sys/mips/rmi/bus_space_rmi.crrs2010-02-201-175/+30
| | | | | | | | | - remove pci related code from bus_space_rmi.c, we will have another file for PCI bus space functions which will do byte-swapping. - remove local SWAP implementation - added TODO stub for unimplemented functions Obtained from: C. Jayachandran - c.jayachandran@gmail.com
* Some fixes to the current RMI interrupt handling, changes in this patch are:rrs2010-02-202-21/+45
| | | | | | | | | | | | | | | - (cleanup) remove rmi specific 'struct mips_intrhand' - this is no longer needed since 'struct intr_event' have all the required hooks - add xlr_cpu_establish_hardintr, which has args for pre/post ithread and filter hooks, so that the PCI code can add the PCI controller interrupt ack code here - make 'cpu_establish_hardintr' use the above function. - (fix) change type of eirr/eimr from register_t to uint64_t. These have to be 64bit otherwise we cannot handle interrupts from 32. - (fix) use eimr to mask eirr before checking interrupts, so that we will not handle masked interrupts. Obtained from: C. Jayachandran - c.jayachandran@gmail.com
* If a mbuf is split across two pages, werrs2010-02-101-0/+2
| | | | | | | | | | | | | have code that detects this and makes two transmit descriptors. However its possible that the algorithm detects when the second page is not used (when the data aligns perfectly to the bottom of the page). This caused a 0 len descriptor to be added which locks up the rge device. Skip such things with a continue. JC provided this patch... Thanks JC :-) Obtained from: JC (c.jayachandran@gmail.com)
* Its possible that our RMI box has memory extendingrrs2010-01-291-3/+16
| | | | | | | above 4Gig. If so when we add the base address with the size we will wrap. So for now we just ignore such memory and only use what we can. When we get 64 bit working then we will be much better ;->
* Move ID up into comment block.. per bsdimprrs2010-01-291-3/+4
|
* Make compilable.. i.e. the FreeBSD id I added mustrrs2010-01-281-0/+2
| | | | be in comments.
* Changes the msg ring so its a filter not arrs2010-01-282-5/+8
| | | | | | | handler. Somehow rrs missed this.. Thanks to JC for catching this ;-) Obtained from: JC (jayachandranc@netlogicmicro.com
* Spacing changes in pic_ack and pic_delayed_ackrrs2010-01-261-4/+4
|
* 1) Make sure static is init'd to 0rrs2010-01-261-1/+3
| | | | | 2) In one place make sure we call the backup startup routine (from the timer).
* To prevent a LOR we need to pass inrrs2010-01-262-21/+23
| | | | | | a lock flag in the pic routines. In some places we hold the pic lock, others we do not.
* Fix up the msg ring driver a bit tighterrrs2010-01-261-22/+7
| | | | | so that we don't loose an interrupt which we appeared to be doing.
* Fixes setup of clock. It was not properlyrrs2010-01-261-5/+15
| | | | | initialized, thus backward time warnings were being spewed to the console.
* Changes the order of the setting the int happened (insiderrs2010-01-241-1/+1
| | | | the lock).
* This hopefully will fix the network problem I was seeing.rrs2010-01-221-8/+8
| | | | | | | | | | Basically the msg ring interrupt was being re-enabled inside a spinlock as the thread set it self up for rescheduling. This won't work since inside the re-enable is another spin lock.. which means on return from the reenable the interrupts have been reenabled. Thus you would get a clock int and end up panicing holding a spin lock to long :-o
* Place proper svn:keywords tag on all these files. They were createdimp2010-01-127-7/+7
| | | | | | | somehow without them on projects/mips, and that mistake was propigated over to head. Submitted by: rpaulo@
* Correct a path in an include I missed earlierimp2010-01-111-8/+1
| | | | Remove references to if_watchdog. The rge_watchdog routine was empty anyway.
* Attempt to cope with the dev/rmi -> mips/rmi/dev move.imp2010-01-116-18/+33
|
* Merge from projects/mips to head by hand:imp2010-01-109-0/+12333
| | | | | | | | Copy sys/dev/rmi to sys/mips/rmi/dev [sic]. For devices that are on only one SoC, or family of SoC, we place them under sys/<vendor>/dev. I'll fix the build problems this causes as best I can since rmi kernel require external toolchains due to lack of support for rmi op-codes in the ancient binutils we have in the tree.
* Rename mips_pcpu_init to mips_pcpu0_init since it applies only to theimp2010-01-091-1/+1
| | | | BSP. Provide a missing prototype.
* Centralize initialization of pcpu, and set curthread early...imp2010-01-081-0/+3
|
* Add missing function that doesintr naming andrrs2009-12-231-3/+38
| | | | init.
* This is a list of the files for RMI's md_rootrrs2009-12-231-0/+676
| | | | | | | file system to get to multi-user. There are still some rough edges, rge has an issue. And someone held a spin lock to long.. But its coming along :-)
* Fixes so kdb works.rrs2009-12-211-1/+4
|
* Adds JC's fix to get rid of stray intr's.rrs2009-12-201-3/+3
| | | | Obtained from: JC - jayachandraanc@netlogicmicro.com
* Ok set in the values in clock 7 as in therrs2009-11-112-1/+4
| | | | | | | | | | | | | | original codes (I had changed one by accident) Also do the pic_ack/pic_delayed_ack after the interrupt so we clear it. The clock with these changes starts working. Its off doing a short/long short/long warning but it now runs. My NFS mount now works but has the same problem with sbin/init (errno 8 ENOEXEC) so it panics with no init. Either this is a problem with my buildworld.. OR its a yet undiscovered RMI issue.
* Ok we need to have the clock handlers has filters. Thisrrs2009-11-092-14/+18
| | | | gets us up to a mount request :-)
* a little more paran'srrs2009-11-091-1/+2
|
* White space changes.rrs2009-11-091-17/+19
|
* - Comment out recrusive call to setup interrupt.rrs2009-11-091-4/+5
| | | | - Change the way we pass the irq.
* Ok With this commit we actually get throughrrs2009-11-064-51/+5
| | | | | | | | | | | | | the mi_startup (or to the last of it).. and hit a panic after : uart0: <16550 or compatible> on iodi0 Trap cause = 2 (TLB miss....) I did have to take the pci bus OUT of the build to get this far, hit a cache error with the PCI code in. Interesting thing is the machine reboots too ;-)
* white space changesrrs2009-11-051-215/+252
|
* ok we now get so that the uart init's and we can print. Werrs2009-11-0513-143/+941
| | | | | | | cannot set baud rate as they did in 6.4, this hoses things and we loose our 38400 default term. We now lock somewhere in tcinit.
* Fix spacingrrs2009-11-021-30/+30
|
* adds rmi specific mips extensions file and makes surerrs2009-10-293-2/+146
| | | | the includes point to the new place.
* White space changesrrs2009-10-2935-2094/+2304
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M rmi/xls_ehci.c M rmi/clock.h M rmi/xlr_pci.c M rmi/perfmon.h M rmi/uart_bus_xlr_iodi.c M rmi/perfmon_percpu.c M rmi/iodi.c M rmi/pcibus.c M rmi/perfmon_kern.c M rmi/perfmon_xlrconfig.h M rmi/pcibus.h M rmi/tick.c M rmi/xlr_boot1_console.c M rmi/debug.h M rmi/uart_cpu_mips_xlr.c M rmi/xlrconfig.h M rmi/interrupt.h M rmi/xlr_i2c.c M rmi/shared_structs.h M rmi/msgring.c M rmi/iomap.h M rmi/ehcireg.h M rmi/msgring.h M rmi/shared_structs_func.h M rmi/on_chip.c M rmi/pic.h M rmi/xlr_machdep.c M rmi/ehcivar.h M rmi/board.c M rmi/clock.c M rmi/shared_structs_offsets.h M rmi/perfmon_utils.h M rmi/board.h M rmi/msgring_xls.c M rmi/intr_machdep.c
* more Updates on the RMI code close to compiling now ;-)rrs2009-10-2928-238/+1069
|
* Fix build from r198563 (again). Sigh.thompsa2009-10-281-1/+1
|
* Fix build from r198563thompsa2009-10-281-1/+1
|
* Use init_static_kenv() and setenv() to simplify the environment string handling.thompsa2009-10-281-12/+10
|
* White space changes.rrs2009-10-261-74/+74
|
* Fix Copyright ;-)rrs2009-10-261-1/+1
|
* More initial RMI files. Note that these so far do NOTrrs2009-10-1535-0/+8827
| | | | | | | | | compile and many of them may disappear. For example the xlr_boot1_console.c is old code that is ifdef'd out. I will clean these sorts of things up as I make progress on the port. So far the only thing I have I think straightened out is the bits around the interupt handling... and hey that may be broke ;-)
* Adds the first files from the RMI work with my re-work of theirrrs2009-10-153-0/+209
intr_machdep.c to use updated interfaces etc. More coming.. and some day it may compile ;-)
OpenPOWER on IntegriCloud