Commit Graph

152 Commits

Author SHA1 Message Date
wiz
35023be713 Fix typo in macro name and comments. 2008-01-09 20:38:34 +00:00
dogcow
b24bad5798 add include for incomplete struct blah blah blah 2008-01-08 13:26:26 +00:00
ad
8044d72190 Make compile (hi moof). 2007-12-22 01:21:41 +00:00
ad
4a57ad63bb Make it compile. 2007-12-06 21:01:49 +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
dyoung
6f7649313f Constify. 2007-08-26 22:28:52 +00:00
kiyohara
ec1fb4e2a6 Remove white-spaces. 2007-08-14 14:10:52 +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
he
e9e5beefa0 Now that curcpu() is defined in terms of curlwp() for mips, we need to
include <sys/lwp.h> where curcpu() is used.
2007-05-20 17:06:25 +00:00
simonb
80c8d64aa9 Fix some caddr_t rototill fallout. 2007-03-06 00:43:50 +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
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +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
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
gdamore
bcad08160c Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
2006-10-02 08:00:07 +00:00
gdamore
3bd9bd2f64 Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

	1) pass address and IRQ information from aubus (auspi uses interrupts)

	2) all Au1550 PSC protocols have the same status and register bits
	   for enable, so clean that up (clock registers could be different)

	3) improve timeout logic on enable (a fixed delay isn't good enough)

	4) make aupsc_print return QUIET, as it is annoying to see messages
	   for unconfigured protocols.  This whole mechanism should be re-
	   engineered, to either use indirect configuration or provide more
	   detailed board-driven configuration.  A comment to that effect is
	   placed in the source.

This is shown to work on DBAU1550.
2006-10-02 07:32:16 +00:00
gdamore
871bc9f71c Add register values required to configure PSC/SPI devices on Alchemy AU1550.
Fairly soon I will be committing a new SPI bus framwork and an Alchemy
Au1550 implementation of the framework.
2006-10-02 06:44:00 +00:00
gdamore
4d15d9eb84 Fix incorrect code which ignored "req", causing all interrupts to get
assigned to request 0.  With this change, ethernet interrupts are assigned
to req1, seperately from req0.  This potentially gives better performance
by shortening the list of handlers walked somewhat.
2006-10-02 02:08:36 +00:00
gdamore
7c9507a357 Get rid of annoying and useless missed frame message, no other driver
echos this "non-error" message (not even tulip.c).  Included is an
explanatory message stating that these counters should probably all be
converted to evcnt counters.
2006-09-20 05:37:22 +00:00
simonb
30151b7fc1 Fix a white-space nit. 2006-09-09 04:01:37 +00:00
gdamore
a37acb1b52 Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
2006-09-04 23:45:30 +00:00
gdamore
b671de1aa9 Remove pointless dependency upon evbmips/clockvar.h. 2006-09-02 22:53:02 +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
kiyohara
383a50d6cd Supoort read/write word. 2006-06-25 13:32:16 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
simonb
23b376683a The RTC and PCMCIA don't live at address 0 - restore the -1 address
locator from pre-split aubus.c.  Should only affect autoconfig display.
2006-04-11 11:51:31 +00:00
simonb
f7a378cb65 Fix some comment grammar nits. 2006-04-10 14:20:48 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
gdamore
203fcf4dc2 Use todr_attach. 2006-03-28 16:52:35 +00:00
gdamore
d375c80e7f Rework evbmips clock architecture to use common clock_subr.h routines.
Additionally, do not fail if no RTC is present, as not all boards have one.

Malta now uses the common dev/ic/mc146818.c code as much as possible, reducing
local "custom" code.  These malta changes are *untested*, as I do not have
a Malta board to test with.  If someone would please test them and get back to
me, I'd appreciate it!
2006-03-28 03:43:57 +00:00
shige
ff41ffc530 Add waits after bus_space_write. 2006-03-27 19:03:50 +00:00
thorpej
376a595f60 Use device_unit().CVS: ---------------------------------------------------------------------- 2006-03-26 04:31:00 +00:00
gdamore
a86f56dbf6 Remove verbose debug message, and make sure we pass right IPL.
(Pedantic, since IPL isn't used in ICU, but better to be pedantic and right
than wrong.)
2006-03-25 07:25:56 +00:00
gdamore
9372888951 Ooops, forgot to commit some register renames. (Minor cleanups.) 2006-03-25 07:24:01 +00:00
gdamore
1ef49ecb4d Clean up some code and ensure that the ICU registers start out with sane
values.
2006-03-25 07:23:05 +00:00
gdamore
7e418f280f Remove crufty (and unused) augpio_found check. Noted by Kiyohara Takashi. 2006-03-24 18:22:42 +00:00
gdamore
5cd61be031 Add macros so that GPIOs can be accessed directly without having to use
ioctls or the GPIO framework.  Useful for some subsystems such as PCMCIA, that
may also use GPIOs.  Requested by Kiyohara Takashi.
2006-03-24 02:58:36 +00:00
martin
6f9eece7e6 Fix bus_space_read_stream*_2 accessors (pasto, proably) - this makes wi0
work on my meshcube.
2006-03-19 11:55:02 +00:00
simonb
c050474de9 Update a comment. 2006-03-16 14:23:19 +00:00
simonb
714761acde Fix prototype for au_himem_map(). 2006-03-16 14:19:04 +00:00
gdamore
08f478e5ab Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.

For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least.  Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.

In any case, this code is *no worse* on older systems than what was there
before.
2006-03-09 20:42:18 +00:00
shige
675a401abf Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h. 2006-03-07 16:34:16 +00:00
shige
97e07f10cd Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h. 2006-03-06 23:06:17 +00:00
simonb
f27f6a0ae1 Remove commented out "ausmbus" instance now that there's a fleshed out
instance above this.
2006-03-06 21:29:23 +00:00
shige
21d185683c Remove working-debug codes.
I apologize sincerely...
2006-03-06 17:22:38 +00:00
shige
4f9e38e993 Add support for On-chip PSC SMBus protocol. 2006-03-06 17:16:45 +00:00
shige
01a719a41a Add enable/disable/suspend functions for AuXXXX PSC devices. 2006-03-06 17:15:03 +00:00
shige
f38dbbf211 Add register definitions for AuXXXX SMBus protocol. 2006-03-06 17:12:24 +00:00