Commit Graph

305 Commits

Author SHA1 Message Date
cegger 9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
ober 23b6d86d41 Initial APM support for Zaurus. Ported from OpenBSD by mjf@ 2008-12-06 22:11:19 +00:00
ober bcc03ff7a7 Initial apm support for Zaurus. Ported from OpenBSD by mjf@. 2008-12-06 22:10:41 +00:00
matt ca9e0ec672 Don't include <machine/atomic.h> anymore. 2008-11-19 06:35:55 +00:00
rafal 9a83d246e7 Make stray interrupt handler get the minimum IRQ number based on the current
CPU type vs. hardcoding it for pxa270.
2008-11-07 16:14:37 +00:00
rafal 155980bdb0 Remove parameter checks from under DEBUG; bad gpio pin numbers will cause
the kernel to fall over rather quickly anyway with memory faults, so a panic
with a hint as to what's wrong seems much better.
2008-11-07 16:13:16 +00:00
chris c0b7259a50 Change $wasabi$ to $NetBSD$ so that we get version info into the file. 2008-06-24 20:19:05 +00:00
martin 2d265edbed Move TNF license to standard 2 clause variant 2008-05-03 23:06:06 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
matt 825088eda6 Merge kernel changes in matt-armv6 to HEAD. 2008-04-27 18:58:43 +00:00
nonaka 262e51f19f fix typo. 2008-04-24 11:46:30 +00:00
drochner ca15c5b536 add some missing softc initialisation necessary after the device/softc
split, approved by Chris Gilbert
2008-04-04 17:44:43 +00:00
chris 1859a7ec67 Update pxa2x0 ohci support to match recent device_t/softc splitting on
ohci.

Also remove powerhooks (eventually it'll be pmf'd)

This is enough for host usb to work sometimes on a zaurus.
2008-03-31 23:18:49 +00:00
cube 607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
scw fe86b93506 g/c an unused variable.
From Donald T Hayford on port-arm@
2008-01-26 10:46:39 +00:00
joerg 4e56cdd20a Convert evbarm to timecounter. Only one of the systems was tested, the
rest of the patch is compile-time tested only.
2008-01-20 16:28:22 +00:00
dyoung b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
matt 6bc0c58216 As of this commit, all arm32 kernel now build. 2008-01-08 02:07:50 +00:00
matt d9322458cc Truly kill current_intr_depth once and for all. 2008-01-06 03:45:26 +00:00
matt 0c0de8072e Cleanup softint lossage. 2008-01-06 01:37:53 +00:00
ad c29520cb1a Fix includes. 2008-01-05 00:31:50 +00:00
ad 19e49bf314 And you, be ye fruitful, and multiply; bring forth abundantly in the earth,
and multiply therein. (Genesis 9:6-8)
2007-12-11 17:12:26 +00:00
ad 65d64ddefe Make it compile. 2007-12-11 17:03:35 +00:00
ad e1d841a734 struct lock -> kmutex_t 2007-12-08 13:54:32 +00:00
ad 065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +00:00
ad 4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
ad a72bb4a2f0 For the last time, compile! 2007-11-20 01:53:50 +00:00
ad e15eca1b5a Make it compile. 2007-11-17 15:28:37 +00:00
ad dbe854de34 Make it build again. 2007-11-13 22:09:37 +00:00
ad d18c6ca4de Merge from vmlocking:
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
2007-11-07 00:23:13 +00:00
garbled d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad a6aa4ab63d splstatclock -> splhigh 2007-10-09 12:23:51 +00:00
kiyohara f1bbc2447a The initarm() should initialize GPIO. We must not initialize GPIO in
foo_attach() of the each drivers.  And, it is necessary to confirm whether
to be initialized in foo_match().  To avoid a dangerous configuring on the
evaluation boards.
2007-08-21 11:39:11 +00:00
nonaka a3f23fba88 use WSDISPLAY_TYPE_PXALCD. 2007-07-26 12:17:37 +00:00
nonaka faf0f43647 Fix compile failure occured kthread API changes. 2007-07-10 13:55:20 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
nonaka 58ea30622f cosmetic 2007-06-28 15:09:14 +00:00
nonaka a748e16a0b use LCCR3_BPP3 instead of magic number. 2007-06-28 15:05:27 +00:00
nonaka 8b05cf1cfc Mask more interrupts. 2007-06-28 14:47:47 +00:00
nonaka 399c27c752 Added support ioctl(WSDISPLAYIO_LINEBYTES).
(XFree86 wsfb driver uses it.)
2007-06-28 14:41:49 +00:00
nonaka d69f0db1d1 pxa2x0_lcd_mmap():
- Check offset parameter.
2007-06-28 14:37:36 +00:00
nonaka d2387d4569 Added more LCD Controller register definition. 2007-06-28 14:30:58 +00:00
nonaka 212a81151a Don't setup GP[87:86] to LDD[17:16] at pxa2x0_lcd_initialize().
Because zaurus uses GP[87:86] as SSP2.
2007-06-26 15:38:38 +00:00
nonaka f27c627687 fix typo. 2007-06-26 15:10:32 +00:00
nonaka ff380a6cd7 s/const const/const/ 2007-06-26 15:08:42 +00:00
scw 26603f78b6 Apply the patch, with some minor modifications, provided in:
http://mail-index.netbsd.org/port-arm/2007/06/04/0000.html

Addresses:
 - an array index overflow in ixpqmgr_intr().
 - ixpqmgr_sc must be initialised before calling ixp425_intr_establish().
2007-06-21 22:18:06 +00:00
gavan 392aeaadec Implement ATU Direct Window in order to increase available PCI address
space.
2007-05-12 14:34:03 +00:00
ad 59d979c5f1 Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 18:18:22 +00:00
thorpej 165d4e6d83 Rewrite the ARM mutex implementation to be of the simple-mutex variety.
Because pre-v6 ARM lacks support for an atomic compare-and-swap, we
implement _lock_cas() as a restartable atomic squence that is checked
in the IRQ handler right before AST processing.  (This is safe because,
for all practical purposes, there are no SMP pre-v6 ARM systems.)

This can serve as a model for other non-MP platforms that lack the
necessary atomic operations for mutexes (SuperH, for example).

Upshots of this change:
- kmutex_t is now down to 8 bytes on ARM; about as good as we can get.
- ARM2 systems don't have to trap and emulate SWP or SWPB for mutexes.

The acorn26 port is not updated by this commit to do the LOCK_CAS_CHECK.
That is left as an exercise for the port maintainer.

Reviewed and tested by Matt Thomas.
2007-03-09 19:21:57 +00:00
nonaka e8284b2c49 Use (char *) on pointer arith. 2007-03-05 00:44:31 +00:00