summaryrefslogtreecommitdiff
path: root/sys/arch/evbppc/include
AgeCommit message (Collapse)Author
2014-02-28Needed for COMPAT_NETBSD32matt
2013-11-17Enable sljit and bpfjit on powerpc.alnsn
2013-05-16Complete the dosparts -> mbrparts conversion. Only x86k new uses dospartschristos
because it also uses struct dos_partition.
2012-07-28Remove declartions of physmemmatt
2011-08-30Add getlabelusesmbr(), as proposed inbouyer
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-07-17Enable new-style <sys/bus.h> on several PowerPC ports supporting PCIdyoung
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-17Retire varargs.h support. Move machine/stdarg.h logic into MIjoerg
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-01Per discussion atdyoung
<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-06-22This is no longer needed.matt
2011-06-22Make pmppc use stock <powerpc/pci_machdep.h>matt
Move some private declartions to <pmppc/dev/mainbus.h>
2011-06-20Don't export USER_SR if _MODULE is defined.matt
Add a common <powerpc/vmparam.h> like we have for <powerpc/pmap.h>
2011-06-20Fixup PSL handling to be tolerant of modules. Move evbppc psl changesmatt
into powerpc psl.h
2011-06-20Don't expose port-specific if _MODULE is defined.matt
Don't _MACHINE_CPU_H_, _<PORT>_CPU_H_
2011-06-20Cleanup powerpc param.h. If compiling a MODULE, ignore port-specific stuff.matt
Only include <machine/cpu.h> in <powerpc/param.h> at the end.
2011-06-18split device/softc (CFATTACH_DECL_NEW)matt
struct device * -> device_t struct cfdata * -> cfdata_t Use <sys/foo.h> instead of <machine/foo.h> if <sys/foo.h> exists Explicitly include <powerpc/ibm4xx/cpu.h> when needed.
2011-06-17intr.h must not include cpu due to deadly embrace with SOFTINT_COUNT.matt
Cleanup intr.h so MD definitions can overload common definitions. Rototill pic/intr.c. Virtual IRQs can now be reclaimed. separate virq from hwirq from picirq. Redo intr mask calculations. tested on pmppc and macppc (MP).
2011-06-12for booke and ibm4xx evbppc systems, set module_machine to to eithermrg
"powerpc-ibm4xx" or "powerpc-booke".
2011-06-05Remove <machine/atomic.h>; use <sys/atomic.h> instead.matt
Add <powerpc/cpuset.h> (for mpc85xx pmap). Add some initial MP code for mpc85xx Rework ipi code to be common across all ppcs Change PPC to keep curlwp in %r13 while in the kernel. Move astpending from cpu_info to mdlwp Improve cpu_need_resched to be more MP friendly.
2011-04-26Remove Darwin, MACH and Mach-O support.joerg
2011-04-04Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),dyoung
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match predicate passed to pciide_compat_intr_establish() should ever modify their pci_attach_args argument, so make their pci_attach_args arguments const and deal with the fallout throughout the kernel. For the most part, these changes add a 'const' where there was no 'const' before, however, some drivers and MD code used to modify pci_attach_args. Now those drivers either copy their pci_attach_args and modify the copy, or refrain from modifying pci_attach_args: Xen: according to Manuel Bouyer, writing to pci_attach_args in pci_intr_map() was a leftover from Xen 2. Probably a bug. I stopped writing it. I have not tested this change. siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args. Probably a bug. I use a temporary variable. I have not tested this change. slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args. Probably a bug. Use a local pci_attach_args. I have not tested this change. viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the caller's pci_attach_args. Probably a bug. Make a local copy of the caller's pci_attach_args and modify the copy. I have not tested this change. While I'm here, make pci_mapreg_submap() static. With these changes in place, I have tested the compilation of these kernels: alpha GENERIC amd64 GENERIC XEN3_DOM0 arc GENERIC atari HADES MILAN-PCIIDE bebox GENERIC cats GENERIC cobalt GENERIC evbarm-eb NSLU2 evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200 KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425 evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3 evbmips64-el XLSATX evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266 OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT hp700 GENERIC i386 ALL XEN3_DOM0 XEN3_DOMU ibmnws GENERIC macppc GENERIC mvmeppc GENERIC netwinder GENERIC ofppc GENERIC prep GENERIC sandpoint GENERIC sgimips GENERIC32_IP2x sparc GENERIC_SUN4U KRUPS sparc64 GENERIC As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels with or without my patches in place: ### evbmips-el GDIUM nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop ### evbarm-el MPCSA_GENERIC src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc' ### ia64 GENERIC /tmp/genassym.28085/assym.c: In function 'f111': /tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb' /tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type ### sgimips GENERIC32_IP3x crmfb.o: In function `crmfb_attach': crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid' crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid' crmfb.c:(.text+0x234c): undefined reference to `edid_parse' crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse' crmfb.c:(.text+0x2354): undefined reference to `edid_print' crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-01-18Add support for various MPC85xx platforms. The MPC8536DS and MPC8548CDSmatt
development systems and the RB800 (routerboard 800) platform. The CF on the RB800 doesn't work yet.
2010-03-18Support Plathome's OpenBlockS600.kiyohara
2010-03-02Add missing <powerpc/FOO/spr.h> to a few files missed on the first pass.matt
Don't export <machine/spr.h> to userland, only <powerpc/spr.h>
2009-11-23If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.pooka
This allows use of subr_disk_mbr on all archs. Default to it for the rump disk component. No functional change for regular kernels. (The other option would've been to include dkbad in disklabels everywhere, but arguably this approach has less possible side-effects, especially given that wedges and related magic will take over the world any second now).
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-04-24Fix RCS Id, pointed out by Slava Semushin in private mailhubertf
2008-01-20Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,joerg
remove the conditionals and the code associated with the undef case.
2007-10-17Merge the ppcoea-renovation branch to HEAD.garbled
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-07-14Generic soft interrupts are mandatory.ad
2007-02-09Merge newlock2 to head.ad
2006-10-23Define BASE_ISA macro for ISA window base address (where pckbc, com, lpt live)kiyohara
instead of hardcoding the constant or (even before) using BASE_COM.
2006-09-18Conversion of evbppc to generic TODR. ok freza@gdamore
2006-09-03Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.bjh21
2006-06-30Bring ibm4xx interrupt code up to date:freza
- generic soft interrupts (ie. use powerpc/softintr.c) - interrupt event counters (using the ones from powerpc/cpu.h:cpu_info where appropriate) - cleanup ibm4xx_intr.h, move implementation details to intr.c Convert all affected evbppc platforms. OK by simonb@, some points discussed with matt@
2006-03-08Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.lukem
Add a space between numbers and Hz unit.
2006-01-25free -> deallocchristos
unsigned -> size_t for alloc/dealloc
2005-12-11merge ktrace-lwp.christos
2005-09-04Support 'PCMCIA adapter BOX' for OpenBlockS266.kiyohara
2005-06-30We don't need a.out loadfile support for evbppc - this port has onlysimonb
ever been ELF.
2005-06-12Make disklabel(8) and fdisk(8) into "host tools " last step: builddyoung
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-03-18Add sources for OpenBlockS200 (OpenBlockS S/R) machine.shige
2005-03-18Rearrange codes for OpenBlockS266 machine.shige
2005-02-17Install spr.hbriggs
2005-01-24Add OpenBlockS266 GPIO LED Driver.shige
2005-01-21Add consinit() and md_consinit funcptr to ibm4xx/machdep.c.shige
Rename consinit() to obs405_consinit() at evbppc/obs405/consinit.c. Set md_consinit to obs405_consinit() at initppc(). Consinit fuction calls a function stored at md_consinit pointer.
2005-01-18- Copy evbppc/obs405/machdep.c to evbppc/obs405/md_machdep.c.shige
(prevent machdep.o from conflict) - Rename function: cpu_startup -> obs405_cpu_startup. - Set md-func-ptr: md_cpu_startup = obs405_cpu_startup.
2005-01-13Call com_opb_cnattach function.shige
2004-09-02Fix the rcsid.scw
2004-05-12Make compat_16_sys___sigreturn14() work again.hannken
The 4XX family has no PSL_RI bit in MSR. The 403 (explora) runs with machine check enabled.
2004-05-08Factor out W{CHAR,INT}_{MAX,MIN} into their own header file.kleink