Commit Graph

1008 Commits

Author SHA1 Message Date
cube
816c3531d9 Split device_t and softc, catching up with changes of all other ne(4)
variants.
2008-03-14 11:51:06 +00:00
rafal
b061c2d0d0 Fix syntax for the BUILD_STARTUP_PAGETABLE case. 2008-03-10 16:48:13 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
chris
67bda63986 Add an arm/conf/std.arm file which contains common arm options, initially
just options CPU_IN_CKSUM.

Include std.arm in all arm platform std files.

This should reenable the asm in_cksum code for all arm platforms.

Also remove the now unused in_cksum_arm.S.
2008-01-27 12:37:10 +00:00
kiyohara
fa0b00252c Update and add some options/devices. 2008-01-27 06:23:38 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +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
chris
131e68c2e1 Remove arm support for IPKDB.
It hasn't worked since arm was broken out from arm32 in Jan 2001, and
no-one has noticed or cared to fix it.
2008-01-19 13:11:09 +00:00
he
953b540396 Increase SYMTAB_SPACE to 270000 so that the symbol table fits again. 2008-01-18 09:48:30 +00:00
tsutsui
db09bcc34f Move todr_attach(9) calls from each MD attachment to MI mc146818_attach(). 2008-01-10 15:17:39 +00:00
dyoung
a826619d34 Make the 'tags' target produce some useful tags. 2008-01-10 07:34:02 +00:00
joerg
30cd7dc199 assym.h dependency. 2008-01-08 17:46:31 +00:00
matt
6bc0c58216 As of this commit, all arm32 kernel now build. 2008-01-08 02:07:50 +00:00
matt
f4f1c6c970 More kernels SYMTAB_SPACE increased. 2008-01-08 02:06:43 +00:00
matt
04a4a202ed include "conf/std" 2008-01-08 02:05:30 +00:00
matt
0c0de8072e Cleanup softint lossage. 2008-01-06 01:37:53 +00:00
matt
3ef8cd67cc Increase SYMTAB_SPACE because of more kernel bloat. 2008-01-06 01:35:34 +00:00
ad
fbed3be26c Make compile. 2008-01-05 12:40:34 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
ad
8044d72190 Make compile (hi moof). 2007-12-22 01:21:41 +00:00
perry
9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +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
kiyohara
a1297d6f3f Add bcsp(4). 2007-12-02 05:19:11 +00:00
marty
d8b9a7ea7c Increase SYMTAB_SPACE to 264000 so the release kernel will compile 2007-12-01 06:52:12 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
yamt
23005df1e0 defparam PAGER_MAP_SIZE. 2007-10-25 13:03:03 +00:00
imp
d753725968 It is $NetBSD$ not $NetBSD%. Correct this typo. 2007-10-25 03:43:14 +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
kiyohara
6a92649103 + Remove 'include "lcd.h"'.
+ It is easy to understand that memsize is added to physcal_freeend.
+ Add VERBOSE_INIT_ARM at befor/after with printf().
+ Call ddb_init() before db_machine_init().
+ Fix declered kgdb_devrate.
2007-09-16 14:04:16 +00:00
kiyohara
9f0e854e77 Remove white spaces. 2007-09-16 13:47:19 +00:00
kiyohara
e70a0d2e8c + Add comment at btuart.
+ Add INCLUDE_CONFIG_FILE and UFS_DIRHASH.
+ Add white space at file-system and enabled some file-system.
+ Comment-outed un-major devices.
+ Add stuirda, uchcom, ugensa.
2007-09-16 13:44:38 +00:00
kiyohara
d56611e9ca Replace white-space to Tab. 2007-08-21 12:43:33 +00:00
kiyohara
c4ab942136 Add gxiic and iic. However not test yet because I don't have I2C-LSI and
can't connect it.
2007-08-21 12:36:18 +00:00
kiyohara
2d6e84fcd5 Add option GXIO_DEFAULT_EXPANSION. This option is default 'netCF'.
Remove white-spaces.
2007-08-21 12:26:17 +00:00
kiyohara
a3adea9301 * Configure the GPIO to GXIO_DEFAULT_EXPANSION, if not specified 'busheader='
in boot args.
* Support NONAKA's <nonaka@netbsd.org> sdmmc.
* Add expansion target 'basix'.  This is to configure GPIO to PXA MCI.
    However, CardDetect is not connected as for mci of gumxtix. Therefore, it
    is not possible to Insert/Remove.
* Remove white-spaces.
* Change format in comments.
2007-08-21 12:01:55 +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
kiyohara
7fbebc4263 Add btbc(4). 2007-08-20 00:54:41 +00:00
he
5200a497db Bump the symbol table size so that it fits again. 2007-08-18 09:45:08 +00:00
kiyohara
5d6dcf3d03 Add ARGSUSED. 2007-08-14 14:07:01 +00:00
pooka
ac9042f5ce remove TNF advertising clause from file copyrighted to me 2007-07-24 14:41:29 +00:00
dsl
af56a15a3c Remove "" from around option filename. 2007-07-15 11:56:04 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
he
f39d28c4bf Adapt to the new signature of callout_init(). 2007-07-12 22:02:38 +00:00
kiyohara
5f9e0be38f s/Gumstix, Inc./Gumstix. Inc./
Sync to i386's GENERIC 1.837
2007-07-12 02:37:47 +00:00
kiyohara
7e68bd52d9 This file supports Gumstix. Inc.'s gumstix. 2007-07-12 01:58:32 +00:00
he
e8108f3e5b Remove a spurious brace. 2007-07-11 19:50:27 +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
scw
9e1f0b7978 Bump SYMTAB_SPACE 2007-07-08 10:05:13 +00:00
scw
61366a1bd8 Make this build again now that sched_whichqs no longer exists. 2007-07-08 08:37:25 +00:00
simonb
015eeb4e7f Fix a tyop in a comment. 2007-06-22 04:50:47 +00:00
he
eaf1c9f7c3 Bump SYMTAB_SPACE so that it fits again. 2007-05-13 14:18:57 +00:00
kiyohara
0b8b4bf965 + Add file-system HFSP (commented out).
+ Add pxartc and lcd(commented out) and pxaudc and pxamci (commented out).
  lcd and pxamci not support yet.
+ Remove slhci.
+ Change name of expansion bords the console-{hw,st} from waysmall-{hw,st}.
  Because The gumstix Co. changed the name.
2007-04-20 13:22:21 +00:00
kiyohara
3af5743d0a Change to use pxapcic from sa11xx_pcic.
Support multiple socket.  But not tested.
2007-04-20 13:00:08 +00:00
kiyohara
e0c180145d Add whitespace and tab. 2007-04-20 12:48:52 +00:00
macallan
cd8fb15721 include files.wsfb 2007-04-10 02:29:42 +00:00
drochner
ab07e481e4 It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
2007-03-14 12:27:20 +00:00
thorpej
d1d10b58ab Make ipl_t and ipl_cookie_t 8-bit values. kmutex is now down to 12 bytes
(from 20) on ARM.

Approved by Matt Thomas.
2007-03-09 06:45:19 +00:00
matt
1f1847fbab Use uint8_t * instead of void */char * for ptr arithmetic. 2007-03-05 08:37:38 +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
kiyohara
a7406f9d2d Reorder. 2007-03-01 14:58:54 +00:00
thorpej
8b3bae6275 TRUE -> true, FALSE -> false 2007-02-22 05:19:00 +00:00
kiyohara
3f7786a50b Indentation.
Move macro MMU_INIT.
2007-02-20 17:50:43 +00:00
kiyohara
60ea575b87 Indentation. 2007-02-20 17:48:13 +00:00
kiyohara
548878a8d8 Remove IPKDB, not need.
Indentation at cpu and mainbus.
2007-02-20 17:43:16 +00:00
kiyohara
e798fe7cb3 Remove white-space.
Indentation.
2007-02-20 17:29:33 +00:00
kiyohara
5ad2d7ced7 Add btuart. 2007-02-20 17:23:09 +00:00
briggs
de053ba2ef GUMSTIX and INSTALL both want to include pseudo-device md, so undefine it
in between for now.  Why does GUMSTIX need md?
2007-02-19 05:36:13 +00:00
briggs
370a7a67ca Convert evbarm to __HAVE_GENERIC_TODR. 2007-02-19 02:08:12 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf
142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
kiyohara
672e3eab7c Sorry...
btuart not yet.
2007-01-18 10:24:53 +00:00
kiyohara
a9dae91c04 Support com*.
Add options GXIO_BLUETOOTH_ON_HWUART, but not yet btuart.
Cleanup some configurations.
2007-01-18 10:15:20 +00:00
kiyohara
a847a1afbe Initialize GPIO of *UARTs and supports. 2007-01-18 10:06:47 +00:00
kiyohara
7dbdf0112d Use device_private() and aprint_*. 2007-01-18 10:02:55 +00:00
imp
74b072c012 Sam's npe support was ported from FreeBSD and is enabled in the NSLU2
kernel, so update the README to reflect a more current status of the
ethernet under NetBSD.
2007-01-17 16:00:20 +00:00
christos
ced82e8b4e New files from Bucky Katz 2007-01-06 08:16:26 +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
nonaka
964e61ba35 compile again. 2006-12-18 15:32:10 +00:00
nonaka
751c643773 Bump up SYMTAB_SPACE. 2006-12-18 15:31:30 +00:00
nonaka
405a97b628 Fix evbarm compile again. 2006-12-18 15:30:56 +00:00
nonaka
225dafea20 cosmetic 2006-12-18 13:50:58 +00:00
nonaka
4ed55699c1 Bump up SYMTAB_SPACE. 2006-12-17 10:27:33 +00:00
scw
94359b8f74 Ditch the messy "disk access" polling code. There was no way to
determine accurately which LED to illuminate.

Instead, hook into the PCI[ABC] interrupt chains (used solely for the
USB controller) and use the disk1/disk2 LEDS to indicate general USB
activity.

Use the "Ready/Status" LED as a CPU activity indicator by hooking the
TMR0 interrupt and illuminating the LED if the CPU is non-idle.
2006-12-10 10:23:37 +00:00
scw
b95de082ef Add watchdog and NPE Ethernet support. The latter is not well tested
on IXDP425 since the PHYs fail to probe my board. This may be due to
an incompatibility between the stepping A0 CPU and the microcode.

Additionally, the MAC addresses are not configured by Redboot, so more
work is needed in this area.
2006-12-10 10:12:22 +00:00
scw
9a59c269b4 Add NPE Ethernet and watchdog support.
Ethernet is enabled by default, but will be non-functional without
a microcode image from Intel. See arch/arm/xscale/ixp425-fw.README.
2006-12-10 10:08:05 +00:00
scw
4152e66e28 Adjust watchdog reset register base. 2006-12-10 10:04:40 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
wiz
d6a98601a8 s/heirarchy/hierarchy/, from Zafer. 2006-11-24 21:20:05 +00:00
he
cb4c2207ba Add a netbsd-sd0 kernel, so that the corresponding gzimg can be built. 2006-11-11 23:50:54 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
scw
814254d821 Add an install kernel for CP3100. 2006-11-09 00:28:37 +00:00
scw
5bfa580df1 Add support for the Certance CP-3100.
"The Certance CP3100 product family provides high-end disk-to-disk-to-tape
(D2D2T) functionality for small-to-medium businesses."

To software, the unit is very similar to the IQ80321 and IQ31244 eval
boards from Intel. As such, we share almost all of their code.

Onboard hardware:
 - IOP321 XScale CPU. Core clock is 600MHz.
 - 256MB SDRAM (not sure if that's true for all)
 - Four-port Intel i31244 SATA controller. One port is connected to the
   internal disk. The remaining three are available on the back-panel.
 - Dual GigE ports on the back panel, using an Intel i82546EB controller.
 - Two Symbios Logic 53c1010 SCSI controllers, one in host mode the other
   in target mode. Both SCSI busses are available on the back panel.
   Note that NetBSD does not support SCSI target mode.
 - 8MB of NOR Flash, containing a fairly vanilla Redboot together with
   a minimal compressed Linux image.
 - Some front-panel LEDS (not supported).
 - Serial console.

Contributed by Wasabi Systems, Inc.
2006-11-08 23:49:02 +00:00
he
af0b64f490 Bump SYMTAB_SPACE so that it fits again. 2006-10-25 20:46:48 +00:00
he
b773aa1b24 Bump SYMTAB_SPACE so that it fits again.
Hm, this port doesn't error out the build if it doesn't...
2006-10-25 20:44:57 +00:00
bjh21
695ea57fe2 parse_mi_bootargs() is declared in <arm/arm32/machdep.h>, so there's no need
to declare it here too.
2006-10-24 21:09:03 +00:00
kiyohara
29ee4e3d02 Add $NetBSD$. 2006-10-17 17:06:22 +00:00
kiyohara
ec59b85f32 Comment out slhci* at pcmcia, because testing now. 2006-10-17 16:57:55 +00:00
kiyohara
60e982e820 Add initial support for the PXA255-based gumstix board. 2006-10-16 16:40:14 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad
e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
bjh21
e10108c7f2 Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere. 2006-09-03 13:51:23 +00:00
matt
00185e0248 Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
2006-08-31 17:53:19 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
skrll
1a3062e81b s/adpater/adapter/
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
cube
cad5e9a56c Remove "atapibus* at umass?" and "scsibus* at umass?" when there is
already an attachment to the interface attribute (atapi and scsi).

Part of PR#34085, although it is the contrary to what the submitter
suggests (which shows that having both in a config file can be confusing).
2006-07-26 07:00:23 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +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
nonaka
a1a022c748 Added more register define. 2006-06-08 23:27:47 +00:00
imp
4bacc0092a The Intel sight has changed slightly, so tweak wording on how to get the
intel documentation necessary for the ethernet driver.
2006-05-18 20:13:14 +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
mrg
b6779d7cc2 in initarm(), initialise kernel_l1pt.pv_va as well as kernel_l1pt.pv_pa. 2006-05-17 04:22:46 +00:00
mrg
fc6ae28683 redo the previous. GCC4 wants both pv_pa and pv_va initialised. 2006-05-16 21:39:26 +00:00
mrg
d9911429b9 remove a shadow extern decl for ifpga_do_pending(). 2006-05-16 21:38:14 +00:00
mrg
f69243b6b2 move the initialiser for kernel_l1pt.pv_va to pacify GCC4. 2006-05-16 21:35:47 +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
yamt
ffb731e056 adapt to iostat change. 2006-04-22 09:11:45 +00:00
drochner
1168954c68 adjust comments for the new location of wskbdmap_mfii.c,
addresses PR kern/33290 by henry nelson
2006-04-19 10:31:44 +00:00
pooka
37c14369ab Define the dcache size so that we can run our own homegrown cache
flush routine during startup.  XXX: I have absolutely no idea where
this managed to pick up DCACHE_SIZE from before.

closes port-evbarm/33276 by Peter Postma
2006-04-17 20:44:30 +00:00
jmmv
4208ccaafa Properly pass down the 'vs' cookie to pxa2x0_lcd_ioctl calls. Pointed out
by he@.
2006-04-17 15:59:47 +00:00
nonaka
407f05e765 A port of NetBSD to the I-O DATA HDL-G "Giga LANDISK".
Please refer to following URL for this machine.
http://www.iodata.com/products/products.php?cat=HNP&sc=HDL&ts=2&tsc=14&sc=HDL&pId=HDL-G400U
2006-04-16 02:22:33 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
christos
cf974ddc9d Adjust for new io_stats 2006-04-15 06:24:40 +00:00
simonb
f4dfb02e67 Bump SYMTAB_SPACE. 2006-04-14 10:36:56 +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
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
thorpej
3328b5dfae Use device_parent(). 2006-03-26 04:27:57 +00:00
scw
12dc74f622 RB_POWERDOWN trumps RB_HALT. 2006-03-11 09:09:41 +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
he
8aa8bfed52 Remove another instance of the macro triplet SET/CLR/ISSET, now
found in <sys/types.h>.
2006-03-07 23:32:53 +00:00
scw
5f212af961 Document the Flash layout, and how RedBoot invokes the kernel bootloader. 2006-03-04 13:17:18 +00:00
scw
3be7ae7547 The Slug's clock no longer runs slow. The default value of COUNTS_PER_SEC
was incorrect.
2006-03-04 11:28:36 +00:00
scw
ea5beb6718 Override the default timer frequency. Turns out the NSLU2's timers are
clocked at exactly 66.0MHz.
2006-03-04 11:27:12 +00:00
scw
c9e50b3c22 Simpify GPIO bits for power/reset buttons, and squash a (mostly harmless)
bug in the GPIO pin direction code.
2006-03-01 21:02:50 +00:00
scw
6f6167730e A port of NetBSD to the Linksys NSLU2 (a.k.a. "Slug").
The NSLU2 (Network Storage Link for USB 2.0 Disk Drives) is a small, *cheap*
NAS device consisting of an Intel IXP420 (Xscale) CPU, a 10/100mbit Ethernet
port, and two USB 2.0 ports. It has 32MB of SDRAM and 8MB of Flash memory,
and runs RedBoot/Linux out of the box. Now it can also run NetBSD.
2006-02-28 20:40:33 +00:00
thorpej
132ce1f07f Use device_is_a() 2006-02-26 05:24:52 +00:00
he
dee010acfb If the local variable changes name, modify it's uses as well. 2006-02-23 23:57:57 +00:00
he
afa1898cb0 Fix an obvious typo (missing closing paren). 2006-02-23 23:57:32 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
thorpej
3ddf26777f Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
2006-02-20 16:50:36 +00:00
thorpej
680d9eea68 - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
  associates the MAC address property with the epe device instance.
2006-02-18 05:04:11 +00:00
hamajima
9290fbe544 identify model from DeviceCfg register, and delete "options ARMADILLO210".
get DRAM information and boot argument from bootloader.
2006-02-13 12:24:21 +00:00
hamajima
b0ff3653c2 Add support for the Atmark Techno Armadillo-210.
Armadillo-210 is subset model of Armadillo-9.
2006-02-06 14:03:22 +00:00
cube
6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
he
021927bcf2 Bump SYMTAB_SPACE to make it fit again. 2006-02-04 09:11:32 +00:00
rpaulo
df5390003c bpfilter doesn't accept count anymore. 2006-02-04 02:42:27 +00:00
christos
606bb2caed free -> dealloc
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
he
b1bcd0ffae The new zlib uses HEAP_SIZE, so instead use BOARD_HEAP_SIZE as the
symbol to use here.  Also adapt to the new zlib with the changed name
for the header file.
2006-01-16 19:34:53 +00:00
yamt
6d12f0a6d7 implement splraiseipl() for the following ports.
evbarm, iyonix, cats, netwinder, acorn26

reviewed by Bill Studenmund.
2006-01-01 14:24:33 +00:00
chs
33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
briggs
23dfb2cd67 Add files that have been sitting in my local source tree for almost exactly
two years.  Unable to test since I no longer have access to the hardware.
2005-12-22 16:17:24 +00:00
tsutsui
f521bf5b9b Adjust a comment for options FFS_NO_SNAPSHOT. 2005-12-17 16:33:30 +00:00
briggs
c9d34b2987 Add an offset to the I/O port translations. This allows IQ80321
and others to avoid providing PCI I/O space at address 0.
Iyonix, however, needs to provide PCI I/O space at 0.
The others require I/O space to be offset in part due to a bug
work-around in wm(4) which requires that I/O space access be used
to reset the controllers.  If I/O space is mapped at zero, the card
claims, but ignores, the transactions, and the controller doesn't
get reset properly and can't then be used.
2005-12-15 01:44:00 +00:00
briggs
ae315be3b6 Bump SYMTAB_SPACE. 2005-12-14 16:21:55 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tsutsui
ff9b47d69e Adjust comments for options FFS_NO_SNAPSHOT.
XXX: This option should be mentioned in options(4).
2005-12-07 09:10:11 +00:00
he
6eb2140bc3 Bump SYMTAB_SPACE so that the symbol table fits again. 2005-12-05 22:30:38 +00:00
thorpej
cfc81086d9 swcr -> swcrypto 2005-11-25 16:41:31 +00:00
thorpej
7385cdd346 "pseudo-device crypto" really refers to the /dev/crypto API to the
opencrypto framework, not the framework itself.  Update the comment
accordingly.
2005-11-25 16:35:11 +00:00
thorpej
751f32db24 Add "pseudo-device swcr" (commented out if "pseudo-device crypto" is also
commented out).
2005-11-25 16:30:23 +00:00
yamt
bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
dbj
8000972bbe . Have dbsym explicitly suggest increasing SYMTAB_SPACE when
an overflow occurs.
   . Make this error a fatal build time error
   . Move the support for dbsym into the MI Makefile.kern.inc,
     conditional upon the SYMTAB_SPACE option being defined in
     the kernel config file.
2005-11-24 12:54:29 +00:00
hamajima
201a955e8e delete unknown options.
change root device to "?".
2005-11-14 05:09:31 +00:00
hamajima
5c90fb9a2f Add initial support for the EP9315-based Atmark Techno Armadillo-9 board. 2005-11-13 06:33:05 +00:00
hamajima
14dc884cf3 add #include <arm/ep93xx/epgpioreg.h>. 2005-11-12 05:34:28 +00:00
yamt
7e71f567e4 include "conf/std". 2005-09-17 09:44:05 +00:00
drochner
727527c99b remove "dev" locators from cardbus device definitions, it doesn't
make sense technically and might be removed
2005-09-09 16:26:19 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
drochner
44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
christos
93c362d7ef Enable ptyfs by default on the non-install and non small/tiny/ramdisk kernels 2005-08-19 05:19:49 +00:00
christos
758a209d23 64 bit inode changes. 2005-08-19 02:03:49 +00:00
he
1aaad1fbee Follow up the type change of i80200_extirq_dispatch which now takes
an irqframe* and not a clockframe* as argument.
2005-08-14 19:23:17 +00:00
joff
e52bd93601 The configuration used for the NetBSD/toaster demo by
the NetBSD booth during LinuxWorld Expo 2005.
2005-08-14 04:35:45 +00:00
joff
6463cb5191 Since we disabled the LCD and matrix keypads in the default kernel, supply
this configuration which has them both enabled.
2005-08-14 04:34:41 +00:00
joff
c8bc480520 add toastersensors device 2005-08-14 04:33:49 +00:00
joff
389660b05a Add attachments for the 4 possible configurations of the TS-DIO24 on the
PC104 bus.  Also, comment out the tslcd and tskp drivers by default.  Enabling them
prohibits end-user use of the GPIO and LCD headers for other things.
2005-08-14 04:30:08 +00:00
joff
1b548227c4 Toaster inputs (burnlevel potentiometer, toast down sensor) and
matrix keypad/wskbd attachment glue for polling/debouncing
the 5 front-panel buttons.
2005-08-14 04:18:30 +00:00
joff
27727f52ec Add magic i/o location for the MAX197 ADC 2005-08-14 03:05:00 +00:00
joff
120d51244b Support for the TS-7200's optional TMP124 temperature sensor via sysctl 2005-08-14 03:03:48 +00:00
joff
92e361f3ad hd44780 porting layer for readreg/writereg now takes an extra "enable" argument. 2005-08-14 02:58:40 +00:00
skrll
1293f7a748 Add (commented out) ucycom to various kernel configs. 2005-08-05 09:23:16 +00:00
yamt
38ca5312d2 revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
yamt
558fded29a add "options VMSWAP" to non INSTALL kernels. 2005-07-30 06:35:34 +00:00
tron
04b9c3437f Add (commented out) IPSEC_NAT_T option. 2005-07-07 17:05:46 +00:00
pooka
5b4bcc52c2 Adapt conf for PXA2X0 split to PXA250 and PXA270. 2005-07-04 14:10:23 +00:00
bsh
be2e0be463 adapt to changes for PXA270 support. 2005-07-04 00:47:49 +00:00
bsh
c48d9c757e option CPU_XSCALE_PXA2X0 is now obsoleted by CPU_XSCALE_PXA2[57]0. 2005-07-04 00:46:04 +00:00
bsh
af51d61dc0 make this compile again.
+ fix wrong prototype for obio_search()
 + avoid warning by const.
ANSIfy obio_search()
2005-07-03 18:10:53 +00:00
drochner
996c273eda adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes 2005-06-30 17:03:51 +00:00
drochner
b081eee072 convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
2005-06-28 18:29:58 +00:00
atatat
df13e3579e Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone.  Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
2005-06-20 02:49:18 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
pooka
d42ccd3441 Add initial support for the PXA255-based Arcom Viper ARM board.
The system can boot into multiuser, but most of the peripheral
driver attachments are still missing.

Thanks go to Jan Nyman for arranging access to the hardware and to
Steve Woodford for reviewing the code.
2005-06-06 20:24:10 +00:00
he
cc129440dd Fix -Wcast-qual warnings, unfortunately using __UNCONST() for sysctl()
function parameters.
2005-06-04 22:40:03 +00:00
he
fb96dc834d Rename an (unused) argument to appease -Wshadow. 2005-06-04 20:19:47 +00:00
he
aafdb08c5a Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*".  Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>.  This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.
2005-06-04 20:14:24 +00:00
rearnsha
f1bd8659de Include arm/bootconfig.h rather than duplicating common code. 2005-06-04 13:39:20 +00:00
rearnsha
b1f70d4d2d Fix shaddowed declarations of cn_trapped. 2005-06-04 13:38:08 +00:00
rearnsha
0d4235a6ac Fix shaddowed declaration. 2005-06-04 13:35:05 +00:00
rearnsha
2de4086f52 Enable use of the CM1136J-s core module on the Integrator. 2005-06-03 15:56:49 +00:00
rearnsha
a53d9d9c2a Disable some debugging options, add space for the symbol table. 2005-06-03 15:41:39 +00:00
rearnsha
4987034e09 Fix the v6 boot check: A '6' in the architecture field really means
Architecture v5TEJ.
2005-05-25 09:20:33 +00:00
christos
7cdea212c0 No 0x in front of %p... 2005-05-22 15:54:45 +00:00
rearnsha
c28a42708d Add a couple of sanity checks in case someone tries to boot the kernel
on a CM board that we can't support.  In essence that means any board
without an MMU.  For now also fault v6 based CPUs since the kernel
doesn't know how to handle these yet.
2005-05-21 11:46:56 +00:00
rearnsha
492fb6662e Use makeoptions CPUFLAGS not COPTS. 2005-05-07 22:22:02 +00:00
bsh
6c6d96d112 dependencies for .BEGIN is not accepted by the latest nbmake. 2005-05-03 14:51:42 +00:00
itohy
d665949330 Add ukyopon(4). 2005-04-15 17:27:20 +00:00
scw
1cc2a2688d Add support for the DMA and AC97 controllers on PXA2x0, and enable them
on the Lubbock evaluation board.

Many thanks to Hiroyuki Bessho for testing this driver with the new
aurateconv interface, as I no longer have access to the hardware.

Contributed by Wasabi Systems, Inc.
2005-04-13 07:42:28 +00:00
yamt
6b2d8b66a4 merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
bsh
25645b8f42 modify comments for clarity.
Original comments made several people misunderstand that the comment
says kernel's pagetable is at 0xa0004000.  What the comment says is
about RedBoot's pagetable.
2005-03-18 11:22:23 +00:00
bsh
d608de2069 include <bsd.obj.mk> to teach make the rules for OBJDIR names.
This is to fix a problem on compiling gzboot with BUILDID defined
(by build.sh -B BUILDID).
2005-03-18 08:50:07 +00:00
bsh
a5d9dab3e0 Switch kernels for Lubbock and TwinTail to use pmap_devmap to map
I/O registers that are used in early start-up stage.  Also stop using
special bootstrap-time-only bus_space_map function in {lubbock,g42xxeb}_machdep.c.

This makes initarm() for them a bit simpler, and gives us smaller diffs
to other evbarm platforms.
2005-03-17 16:22:56 +00:00
bsh
4c5c06097c Switch SMDK2410 and SMDK2800 kernels to use pmap_devmap_bootstrap() to map
I/O registers that are used in early start-up stage.  This replaces the
special bootstrap-time-only bus_space_map function in smdk{2410,2800}_machdep.c.

This makes SMDK{2410,2800}'s initarm() a bit simpler, and gives us smaller diffs
to other evbarm platforms.

An another good thing for SMDK2800 is that now we have all built-in peripheral
registers mapped in 2 segments.  We may expect less TLB miss on I/O access
(very slightly).
2005-03-16 05:02:12 +00:00
bsh
513d8a771b move a few definitions to smdk2800var.h to share them between smdk2800_machdep.c and smdk2800_start.S 2005-03-11 14:28:52 +00:00
joff
b9ac414499 Use special spaces for ISA that don't assert USER CS# 2005-03-09 21:19:59 +00:00
bsh
a7d17de7d6 delete unused stuff. 2005-03-08 16:51:44 +00:00
bsh
3066388bf6 add install kernels for SMDK2410/2800.
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
2005-02-27 02:25:09 +00:00
bsh
53259c6163 sync pseudo device part with other platforms.
disable pseudo-device md (enabled in SMDK2800_INSTALL)
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
2005-02-27 02:18:34 +00:00
bsh
6c82f22455 This file is not used.
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
2005-02-27 02:02:02 +00:00
simonb
798eed2639 Watch out for those unexpected tains. 2005-02-26 12:00:52 +00:00
bsh
629db0b989 TWINTAIL (official product name is G4255EB) is an evaluation board
with Intel PXA255 processor from Genetec corp.  You can get some
information on the board from http://ad.genetec.co.jp/ but only in Japanese.
2005-02-26 10:49:53 +00:00
bsh
94b724fc67 align md_root_loadaddr to word boundary. 2005-02-26 10:45:29 +00:00
bsh
355d1500b7 fix xi@pcmcia configuration 2005-02-26 10:30:56 +00:00
bsh
b42e2b64d1 Fix kgdb_port_init() to make it compile with options KGDB. 2005-02-26 10:22:41 +00:00
simonb
ff8f0b23c9 Add COMPAT_20 (and COMPAT_16 in some cases) to kernel config files
that didn't have those options but had other earlier compat options.
2005-02-25 13:46:48 +00:00
joff
7f97da202c Add sysctl tree hw.tspld.* for query of jumper states, pld revision,
board model/options, etc...
2005-02-24 03:52:22 +00:00
rearnsha
3351f73643 Add on-board CompactFlash device. 2005-02-19 16:57:58 +00:00
rearnsha
7af50b5bf5 Add support for the on-board CompactFlash card. 2005-02-19 16:56:04 +00:00
rearnsha
575ff76f8f Add bus-space write-multi-2 and read-multi-2 methods. 2005-02-19 16:55:11 +00:00
dsl
4822cbaae2 Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT 2005-02-18 21:05:50 +00:00
rearnsha
ef3f4c0f7e DMA on the i31244 is now enabled by default. 2005-02-12 10:23:21 +00:00
rearnsha
16574672f1 Document the types and addresses of the IIC devices
(Disabled, beacuse they seem to be non-functional at present).
2005-02-12 09:59:29 +00:00
rearnsha
fdac3760e5 ... but make it's filesystem type FFS (not NFS :-). 2005-02-12 09:54:36 +00:00
rearnsha
3633c570d2 Build a kernel variant with root on wd0. 2005-02-12 09:53:27 +00:00
rearnsha
d8a87d92cb Bump the symtab space 2005-02-12 09:51:05 +00:00
rearnsha
6085be19d6 Redboot defaults to a console speed of 115200 baud on this board. 2005-02-12 09:49:40 +00:00
rearnsha
699b0c2c38 This board has a 33.0 crystal, so the counter speed comes out at 198MHz 2005-02-12 09:45:49 +00:00
dsl
05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00
joff
32262aa8f2 Support a wsdisplay(4) attachment on a tslcd 2005-02-04 06:02:36 +00:00
joff
93f6c1c28a keysyms off-by-one in numbering 2005-02-04 05:48:12 +00:00