summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/include
AgeCommit message (Collapse)Author
2003-06-23bus_space_*_raw*_1() do not exist; drahn@ okMichael Shalayeff
2003-06-09more 3/4 cleanup for pefoTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-07Improved workaround for cardbus support on macppc. This allows mappings toDale Rahn
be put in the cardbus register which really work instead of crashing the machine. if_dc @cardbus now works, xl@cardbus will configure, but does not work properly (endian?) wdc should work fine, but has not been tested recently.
2002-09-15backout prematureTheo de Raadt
2002-09-15KNFTheo de Raadt
2002-09-06Serial console support for macppc. Serial console will work if the modemDale Rahn
has been replaced with a serial port adapter on any machine that has a real serial port internally. This will also power on the internal modem for keylargo based machines (tested on original PBG4) when the serial port is open. ok miod@
2002-08-20Add a pseudo openfirmware console device for early debugging purposesDale Rahn
and to allow UKC to work properly. ok miod@
2002-07-23Remove unused files now that powerpc archs use link_elf.hDale Rahn
2002-07-23Cardbus/pcmcia support for macppc. parts borrowed from NetBSD, and otherDale Rahn
portions of the tree.
2002-07-10proper cdev_decl(crypto) and no private protosMichael Shalayeff
2002-06-11Add missing bus_space_read_raw_region_X bus_space_write_raw_region_X APIs.Dale Rahn
2002-06-08One ddb to rule them all.Miod Vallat
Move the ddb files form macppc/macppc to powerpc/ddb, so that mvmeppc can benefit from the better ddb that was in macppc. db_interface.c is left as an md part.
2002-06-08Factorize common parts (cache-related stuff).Miod Vallat
ok drahn@
2002-06-07Move more function prototypes to <machine/conf.h> as cdev_decl(foo)Miod Vallat
for safety.
2002-05-18Rename the MD db_stack_trace_cmd to db_stack_trace_print. Add an argumentArtur Grabowski
that specifies which printf funciton it should use. Implement db_stack_trace_cmd in MI code. Thanks to miod@ for all the tests.
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-13Complete rewrite of the powerpc pmap handling, Instead of keepingDale Rahn
the spill list for each PTEG, the V->P translations are stored in trees for each pmap. All valid kernel mappings are preallocated in 1-1 memory so that tlb spill/loads for kernel accesses can be looked up while physical, user mappings are not guaranteed to be 1-1 mapped, thus the kernel must go virtual to look up user mappings. While this is more expensive, the tree search is much lower cost than the long linked list search. Also on each pmap_remove() it was necessary to search the linked lists for each possible mapping, now it just looks up the entry in the tree. This change gives a 25-36% speedup in 'make build' time. What was around 2:50 is now around 1:55 on a 733MHz G4. This change causes a likely existing bug to appear quite often, it deals with the segment register invalidation in kernel mode. Because of that problem, currently this change limits the physical memory used to 256MB. This limitation will be fixed soon, it is not an error in the pmap code. * Effort sponsored in part by the Defense Advanced Research Projects * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F30602-01-2-0537.
2002-03-07Clean up BUS_DMA_* flags, and make sure all arch's define:Jason Wright
BUS_DMA_READ, BUS_DMA_WRITE, and BUS_DMA_STREAMING
2002-02-23Add aperture driver support for macppc, and also place writing to /dev/pciMatthieu Herrb
under the control of machdep.allowaperture. This allows to run the X server on macppc with securelevel=1, given that machdep.allowaperture is != 0. OK deraadt@
2002-02-17Patch from Daniel Lucq <daniel@lucq.org>Mats O Jansson
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@
2002-01-07Paranoia on my part, do not let the condition exist where kvm space couldDale Rahn
be claimed by the pre kvm init stealing process and kvm.
2002-01-07On cache flushing, if start is not cacheline aligned, add to the lenghtDale Rahn
to make sure the whole region is flushed. from conversation with pefo.
2001-12-14gem wants BUS_DMA_READ define.Dale Rahn
2001-12-12add /dev/crypto supportJason Wright
2001-12-05Put back to the old KMEM size, until we can increase this and have it workDale Rahn
on large memory machines.
2001-12-05VM_KMEM_SIZE no longer needed.Artur Grabowski
2001-12-05make nkmempages dynamic based on memory. okay art@ from netbsd:Niels Provos
date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
2001-11-30Now that pmaps can have vm_page_md, make pmap_physseg optional.Artur Grabowski
2001-11-06Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,Artur Grabowski
instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
2001-11-06Kill vm/vm_param.h, move it to uvm/uvm_param.hArtur Grabowski
2001-11-05Raise the shared memory size to 16MB from 4MB. 4MB is too small for currentDale Rahn
memory machines and current program demands.
2001-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-10-03Add $OpenBSD$ tags which were removed when this code was copied.Dale Rahn
2001-10-03Add missed file when committing apm for macppc.Dale Rahn
2001-10-03apm support for macppc. This is not fully implemented, sleep modesDale Rahn
and power event are not handled, however it is enough support to poll the battery/AC/charging states of the system. Code by Alexander Guy.
2001-09-28Commit a ugly, widespread change.Dale Rahn
Problem: no MI soft interrupts. Bad solution: use old hack that was never fully implemented to hook in zs soft interrupts. This allows zs to work almost reasonably. Still has issues with getty (carrier detect) and modems on newer machines (power control). Post 3.0 this must be cleaned up with real soft interrupts.
2001-09-28remove dups w/ conf.hMichael Shalayeff
2001-09-26zs driver, from different srcs, including netbsd/macppc and out mac68k/zs, etc.Michael Shalayeff
2001-09-22Remove more old, dusty, unused defines.Miod Vallat
2001-09-15pass the dma tag to obio; drahn@ okMichael Shalayeff
2001-09-10mickey, at least compile them first.Dale Rahn
paddr_t should be protected with _LOCORE
2001-09-10move vtophys proto into a port-area in order to remove it for macppc ↵Michael Shalayeff
eventually; drahn@ ok
2001-09-05kvm space is limited by by pmap_virtual_space, Do not play with theDale Rahn
kvm min and max addresses.
2001-09-01The "powerpc" port which has supported the newer Apple Macintosh powerpc basedDale Rahn
is being renamed to macppc. This is to allow sharing of common code between different powerpc base platforms. Most of the work involved in the renaming process was performed by miod@ Files moved from powerpc/include to macppc/include Some files were not "moved" but wrapper files were created which include the powerpc/include version. Several of the powerpc/include files where changed to reflect that they are POWERPC_* not MACHINE_*.