Commit Graph

1782 Commits

Author SHA1 Message Date
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
gdamore a8d4d1e86c Add AR531X_SYSREG_WDOG_TIMER register. (Forgot to commit this earlier.) 2006-06-09 18:35:42 +00:00
gdamore b38b3d39ad Import new HAL 0.9.17.2. Approved by sam@
New HAL includes some driver changes to register accesses.
Adds support for WLAN devices on AR5312 family devices.
Adds support 32-bit SPARC ath devices (untested).
ath enabled in SPARC64 GENERIC builds.
This HAL is tested and known to work for i386 PCI devices, SPARC64 PCI devices,
and AR5312 WiSoC devices.  MIPS PCI devices appear to be busted (possibly only
on Alchemy hardware, unconfirmed), and cardbus support is untested due to
lack of test hardware.

Please report any new problems with this import to garrett@.
2006-06-05 05:14:37 +00:00
simonb 180fec2bb9 Adjust asm constraints for more pickier gcc4. 2006-06-03 23:58:48 +00:00
mrg c8fffd8947 remove GCC2 support. 2006-06-02 19:45:56 +00:00
gdamore 60a298a64e Rename flash to athflash to reflect MD nature. Approved by simon@ and dyoung@ 2006-05-25 06:37:47 +00:00
gdamore 473eede9de Add flash device support. 2006-05-25 03:19:43 +00:00
gdamore 0a959690d5 Add RBLE bit to flash enable. 2006-05-25 03:17:36 +00:00
gdamore 4ce6c587eb Move comment with caveats about this driver, and make it more prominent, as
requested by simon@.
2006-05-17 07:11:48 +00:00
gdamore 2dc15aaa84 Initial swag at flash device support. Only read/write supported, and only
read is tested now.  (I don't have a recovery option if I clobber flash on
write, so I'm loathe to test write access right now.)
2006-05-17 06:42:06 +00:00
yamt f1761fc4af - include kauth.h for kauth_cred_geteuid.
- fix an incomplete kauth change.
2006-05-15 09:14:42 +00:00
simonb 064d4f515e Fix typo in MIPS3_SR_EIE.
From Anders Gavare.
2006-05-15 02:26:54 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
skrll 4fb473c54c Fix some comments. 2006-05-12 06:01:02 +00:00
gdamore 9ecc473358 A zero mask means that the device should always be enabled. 2006-05-11 06:35:55 +00:00
skrll a9f4c28a3d Fix a bunch of cast lvalues. 2006-05-10 06:24:02 +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 94b9f48f1d G/c some ancient intrcnt code that isn't used anymore. 2006-04-28 00:58:19 +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
mrg 0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
gdamore 1afeab4d6d Add unified AR531X_REVISION_WMAC. 2006-04-07 04:58:31 +00:00
gdamore e1c0ebdcf7 Use PCI vendor ID for Atheros. 2006-04-07 04:57:05 +00:00
gdamore daaee9c532 Add support for using the MIPS Atheros HAL.
Atheros WLAN added to default evbmips DBAU1500, DBAU1550, and MTX-1 configs.
Note that AR5312 config will require unique HAL that we don't have yet.
2006-04-04 04:30:28 +00:00
gdamore 0b8fc35579 Change to use new HAL layout. (Not in HEAD yet, but since this device
isn't built by default yet, it is harmless to change now.)

Pass DMA tag.  Do not register shutdown hooks if attach fails.
Use SYSREG_REVISION for ath device ids.

if_ath_arbus isn't operational yet, but it is much closer now.
2006-04-02 05:44:28 +00:00
gdamore 9f8c8a9908 Interrupt values (aa_irq) can be zero, and represent a real interrupt.
Please display them.
2006-04-02 05:41:32 +00:00
cherry d600e81a73 closes: PR kern/32359
modifies machine/db_machdep.h: BKPT_SET(inst) to BKPT_SET(inst, addr) for all archs ie; passess the
breakpoint address as well.

Patch from cherry@mahiti.org
2006-04-01 15:44:58 +00:00
gdamore 689f73d8a7 Don't pmap_remove_pv mappings for unmanaged pages.
Closes PR mips/33166.  Reviewed by chuq@
2006-03-30 05:57:01 +00:00
chs 60b21d1590 use uvm_km_alloc() instead of uvm_map(). 2006-03-30 04:05:05 +00:00
thorpej 2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +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
tsutsui 9326d751db Wrap a debug printf with #ifdef DEBUG/#endif. 2006-03-26 00:57:52 +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
matt e42519688e Increment to the next byte after fetching.
Spotted by Dan Krejsa.
2006-03-25 00:34:23 +00:00
tsutsui 65c2431d51 Update FPE trapsignal functions for new siginfo,
based on a patch provided by Matthias Drochner.

Ok'ed by christos, and fixes PR port-mips/26410.
2006-03-25 00:08:11 +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
tsutsui 4918eb5647 include/cpu.h: make sure MIPS3_PLUS properly defined even if _LOCORE is defined
mips/fp.S:     include <mips/cpu.h> for #ifdef MIPS3_PLUS

Closes PR port-mips/27298.
2006-03-23 16:16:45 +00:00
gdamore 2716ac0eba Remove a file that should never have been committed. (Stub implementation
that I abandoned.)
2006-03-21 22:50:21 +00:00
simonb 82390bd0f2 Reorder a few entries in the CPU table. 2006-03-21 09:06:21 +00:00
gdamore bc3e11746b Initial import of Atheros AR531X SoC support. Currently the onboard ethernet
and serial ports are supported, and the system appears stable with an NFS
mounted root.   An earlier version of the code was reviewed by simon@, but it
has since had numerous improvements and cleanups.


At the moment, only AR5312 is known to work, but I suspect AR2313 will work
as well.  Later 2315/2316 parts are substantially different, and are not yet
supported.  Wifi and Marvell switch support found on some designs are not yet
supported.

Platforms known to include AR5312 include Senao Aries 2 (AP5054) and Netgear
WGU624.
2006-03-21 08:15:19 +00:00
gdamore 8bee5b48f3 Added support for MIPS architecture revision 2.
Added definitions for various rev 2 CP0 configuration register bits.
Added support for MIPS 4KEc Rev 2 (found in Atheros AR2316, for example).
2006-03-20 18:31:29 +00:00
drochner 86225028d1 kill the last use of vm_fault_t, from Havard Eidnes 2006-03-20 13:14:37 +00:00