summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/include
AgeCommit message (Collapse)Author
2007-11-30Define IPL_VM on platforms which lack it.Miod Vallat
2007-11-02replace ctob/btoc with ptoa/atop (plus the usual round_page() where needed)Martin Reindl
2007-09-10Pass a real ipl level to add_nubus_intr(), and make sure the interruptMiod Vallat
handler is invoked with spl raised to the given level, otherwise all nubus interrupts are processed at level 2.
2007-07-29It turns out that VIA2 always interrupts at level 2, and IPL_BIO is always 2Miod Vallat
too, so we can make these constants.
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
to support hotplug media on most architectures. disklabel setup and verification done using new helper functions. Disklabels must *always* have a correct checksum now. Same code paths are used to learn on-disk location disklabels, to avoid new errors sneaking in. Tested on almost all cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
2007-05-30More cpuinfo vs _KERNEL fallback.Miod Vallat
2007-05-15switch m68k to __HAVE_CPUINFOMartin Reindl
help miod@, art@ ok deraadt@
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-03Simple single-processor mutex implementation, simpler than the MI code byMiod Vallat
use of MD spl code bowels. No functional change.
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-09-22Get rid of (unused) MACH_CLASSP580 and flatten MACH_CLASSxxx values.Miod Vallat
2006-09-17Crank VM_PHYSSEG_MAX to 8; while we do not expect more than 2 ranges in theMiod Vallat
worst case, the Booter will happily feed us up to 8 ranges, so we have to get prepared.
2006-07-11Remove duplicate prototypes already in <sys/systm.h>Miod Vallat
2006-06-30Shrink internal iomap to 256KB, it's enough for all the mappings we'll needMiod Vallat
in it.
2006-06-24Use pmap_enter_cache() instead of physacc() in bus_mem_add_mapping(), and letMiod Vallat
physacc() die. As a bonus, kvtop() dies too.
2006-06-11Move common prototypes to <m68k/{cpu,param}.h> instead of incompleteMiod Vallat
declarations in <machine/{cpu,param}.h> and elsewhere.
2006-06-11Factorize spl handling functions and software interrupt routines betweenMiod Vallat
m68k-based platforms.
2006-04-16Remove bus_space_{read,write}_stream and bus_space_copy_region methods, whichMiod Vallat
are not used in OpenBSD.
2006-03-13remove splimp.Brad Smith
ok miod@
2006-01-24Remove unused fields from struct mac68k_machine.Miod Vallat
2006-01-22Add bus_space_vaddr() and use it instead of accessing private bus_spaceMiod Vallat
fields. No functional change.
2006-01-22Minimal iop code to set the serial ports to compatible mode automagically,Miod Vallat
so that it is not necessary to change settings from MacOS before booting into OpenBSD; from NetBSD.
2006-01-18Factorize akbd and ams drivers between mac68k and macppc; while there, startMiod Vallat
moving out common adb code as well, and merge adb_direct.c into adb.c to simplify external header files. No functional change; more cleanups to come.
2006-01-17Remove unused ``stride'' bus_space internal functionality; nothing needs it.Miod Vallat
2006-01-13Sync OSS code with NetBSD; supports poweroff now.Miod Vallat
2006-01-13Remove unused bad{,b,w,l}addr.Miod Vallat
2006-01-13Remove the Mac Rom Glue code completely. With the ADB ``direct'' code beingMiod Vallat
used by default, and since all PRAM accesses are either directly fiddling with VIA registers or through ADB commands, the MRG code has no reason to stay. This means the kernel is now not running unknown PROM code anymore.
2006-01-06Merge machine/ansi.h and machine/types.h into machine/_types.h andTodd C. Miller
rename the types using the __ protected namespace (e.g. __size_t). Idea from FreeBSD.
2006-01-04Import NetBSD's direct adb code on mac68k, switching to real keyboard and mouseMiod Vallat
drivers, and to wscons as the console; a few parts borrowed from OpenBSD/macppc as well. Currently only working with displays configured in 1bpp or 8bpp modes; this limitation will be worked on ASAP. Tested by claudio@ kettenis@ martin@ nick@ and I on various models. X11 changes coming soon.
2006-01-02Merge enablertclock() in cpu_initclocks(), kill unused disablertclock(), andMiod Vallat
remove a wrong comment aboute startrtclock() being invoked twice.
2006-01-01Enable A/UX style interrupt routing on non-AV Centrises and Quadras, gives usMiod Vallat
smarter spl levels and the clock drift is reduced; adapted from NetBSD.
2005-11-24add lint-specific hacks. at the same time, clean out a lot of ancientTheo de Raadt
cruft for old compilers and environments. there may be a 2nd round of polishing after this; ok miod and others
2005-09-27missing pieces for RBV video handlingMartin Reindl
from NetBSD
2005-09-12Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bitMiod Vallat
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
2005-09-12- Add byte-swap and stride options to bus_space.Martin Reindl
- Add bus_space_*_stream_N functions - Replace PGOFSET with m68k_trunc_page() or m68k_page_offset() from NetBSD, testing help by otto@
2005-08-07a bunch more ADB handler IDs, will be necessary in the futureMartin Reindl
from NetBSD
2005-08-06overhaul the grf driver:Martin Reindl
- Simplify grfmv_phys() to work like grfiv_phys(), and eliminate the second argument to both, as we don't use it anyway. - Handle fbbase and fboff consistently throughout. - Eliminate grfaddr() by pulling it into grfmmap(), which is the only place it was used, previously. - grfmap() now gets the physical address of the framebuffer from the appropriate driver, rather than try to compute it by itself. Be careful with aligning the base to a page address and increase the length of the mapped region appropriately. - Store the PA of the framebuffer in the softc. This eliminates the need for the sc_phys callback; we can just store the PA in the grfbus attach args, rather than a function pointer, which simplifies the code nicely. - Disable Valkyrie interrupts on the Quadra 630 - New and improved console framebuffer initialization and autoconfig. This resolves a great many issues, including Performa 58x interrupt handling and offset displays on some models. - Remove unused grf ioctls - Some KNF and other minor things help and ok miod@ from NetBSD
2005-08-01Factorize cachectl() accross m68k platforms, and make the CC_ constantsMiod Vallat
public.
2005-07-31No need to #include <machine/pcb.h>; tested martin@Miod Vallat
2005-07-23vm_offset_t -> vaddr_tMartin Reindl
2005-07-18PB190 Gestalt IDsMartin Reindl
2005-05-01Bring raise-only semantics to splsoft* on m68k and m88k, as done elsewhere.Miod Vallat
2005-04-27Replace the last user of pmap_map() with an inline version, and kill pmap_map()Miod Vallat
for good.
2005-02-06- get rid of unused codeMartin Reindl
- KNF - typos - sync some parts with NetBSD input and review by miod@
2005-01-11rename via_shutdown() to via_powerdown() and remove unused prototype toMartin Reindl
shrink diff to NetBSD ok miod
2004-12-27unusedMartin Reindl
ok miod@