summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/include
AgeCommit message (Collapse)AuthorFilesLines
2021-03-15Don't put an extern variable (ppc_kvm_stolen) into vmparam.h, other instancesderaadt1-5/+1
of this file are only doing cpp #define
2021-03-11spellingjsg1-3/+3
2020-07-17Userland timecounter for macppcgkoehler1-2/+2
Tested by cwen@ and myself. Thanks to pirofti@ for creating the userland timecounter feature. ok kettenis@ pirofti@ deraadt@ cheloha@
2020-07-06Add support for timeconting in userland.pirofti1-0/+23
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time. If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture. The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel. Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file. This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now). Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others! OK from at least kettenis@, cheloha@, naddy@, sthen@
2020-06-30Remove obsolete <machine/stdarg.h> header. Nowadays the varargvisa1-3/+0
functionality is provided by <sys/stdarg.h> using compiler builtins. Tested in a ports bulk build on amd64 by naddy@ OK naddy@ mpi@
2020-05-27Retire <machine/varargs.h>.visa1-3/+0
Nothing uses the header anymore. OK deraadt@ mpi@
2019-12-05Remove clause #3 from mrg@NetBSD license.mpi1-3/+1
In May 29 2008, Matthew R. Green removed it in NetBSD: github.com/IIJ-NetBSD/netbsd-src/commit/7ea20401d535da9996394136ef ok deraadt@
2019-01-22flense more trailing whitespacephessler1-5/+5
2019-01-22remove trailing whitespace in the Laptop Package part of the license text.phessler1-4/+4
no words or punctation were modified.
2017-05-08add a BUS_DMA_64BIT flag to bus_dma on all our archs.dlg1-1/+2
this is so drivers can advertise that they can handle 64 dma addresses to the platform. it may choose to handle dmamaps differently based on this flag. tweaks and ok tom@ ok kettenis@
2016-05-04Initial support for MSI-X. Only supported on amd64 for now. I have diffs tokettenis1-1/+2
actually use this in em(4) and xhci(4), but I'm not committing those yet because we almost certainly need to save and restore the MSI-X registers during suspend/resume. However, this allows mpi@ to play with multiple-vector support in networking hardware. Requested by mpi@ ok mlarkin@, mikeb@
2016-05-03implement bus_space_read_raw_X and bus_space_write_raw_Xdlg1-1/+29
with feedback from kettenis@ fixes building a kernel with xge, which might actually work on these machines now.
2016-03-05One ddb interface is enough for ppc.mpi1-2/+1
2015-11-01Remove the definition of USRTEXT. It has no relevance outside of the non-PIEmiod1-2/+1
a.out world. ok deraadt@ kettenis@
2015-09-30Remove some trailing whitespace.krw1-4/+4
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,krw1-4/+4
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-07-17Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outmiod1-3/+3
kernels and we no longer have any.
2015-06-26move the ppc mplock implementation from macppc to powerpc.dlg1-51/+2
ok mpi@
2015-04-02One function pointer per pic function is enough.mpi1-3/+1
2015-03-31Make it possisble to disable block address translation mechanism onmpi1-3/+0
processors that support it. Due to the way trap code is patched it is currently not possible to enabled/disable BAT at runtime. ok miod@, kettenis@
2015-02-10increase min address to page size for all remaining min == 0 systems.tedu1-2/+2
not necessary, but consistent with other platforms. ok deraadt
2015-02-07Need to define APM_USER_HIBERNATE_REQ here too.miod1-1/+2
2015-01-24Implement bus_dmamem_alloc_range(9) for macppc/socppc.kettenis1-1/+10
2014-10-09revert unintentional commit unrelated to LKMtedu1-2/+2
2014-10-09remove LKM devicestedu1-2/+2
2014-07-02Remove unused mainbus intr hook abstraction.tobiasu1-31/+2
Theo approves, ok mpi@
2014-07-02Remove unused system_type and friends. Remnants from universal powerpc supporttobiasu1-12/+1
ok mpi@ deraadt@
2014-06-02Bump DFLSSIZ to 2MB to match most of the other platforms.brad1-2/+2
ok miod@
2014-04-07increase MSGBUFSIZEderaadt1-2/+2
2014-04-01Remove the almost unused abstraction around "struct firmware" and usempi2-94/+3
instead a single function ppc_mem_regions() required by the ppc pmap. ok kettenis@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.guenther1-15/+15
ok dlg@ mpi@ deraadt@
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> tomiod1-10/+1
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
2014-01-24Do not protect struct vm_page_md with defined(_KERNEL), for userland uvmmiod1-6/+1
grovellers need to know it to be able to get the right size for struct vm_page.
2014-01-23unifdef -D__HAVE_VM_PAGE_MD - no functional change.miod1-2/+1
2013-11-05Add a stub for the new MD hook needed to handle ACPI Power Resources.mpi1-1/+2
ok kettenis@
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.miod1-2/+1
2013-10-09Initialize ns_per_tick as soon as we have read the timebase from thempi1-1/+2
device-tree to restore the behaviour present before my last change. This fixes a regression seen on some Powerbooks where one of the two kiic(4) would always timeout when trying to configure the audio chip.
2013-09-13Initialize the variable guarding the clock interrupt routine aftermpi1-1/+3
calling initclocks(). This prevents hardclock() from trying to schedule a softclock interrupt before its cookie has been allocated, leading to a panic. While here grab the ticks/second value from the OpenFirmware at the same time we read the clock frequency, no need to look twice for the same node. Looks ok to kettenis@
2013-08-17Remove a bunch of unused variables and functions aging from the prempi1-3/+1
powerpc -> macppc area. ok kettenis@
2013-08-07Mimic what's done on sparc64 and parse the OpenFirmware device tree tompi1-0/+108
enumerate the pci devices. This allow us to not store the interrupt vector in the interrupt line register and to not try to attach pci devices disabled by firmware. With inputs from and ok kettenis@
2013-06-01add missing license (PD) blockjasper2-4/+4
ok guenther@
2013-04-21Unify the zs tty driver.sebastia1-2/+2
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-03-23refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedderaadt1-6/+7
to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
2013-03-17Avoid namespace pollution from <powerpc/cpu.h>.kettenis1-4/+7
ok mpi@, deraadt@, miod@, millert@
2012-12-08Fix a comment now that PowerPC 970 are recognized, make it clear thatmpi1-2/+2
changing the frequency to a quarter mode is only supported by 970MP.
2012-12-06Implement bus_space_mmap(9).mpi1-1/+2
ok kettenis@
2012-08-30Add the possibility to map DMA memory non-cached, based on the i386/amd64mpi1-13/+22
implementation. For the moment only the BUS_DMA_NOCACHE macro is required to build drm on macppc but it will be used soon. ok kettenis@
2012-08-24ansijsg1-19/+7
2012-06-26create new machine/_float.h which is namespace clean. create a newderaadt3-6/+3
MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
2012-03-26Add APM_IOC_HIBERNATEderaadt1-1/+2