summaryrefslogtreecommitdiffstats
path: root/sys/arm
Commit message (Collapse)AuthorAgeFilesLines
...
* Turn some lame pseudo-code into a less lame comment.imp2008-09-051-8/+1
|
* Kill bogus #if 0'd stuff for interrupts. They don't happen, and thisimp2008-09-051-16/+0
| | | | | | | driver will need more serious help to work with an interrupt driven path. There's many subtleties in driving the DMA engine with interrupts in many configurations. Best to not "guess" what the right way would be and mislead people.
* Kill vestiges of the special case code we once had in place for usbimp2008-09-051-12/+2
| | | | | | memory allocation. It was change to include the range in the normal memory area, so these ifdef'd out special cases are no longer useful to keep around.
* Kill bogus #if 1. There's no need for it since usb works these days.imp2008-09-051-2/+0
|
* Use a locally assigned address rather than stealing Atmel's whichimp2008-08-311-4/+6
| | | | might cause a conflict...
* - Fix comment.stas2008-08-311-3/+3
| | | | | | | | - Set U/L bit of generated ethernet address to 1 to not clash with Atmel assigned addresses. Suggested by: yar Approved by: kib (mentor)
* - Try to look for MAC address in all SA registers, not only in thestas2008-08-301-16/+37
| | | | | | | | | | | first one. U-boot, for example, uses the second register to store MAC.[1] - Use random MAC address if none configured instead of failing. Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de> [1] Reviewed by: imp Approved by: kib (mentor) MFC after: 1 week
* - Style fix.stas2008-08-301-1/+1
| | | | | Approved by: kib (mentor) MFC after: 1 week
* Whitespace nit.imp2008-08-231-1/+1
|
* Provide hooks into the GPIO lines and the ability to set/clearimp2008-08-192-0/+47
| | | | | | | interrupts from them. This should be more generalized, but is sufficient for now. Submitted by: Hans Petter Selasky
* Use the proper clock domain for the usb host controller.imp2008-08-191-1/+1
| | | | Submitted by: Hans Petter Selasky
* Add IRQ line for usb device. I'm not 100% sure this is the rightimp2008-08-191-1/+1
| | | | | | | place to add this connection, since the interrupt is for a GPIO pin, but since we have no alternative at the moment... Submitted by: Hans Petter Selasky
* Export 'struct pcpu' to userland w/o requiring _KERNEL. A few portsjhb2008-08-191-0/+4
| | | | | | | already define _KERNEL to get to this and I'm about to add hooks to libkvm to access per-CPU data. MFC after: 1 week
* Commit step 1 of the vimage project, (network stack)bz2008-08-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | virtualization work done by Marko Zec (zec@). This is the first in a series of commits over the course of the next few weeks. Mark all uses of global variables to be virtualized with a V_ prefix. Use macros to map them back to their global names for now, so this is a NOP change only. We hope to have caught at least 85-90% of what is needed so we do not invalidate a lot of outstanding patches again. Obtained from: //depot/projects/vimage-commit2/... Reviewed by: brooks, des, ed, mav, julian, jamie, kris, rwatson, zec, ... (various people I forgot, different versions) md5 (with a bit of help) Sponsored by: NLnet Foundation, The FreeBSD Foundation X-MFC after: never V_Commit_Message_Reviewed_By: more people than the patch
* Add locking to the various iicbus(4) bridge drivers:jhb2008-08-042-0/+16
| | | | | | | | | | | | | | | | | | | | | - Just grab Giant in the ixp425_iic(4) driver since this driver uses a shared address/data register window pair to access the actual I2C registers. None of the other ixp425 drivers lock access to these shared address/data registers yet and that would need to be done before this could use any meaningful locking. - Add locking to the interrupt handler and 'iicbus_reset' methods of the at91_twi(4) driver. - Add locking to the pcf(4) driver. Other pcf(4) fixes include: - Don't needlessly zero the softc. - Use bus_foo rather than bus_space_foo and remove bus space tag and handle from softc. - The lpbb(4) driver just grabs Giant for now. This will be refined later when ppbus(4) is locked. - As was done with smbus earlier, move the DRIVER_MODULE() lines to match the bus driver (either iicbus or iicbb) to the bridge driver into the bridge drivers. Tested by: sam (arm/ixp425)
* Do not modify td->td_intr_nesting_level, it is now done in the MI code.cognet2008-08-041-3/+0
| | | | | | This fixes the cpu time being falsely reported as interrupt time. MFC after: 3 days
* Fix ARM nocache allocator:raj2008-08-041-5/+4
| | | | | | | | | | | | - let the loop iterate every page (as intended), and not some multiplies (which led to a fake exhaustion of the ARM_NOCACHE_KVA_SIZE) - eliminate using MIN(): it compared number of pages vs. address (ARM_TP_ADDRESS), which was bogus Reviewed by: cognet, imp Obtained from: Piotr Ziecik kosmo ! semihalf dot com MFC after: 3 days
* Remove unneeded #include <stdlib.h> (?)cognet2008-08-041-2/+0
| | | | MFC after: 3 days
* Add "add pc, whatever" as a branch instruction, we use it in memcpy().cognet2008-08-032-2/+39
| | | | MFC after: 3 days
* Disconnect drivers that haven't been ported to MPSAFE TTY yet.ed2008-08-031-1/+0
| | | | | | | | | | | | | As clearly mentioned on the mailing lists, there is a list of drivers that have not been ported to the MPSAFE TTY layer yet. Remove them from the kernel configuration files. This means people can now still use these drivers if they explicitly put them in their kernel configuration file, which is good. People should keep in mind that after August 10, these drivers will not work anymore. Even though owners of the hardware are capable of getting these drivers working again, I will see if I can at least get them to a compilable state (if time permits).
* Kernel config for the Linksys NSLU2. This is just a basic configuration,imp2008-08-032-0/+150
| | | | with no support for the LED, buttons, realtime clock or flash support.
* Handle ldr pc, [reg] in branch_taken().cognet2008-08-031-1/+12
| | | | | Obtained from: NetBSD MFC after: 3 days
* Add blx as a branch instruction.cognet2008-08-031-1/+2
| | | | MFC after: 3 days
* Minor style nit.imp2008-08-021-1/+1
|
* Add yet another branch instruction.cognet2008-08-021-1/+2
| | | | | Obtained from: NetBSD MFC after: 3 days
* Make the at91 uart(4) driver compile again.ed2008-08-021-9/+12
| | | | | | | As of r178766 this driver didn't compile anymore, because it missed a switch()-statement. I'm getting tired of seeing this driver being broken for two months already. When I run `make universe', everything passes, except the BWCT kernel configuration file.
* ixp425 parts aren't multicore, so remove the SMP option. They alsoimp2008-08-021-3/+0
| | | | | | don't support the ioapic either, so remove that option too. These were commented out, but could never be enabled, unlike the other options in the file that are commented out.
* Conform to the options<space><tab> convention everywhere in this file.imp2008-08-021-22/+22
| | | | This is just a white space change, no functional change.
* Store the PC while context switching, for the benefits of DDB.cognet2008-08-021-0/+1
|
* - Whitespace fixes.stas2008-07-221-35/+35
| | | | | Approved by: gonzo MFC after: 1 week
* Eliminate unused global variables. (These global variables became fields ofalc2008-07-185-5/+0
| | | | struct kva_md_info many years ago.)
* fix multicast hash register definitionticso2008-07-121-2/+2
|
* Remove the unused major/minor numbers from iodev and memdev.ed2008-06-251-1/+0
| | | | | | | | | Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
* Fix a typo: i80321_pci_probe -> i81342_pci_probekevlo2008-06-121-1/+1
|
* Add the pxa_teardown_intr() bus method function to de-associate thekevlo2008-06-101-10/+17
| | | | interrupt handler
* Pull all the code to deal with bus space methods into a shared set ofkevlo2008-06-102-102/+7
| | | | routines.
* Since we create a DMA tag "mtag" for TX map with bus_dmamap_create(),wkoszek2008-06-091-2/+2
| | | | | | | | | we must synchronize such a map against "mtag" with bus_dmamap_sync(), not the tag designated for RX map. Fix it. Approved by: cognet
* Remove sa1_cache_clean_addrkevlo2008-06-091-2/+0
|
* Unify arminit() and clean upkevlo2008-06-091-58/+1
|
* Support for the XScale PXA255 SoC as found on the Gumstix Basix and Connexbenno2008-06-0617-0/+3873
| | | | | | | | | | | | | boards. This is enough to net-boot to multiuser. Also supported is the SMSC LAN91C111 parts used on the netCF, netDUO and netMMC add-on boards. I'll be putting some instructions on how to boot this on the Gumstix boards online soon. This is still fairly rough and will be refined over time but I felt it was better to get this out there where other people can help out.
* Release the resources for the registers for the TWI device withimp2008-05-281-1/+1
| | | | | | SYS_RES_MEMORY to match how we allocate them... Noticed by: Ian Lepore
* The VM system no longer uses setPQL2(). Remove it and its helpers.alc2008-05-231-8/+0
|
* Retire pmap_addr_hint(). It is no longer used.alc2008-05-181-7/+0
|
* Add a stub for pmap_align_superpage() on machines that don't (yet)alc2008-05-091-0/+10
| | | | implement pmap-level support for superpages.
* Expand kdb_alt_break a little, most commonly used with the optionpeter2008-05-041-2/+13
| | | | | | | | | | | | | | | | | | | ALT_BREAK_TO_DEBUGGER. In addition to "Enter ~ ctrl-B" (to enter the debugger), there is now "Enter ~ ctrl-P" (force panic) and "Enter ~ ctrl-R" (request clean reboot, ala ctrl-alt-del on syscons). We've used variations of this at work. The force panic sequence is best used with KDB_UNATTENDED for when you just want it to dump and get on with it. The reboot request is a safer way of getting into single user than a power cycle. eg: you've hosed the ability to log in (pam, rtld, etc). It gives init the reboot signal, which causes an orderly reboot. I've taken my best guess at what the !x86 and non-sio code changes should be. This also makes sio release its spinlock before calling KDB/DDB.
* - Add an integer argument to idle to indicate how likely we are to wakejeff2008-04-251-1/+8
| | | | | | | | | | | | | | | from idle over the next tick. - Add a new MD routine, cpu_wake_idle() to wakeup idle threads who are suspended in cpu specific states. This function can fail and cause the scheduler to fall back to another mechanism (ipi). - Implement support for mwait in cpu_idle() on i386/amd64 machines that support it. mwait is a higher performance way to synchronize cpus as compared to hlt & ipis. - Allow selecting the idle routine by name via sysctl machdep.idle. This replaces machdep.cpu_idle_hlt. Only idle routines supported by the current machine are permitted. Sponsored by: Nokia
* Now that all platforms use genclock, shuffle things around slightlyphk2008-04-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for better structure. Much of this is related to <sys/clock.h>, which should really have been called <sys/calendar.h>, but unless and until we need the name, the repocopy can wait. In general the kernel does not know about minutes, hours, days, timezones, daylight savings time, leap-years and such. All that is theoretically a matter for userland only. Parts of kernel code does however care: badly designed filesystems store timestamps in local time and RTC chips almost universally track time in a YY-MM-DD HH:MM:SS format, and sometimes in local timezone instead of UTC. For this we have <sys/clock.h> <sys/time.h> on the other hand, deals with time_t, timeval, timespec and so on. These know only seconds and fractions thereof. Move inittodr() and resettodr() prototypes to <sys/time.h>. Retain the names as it is one of the few surviving PDP/VAX references. Move startrtclock() to <machine/clock.h> on relevant platforms, it is a MD call between machdep.c/clock.c. Remove references to it elsewhere. Remove a lot of unnecessary <sys/clock.h> includes. Move the machdep.disable_rtc_set sysctl to subr_rtc.c where it belongs. XXX: should be kern.disable_rtc_set really, it's not MD.
* Make genclock standard on all platforms.phk2008-04-219-9/+0
| | | | Thanks to: grehan & marcel for platform support on ia64 and ppc.
* On the AT91, we need to write on the EOI register after we handle ancognet2008-04-203-1/+14
| | | | | | | | interrupt. So, add a new function pointer, arm_post_filter, which defaults to NULL, and which will be used as the post_filter arg for intr_event_create(). Set it properly for the AT91, so that it boots again. Reported by: hps
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-203-6/+0
| | | | | | | | | | | Note this includes changes to all drivers and moves some device firmware loading to use firmware(9) and a separate module (e.g. ral). Also there no longer are separate wlan_scan* modules; this functionality is now bundled into the wlan module. Supported by: Hobnob and Marvell Reviewed by: many Obtained from: Atheros (some bits)
OpenPOWER on IntegriCloud