Commit Graph

272 Commits

Author SHA1 Message Date
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
nonaka cc37e30de1 Use (char *) on pointer arith. 2007-03-05 00:30:58 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
bjh21 d6e0a9e5aa KNF
(waiting for a test kernel to compile...)
2007-02-28 23:26:10 +00:00
nonaka 8d4fbc454e Add PXA2x0 RTC driver. 2007-02-25 13:46:40 +00:00
thorpej ab87c6666d TRUE -> true, FALSE -> false 2007-02-22 05:14:04 +00:00
thorpej 712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
ober 5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
christos 467eaaa9c1 Add generic TOD support. From Bucky Katz. 2007-01-06 16:18:18 +00:00
nonaka 405a97b628 Fix evbarm compile again. 2006-12-18 15:30:56 +00:00
nonaka 9dc4fd032d Remove unused files. 2006-12-18 13:36:47 +00:00
peter ac86e5557a Update from the latest Zaurus source from NONAKA Kimihiro.
Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
2006-12-17 16:03:33 +00:00
ober dbc112ba13 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 03:35:51 +00:00
kiyohara 3871190271 Add definition the HWUART (and NSSP). 2006-12-10 12:46:48 +00:00
scw 92bdf64528 Repeat after me: Compile/Test before commit. 2006-12-10 10:30:55 +00:00
scw b9811c82af Support the IXP425 watchdog timer. 2006-12-10 10:03:22 +00:00
scw bdea1361ab Add a port of Sam Leffler's IXP425 micro-engine support (from FreeBSD).
This is very much a work in progress. At the present time, only Ethernet
is supported.
2006-12-10 10:01:49 +00:00
christos c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
wiz d6a98601a8 s/heirarchy/hierarchy/, from Zafer. 2006-11-24 21:20:05 +00:00
scw d3089a454e If I80321_HPI_ENABLED is defined, add support for handling interrupts from
devices hooked up to the HPI pin.

HPIs cannot be masked at the interrupt controller; they can only be masked
by disabling IRQs in the XScale core. To deal with this, we tweak the
interrupt frame so that IRQs are disabled when the interrupt dispatcher
returns due to a masked HPI interrupt. IRQs will be re-enabled by a
subsequent splx(9).

Fortunately the only instance where HPI is used is for the console UART
on a couple of boards, so this hack does not adversely affect performance.

Contributed by Wasabi Systems.
2006-11-08 23:45:41 +00:00
gavan 8814e529bd i80321 timecounter support.
Patch from Garrett D'Amore, tested by me.
2006-09-10 23:13:59 +00:00
gdamore 378f852e66 First pass at enabling a lot of ARM ports to convert swiftly to
__HAVE_GENERIC_TODR.  Just put #define __HAVE_GENERIC_TODR in types.h
if your port uses one of these files.
2006-09-10 22:04:18 +00:00
gdamore b5e819f5d1 Do not supply our own versions of inittodr, etc. if a port declares
__HAVE_GENERIC_TODR.
2006-09-10 18:57:02 +00:00
simonb 7056ad57e0 Remove a few trailing blank lines. 2006-07-28 08:15:29 +00:00
gdamore 34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
drochner a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
mrg c1c5286e41 make xscale_pmnc_write() return void, rather than returning an
uninitialised value that is not used by any caller.
2006-05-17 05:16:09 +00:00
mrg 663096a642 remove 'inline' from the xxx_do_pending() function that is called from
external sources, and conflicts with it's prototype.
2006-05-17 05:15:26 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
jmmv 7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
simonb a65c1d2e41 Fix a couple of typos in some comments. 2006-04-10 04:13:58 +00:00
simonb a8b3022a42 Tab Police. 2006-04-10 03:36:03 +00:00
lukem a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
scw c95cd91549 Allow the kernel config file to override the default timer frequency
using "options IXP425_CLOCK_FREQ".
2006-03-04 11:26:12 +00:00