Commit Graph

505 Commits

Author SHA1 Message Date
bouyer
a47e2eb758 Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
matt
5f7da46ddf Need pci_machdep_common.c now 2011-08-19 02:18:26 +00:00
he
469cff01d3 Bump SYMTAB_SPACE so that the contents fits again. 2011-08-03 22:19:31 +00:00
matt
56a76c474b Change device name of pq3cfi to cfi.
Add cfi to P2020DS
Add ddrc
2011-08-02 00:27:42 +00:00
matt
2f23bdb126 Fix tpyo. 2011-08-02 00:25:38 +00:00
matt
b475d67404 Back out commit. 2011-07-28 15:54:49 +00:00
matt
0062f2f291 Bring forward from matt-nb5-mips64. Support for Ralink RT3883 MIPS 74K SoC
from CradlePoint Technology.
2011-07-28 15:38:48 +00:00
matt
bed04ba9a8 Add support for MEMSIZE to limit the amount of memory detected. 2011-07-25 05:46:12 +00:00
matt
1db5b1916f Add MEMSIZE defparam 2011-07-25 05:45:08 +00:00
jakllsch
4ada5b7e5e Enable or note aubtfwl(4) wherever ubt(4) is enabled or noted. 2011-07-23 21:12:57 +00:00
matt
b5e6df8ad4 Suppress a GCC 4.5 warning. 2011-07-20 13:21:12 +00:00
matt
22e9efb140 Flash is only 16MB in size. 2011-07-20 13:20:26 +00:00
matt
99897c9ffb Add no config netbsd-sd0a 2011-07-19 19:57:26 +00:00
matt
20306c0f96 Add nor support
Add netbsd-sd0a
2011-07-19 19:57:02 +00:00
dyoung
d181d57cd1 Enable new-style <sys/bus.h> on several PowerPC ports supporting PCI
buses.  Make non-inline implementations of bus_space(9) and bus_dma(9)
routines and move them to appropriate .c files.

This may leave amigappc in a bad state, sorry.  Fortunately, it will be
easy to repair by imitating the bus.h -> bus_{defs,funcs}.h split in
some other PowerPC port.
2011-07-17 23:23:53 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
matt
2a26aa316e Add netbsd-sd0a 2011-07-16 22:16:59 +00:00
matt
bfb796370f Remove dead devices (replaced by pq3cfi). 2011-07-16 21:58:26 +00:00
matt
6d1159d9c1 Fix off-by-one. 2011-07-16 21:36:18 +00:00
cliff
fb19d2b789 Add support for CFI NOR, using MPC8536DS as initial example.
Only AMD/Fujitsu command set is suported so far.
This is still work in progress, be advised.
2011-07-15 19:19:55 +00:00
dyoung
fea15f47f1 #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 20:36:42 +00:00
dyoung
cf10107d5d #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:51:52 +00:00
dyoung
59adf08e17 Per discussion at
<http://mail-index.netbsd.org/tech-kern/2010/04/02/msg007941.html>,
divide each machine's bus.h into bus_defs.h (constants & data types)
and bus_funcs.h (macro implementations of bus_space(9) routines and MD
prototypes).

Note that some bus_space(9) routines' implementation will move to .c
files from inline subroutines or macros in .h files.

I've only made the split for machine architectures where there is PCI.
All of the non-PCI-having architectures will require a similar split.

These #include files are not referenced by any (committed) Makefiles or
header files, yet.  Changes to Makefiles, to <sys/bus.h>, and to some
more machine-dependent files will dribble in before I throw the switch.
2011-07-01 17:09:58 +00:00
matt
0ea8aedfae Fix some array bounds errors found by gcc 4.5 2011-07-01 07:44:33 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
4a40b01453 Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).
2011-06-30 00:52:55 +00:00
matt
b042682f2f Add some config files for the P2020. 2011-06-29 06:23:36 +00:00
matt
3162fd7666 Some initial MULTIPROCESSOR spin code. Doesn't work yet. 2011-06-29 05:53:05 +00:00
matt
bd38a7a8c6 Wildcard cpu* since the P2020 is dual core. 2011-06-29 05:51:56 +00:00
matt
c4e25001ef Move some stuff from evbppc's Makefile.inc to powerpc's.
This avoids redundant objcopy's
2011-06-25 02:26:53 +00:00
matt
fe86ea0fb1 Make powerpc work on BookE. At this time we only support DOZE (lightest
form of power-saving).  By default, power-saving is disabled but can be
enabled in /etc/sysctl.conf by setting machdep.powersave=1
2011-06-25 00:07:10 +00:00
matt
b1e55671fe Use intr_init since we have it. 2011-06-24 23:54:37 +00:00
matt
438a427c90 Default PAX_ASLR to off. 2011-06-24 21:30:36 +00:00
matt
da247cc47d Turn on PAX_ASLR 2011-06-24 00:48:46 +00:00
matt
8b35e8e3c4 Switch to using the common <common/pmap/tlb/tlb.h> 2011-06-23 01:27:20 +00:00
matt
dd2488a8b3 Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>
2011-06-22 18:06:32 +00:00
matt
65af758777 bump up SYMTAB_SPACE 2011-06-22 17:52:57 +00:00
matt
2cb49e2b8e This is no longer needed. 2011-06-22 05:09:25 +00:00
matt
546208c586 Make pmppc use stock <powerpc/pci_machdep.h>
Move some private declartions to <pmppc/dev/mainbus.h>
2011-06-22 05:08:56 +00:00
matt
6265330aa0 Don't include *pmap.h in assembly files. Get the needed definitions
from "assym.h".
2011-06-20 19:56:10 +00:00
matt
dba36e0322 Change IBM4xx to use the common powerpc PIC framework.
Consolidate most ibm4xx initppc function into ibm4xx_init
and Make all IBM4xx use it.
Change explora to use initppc instead of bootstrap.
2011-06-20 17:44:33 +00:00
matt
a4d141ba75 Don't export USER_SR if _MODULE is defined.
Add a common <powerpc/vmparam.h> like we have for <powerpc/pmap.h>
2011-06-20 08:01:13 +00:00
matt
544a61dd20 Fixup PSL handling to be tolerant of modules. Move evbppc psl changes
into powerpc psl.h
2011-06-20 07:23:36 +00:00
matt
7e37a13248 Cleanup includes. (<net/netisr.h> is handled by softints, not MD anymore,
so this can be nuked).
2011-06-20 07:18:05 +00:00
matt
d9c7720855 Don't expose port-specific if _MODULE is defined.
Don't _MACHINE_CPU_H_, _<PORT>_CPU_H_
2011-06-20 06:35:39 +00:00
matt
179b37ab20 Cleanup powerpc param.h. If compiling a MODULE, ignore port-specific stuff.
Only include <machine/cpu.h> in <powerpc/param.h> at the end.
2011-06-20 06:29:53 +00:00
matt
7443d538a7 Cleanup includes. 2011-06-20 05:15:59 +00:00
matt
56de61fe9e Add options MODULAR 2011-06-20 05:04:10 +00:00
matt
dcbb41139e Make a common genassym.cf (powerpc/genassym.cf) and then
only put specific stuff in foo/genassym.cf
2011-06-18 21:17:28 +00:00
matt
05b09539a2 struct device * -> device_t
struct cfdata * -> cfdata_t
use device accessors, use device_private.
some softc/device_t splits (macppc needs a bunch more)
aprint*_dev used considerably more
2011-06-18 08:08:27 +00:00