summaryrefslogtreecommitdiff
path: root/sys/arch/sandpoint/include
AgeCommit message (Collapse)Author
2021-04-15sandpoint has its own module_init_md(). So, do not compile inrin
that function in powerpc_machdep.c.
2021-04-01Whitespace: #define<tab>simonb
2018-07-15Retire ipkdb entirely. The option was removed from the config filesmaxv
yesterday. ok kamil christos
2018-07-12Remove the kernel PMC code. Sent yesterday on tech-kern@.maxv
This change: * Removes "options PERFCTRS", the associated includes, and the associated ifdefs. In doing so, it removes several XXXSMPs in the MI code, which is good. * Removes the PMC code of ARM XSCALE. * Removes all the pmc.h files. They were all empty, except for ARM XSCALE. * Reorders the x86 PMC code not to rely on the legacy pmc.h file. The definitions are put in sysarch.h. * Removes the kern/sys_pmc.c file, and along with it, the sys_pmc_control and sys_pmc_get_info syscalls. They are marked as OBSOL in kern, netbsd32 and rump. * Removes the pmc_evid_t and pmc_ctr_t types. * Removes all the associated man pages. The sets are marked as obsolete.
2016-10-19Added MSI/MSI-X and interrupt_distribute(9) support for powerpc.nonaka
2016-10-18add isa_intr_establish_xname() to MD isa headers so that it can be usedjdolecek
by MI drivers
2015-12-21Add mips fenv.h (From FreeBSD)christos
2015-12-20new powerpc fenv.hchristos
2015-09-30Pass a name and flags precisely describing the current model and itsphx
features via a new bootinfo node (currently Synology only). This allows for example the configuration of model-specific temperature I2C sensors and fan control. Support for the Synology DS207 and DS209 drive LEDs and wait until the 2nd drive is completely powered up.
2014-08-06Consistently define WARN in a way that passes format string checks, i.e.joerg
always uses the same number of arguments as given in the format string.
2014-07-23Rename sljitarch.h to sljit_machdep.h.alnsn
2014-03-29make pci_intr_string and eisa_intr_string take a buffer and a lengthchristos
instead of relying in local static storage.
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-01-14New device nhpow(4) to support the onboard GPIO pins on a NH230/231 board forphx
buttons, powerdown, reset, LEDs and fan control. It attaches gpio(4) for its 8 pins on demand.
2011-12-17Added NOR flash driver, using nor(4) and flash(4).phx
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-17Switch more PowerPC ports having PCI support to new-style <sys/bus.h>.dyoung
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-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-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-18struct device * -> device_tmatt
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-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-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-11add btinfo_modulelist for MODULAR component loading.nisimura
2010-11-13sys/device.h is not suitable for such low-level definitions.uebayasi
2010-07-17Remove obsolete __HAVE_GENERIC_SOFT_INTERRUPTS,tsutsui
which is mandatory since 2007/07: http://mail-index.NetBSD.org/source-changes/2007/07/14/0039.html
2010-05-20Netboot generates a BTINFO_PRODFAMILY boot-info which specifies the familyphx
name of the board. The kernel uses this information to make a new sysctl entry called machdep.prodfamily.
2010-05-18Recognize a network boot device by its PCI tag, even when it is not directlyphx
attached to a PCI bus, but to a controller chip (e.g. sk(4) on skc(4)). Extended BTINFO_NET to usa a PCI tag as well, now since it works.
2010-05-16Make netboot generate a BTINFO_NET bootinfo node for the Synology sk(4) NIC.phx
It will pass the MAC address, which is read from Flash ROM, into the kernel. The kernel creates a "mac-address" device-property, which is used by sk(4), when given, before reading the MAC from its EEPROM.
2010-04-24Support 64-bit imask for powerpc/pic.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).
2009-08-19isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t.dyoung
2009-08-19Define isa_detach_hook().dyoung
2009-08-19- use options PIC_MPCSOC to replace PIC_OPENPIC.nisimura
2009-03-14Remove all the __P() from sys (excluding sys/dist)dsl
Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2008-02-14Don't include <powerpc/oea/pmap.h>, use <powerpc/pmap.h> instead.he
Discussed with garbled@, fixes build problem for LKMs.
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-12-11- have machine/cpu.h and sys/device.h references here.nisimura
2007-10-27- copy intr.h from prep and make mods.nisimura
- ANSI-fy pci_machdep.c
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-02-16Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch calloutsad
via a soft interrupt. In the near future, softclock will be run from process context.
2007-02-09Merge newlock2 to head.ad
2006-12-21merge yamt-splraiseipl branch.yamt
- 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.