summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
AgeCommit message (Collapse)Author
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.
2007-01-28optimize m68k writeback():Miod Vallat
- it can really only be invoked from trap(), not from other userret() callers, so it is safe to hardcode its docachepush parameter to 1. - use pmap_kenter_pa()/pmap_kremove() for the temporary mapping instead of pmap_enter()/pmap_remove(). optimize m68k userret(): - define PROC_PC for m68k systems. - only check want_resched when processing T_ASTFLT traps. - provide two version of userret(), one which will also invoke writeback() on 68040 if required, which is only invoked from trap(), and regular userret(). This speeds up system call returns.
2007-01-14Move the isa bridge probe from isabr to frodo, so that frodo only attemptsMiod Vallat
to attach isabr if it really exists. This gets rid of ``isabr0 not configured'' messages on 425e.
2007-01-11Allow sti_attach_common() to return an error code, and do not fall intoMiod Vallat
sti_end_attach() if an error has occured. ok mickey@
2007-01-07Trim include files list.Miod Vallat
2007-01-07Get rid of PROM font-related defines.Miod Vallat
2007-01-07Skip optional dash when parsing the layout code.Miod Vallat
2007-01-07Hardcode DIO_SCMAX if kernel is built without model 320 support.Miod Vallat
2007-01-06Add commented out ISA entries.Miod Vallat
2007-01-06Preliminary support for the hp300 single ISA slot found in 4xx `t' models.Miod Vallat
Everything works well but interrupts, where no two devices causes the frodo chip to behave in the same way... (polling will work nicely)
2007-01-06Turn bus_space_tag_t into real structures containing a bunch of functionMiod Vallat
pointers, to be used for the various bus_space operations. intio devices no longer need to pass an intiobase-relative address to bus_space_map.
2007-01-06Propagate bus_space_tag_t through device attachment args structures, ratherMiod Vallat
than having them build their own. No functional change.
2006-12-18Change sti attachment to pass an array of base addresses for the sti regions,Miod Vallat
instead of using the rom mapping for region #0 and the device mapping for region #1. This will allow sti devices on which regions may be relative to different origins to attach (to be used very soon). ok mickey@
2006-12-18Provide bus_space_{read,write}_raw_region_{2,4}.Miod Vallat
2006-11-29Add an unpack_attr function to struct wsdisplay_emulops, to match theMiod Vallat
existing alloc_attr function. This allows rasops_unpack_attr to be kept private to rasops, yet available to the screen drivers.
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
confusing when trying to attach scsibus to a hba, since it is really meant for attaching scsi devices to scsibus. ok deraadt@ marco@
2006-10-29Don't need to 'goto done;' when 'done:' is the next line.Kenneth R Westerback
2006-10-20Declare loop variable so this compiles.Jonathan Gray
ok krw@
2006-09-24Bring hp300, mac68k and mvme68k disklabel initialization code intoKenneth R Westerback
line with all other archs by initializing partitions up to RAWPART the same way. Should be no functional change. ok martin@ miod@
2006-08-22Clear sti display on console attach, now that the bootloader leaves usMiod Vallat
with scribbles around; ok mickey@
2006-08-22Implement pmap_steal_memory() if HAVE_PMAP_DIRECT; no change except forMiod Vallat
faster uvm initialization.
2006-08-17No need for divsi and friends, yetMiod Vallat
2006-08-17Check d_secpercyl in all readdisklable() functions, and have all ofKenneth R Westerback
them return 'invalid geometry' when d_secpercyl == 0. While there move the check to a consistant location (after the check of d_secperunit) and use a consistant idiom (i.e. some readdisklabel()'s have no 'done' label). prodded by thib@ after a bad macppc experience. ok deraadt@
2006-08-17Setup the transparent translation with writeback cache instead ofMiod Vallat
writethrough on 68040.
2006-08-17Large cleanup of the bootblocks, including ansi protos and de-register,Miod Vallat
removal of unused hil stuff, oversimplification of the stand ite code (including dio frame buffer common code factorization), and sgc frame buffer console support, at last. This shaves ~1800 bytes off SYS_UBOOT and ~500 bytes of SYS_CDBOOT despite the addition of the sgc code. Tested on dca, hyper, topcat and sti.
2006-08-13Let the domain keyboard work on models 362 and 382 as well.Miod Vallat
2006-08-13Oops, let HIL keyboards work again in the boot blocks.Miod Vallat
2006-08-12Setting d_secsize to DEV_BSIZE (or 1 << DEV_BSHIFT, or 512) and thenKenneth R Westerback
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is a waste of a few ops. And p_size should be in sectors anyway. Just set RAW_PART's p_size to d_secperunit to make usage consistant across the tree. Should be a no-op.
2006-08-11Let the windowmove() callbacks return whether they could perform the operationMiod Vallat
or not, so that we can always feed them the complex operations before falling back to rasops; and then topcat can perform coloured solid fills in erase{cols,rows}.
2006-08-10Try and determine the keyboard layout from its identification string;Miod Vallat
no international keyboards to check I parse the right part of the string, at least domestic keyboards are not affected; hinted at by the old X11R5 server.
2006-08-09Use the blitter again for the cursor on non-mono frame buffers.Miod Vallat
2006-08-05Since the maskbits code only gets invoked with RR_COPY or RR_CLEAR thoseMiod Vallat
days, simplify and inline more of it, to avoid doing unnecessary dest and/or source loads. A copy of the old maskbits.h is moved to stand/ as the ite code there needs the complete RR_ code.
2006-08-05Prefer rasops {copy,erase}rows routines for non-accelerated 1bpp frame buffers,Miod Vallat
as they are slightly faster.
2006-07-27Compile all kernels with -Wstack-usage-larger-than-2047, now that allMiod Vallat
offending code has been taken out and shot. ok deraadt@
2006-07-0968020-based hp300 systems are not supported anymore now. If you still useMiod Vallat
any, I'll suggest you buy a boat so that they can be recycled as boat anchors.
2006-07-09If running on a 68030 or 68040 system, use the transparent translationMiod Vallat
registers to program an 1GB untranslated window over the physical memory, and use it to define __HAVE_PMAP_DIRECT for faster pool operation.
2006-06-30When allocating the default rasops attribute, it is not necessary to useMiod Vallat
non-zero parameters on a color display as long as we want white on black; this was inherited from sparc but this is not necessary on these platforms.
2006-06-24Use pmap_kenter_cache() for device memory mapping, instead of physacc(0Miod Vallat
which bites the dust.
2006-06-23consistantly count context switches on exit; miod@ okMichael Shalayeff
2006-06-16If we are configured for glass console but no keyboard is plugged, we runMiod Vallat
with the dummy wscons cngetc() which immediately returns zero. Since a cngetc() call is the only difference between halt and reboot, this caused the former to behave as the later. Fix this by spinning until cngetc() returns a non-zero value.
2006-06-16Fix range check in sgc_slottopa().Miod Vallat
2006-06-16Line 0 is not wired, thus illegal for use in frodo_intr_establish().Miod Vallat
2006-06-11Clean the various cache and TLB invalidation function, arch by arch:Miod Vallat
- [DI]C{FL,PL,PP} and DCFA are only called on 680[46]0 systems and are identical on these platforms, so don't bother checking for the MMU type. - TBIAS is on 68060 codepath only. - DCIAS, PCIA and TBIA are specific to some platforms and do not need to be implemented everywhere.
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.