summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/include
AgeCommit message (Collapse)Author
2007-11-09IPL_xxx values on hp300 are logical values (although some of them happen toMiod Vallat
match the real hardware level used for them). So instead of keeping a few loose variables to store the runtime computed psr bits to use for the logical IPL levels, just keep a complete array of all psr values. Thus we can have a correct splassert_check().
2007-11-09Get rid of IPL_TTYNOBUF, it was handled exactly like IPL_TTY for years.Miod Vallat
2007-11-02replace ctob/btoc with ptoa/atop (plus the usual round_page() where needed)Martin Reindl
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-18delete comment above cpu_disklabel that is not neededTheo de Raadt
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-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-15switch m68k to __HAVE_CPUINFOMartin Reindl
help miod@, art@ ok deraadt@
2007-05-15kill __HAVE_DEVICE_REGISTER by requiring all architectures to have aTheo de Raadt
device_register() function -- even if it does nothing. reduces the cpp-based blather different between architectures idea ok'd by miod; tested on all architectures (except a few miod will need to cleanup because he has them)
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-04-10Remove unused BUS_SPACE_ALIGNED_POINTER, __BUS_SPACE_ADDRESS_SANITY andMiod Vallat
__BUS_SPACE_ALIGNED_ADDRESS.
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.
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.
2006-12-18Provide bus_space_{read,write}_raw_region_{2,4}.Miod Vallat
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-08-22Implement pmap_steal_memory() if HAVE_PMAP_DIRECT; no change except forMiod Vallat
faster uvm initialization.
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-24Use pmap_kenter_cache() for device memory mapping, instead of physacc(0Miod Vallat
which bites the dust.
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-06-04When VM_PHYSSEG_MAX is 1, use VM_PSTRAT_RANDOM for VM_PHYSSEG_STRAT, thisMiod Vallat
makes uvm_page.o smaller.
2006-03-13remove splimp.Brad Smith
ok miod@
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-02Kill enablertclock.Miod Vallat
2005-12-31Rework (once again) the console code, in order to match the PROM's logic better.Miod Vallat
When not running on serial console, the PROM will pick the ``internal'' graphics device, and if it does not exist, the DIO device with the lowest select code, and will resort to SGC devices if no internal or DIO device was found. However, the current logic would search for a certain frame buffer type first, then for its best hardware location, following the order they are listed in conf.c. By replacing gazillions of almost-exactly-duplicated frame buffer code with one single instance, which is device type-agnostic, we can match the PROM (and the bootblocks) logic again. Plus this saves a few KB of code!
2005-12-30Kill conforced, and have console devices use CN_FORCED priority instead.Miod Vallat
This means we are no longer aborting the console scans even if the final console has been found, but on the other hand makes some logic simpler; plus it will be necessary for upcoming scode vs device loop order reversal. No user-visible change.
2005-12-30Introduce symbolic constants for the magic conscode values.Miod Vallat
No functional change.
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-11-17kvtop() is not used anymore. Thanks for the fish.Miod Vallat
2005-09-27Identify HP 9000/362 and HP 9000/382 models, and attach frodo on them.Miod Vallat
Model 382 can be identified with a unique MMUID value; model 362 is told from model 360 by probing for the frodo chip. Their built-in frame buffer is not supported at the moment. Matching information derived from messages to the NetBSD mailing lists.
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-08-01Factorize cachectl() accross m68k platforms, and make the CC_ constantsMiod Vallat
public.
2005-05-01Bring raise-only semantics to splsoft* on m68k and m88k, as done elsewhere.Miod Vallat
2005-04-19nothing uses spllowersoftclock() anymoreMichael Shalayeff
2005-02-27Invoke hp300_cninit() twice, with a global variable letting theMiod Vallat
console-dependent routines know which pass they are being invoked in. The first pass is the usual console detection code. The second pass runs after uvm is initialized, and will allow devices which need VM services to run to claim the console.
2005-02-13Remove __P usage in sys that has crept back in.Jonathan Gray
'Looks fine' millert@, ok miod@
2005-02-12consinit_active is not used anymore.Miod Vallat
2005-01-15Kill whitespace at EOL.Miod Vallat
2005-01-14Switch OpenBSD/hp300 to wscons, still using on-board ROM fonts for now.Miod Vallat
Main features: - MI hil drivers, allowing live plug/unplug of devices, and the keyboard does not need to be at id 1 anymore. - SGC bus support on 4xx models. SGC frame buffers are supported too, but not as console, though you can use them as a regular glass terminal if you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4) fix to be commited. - HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed. X11 support is currently broken by these changes; X.org X11R6 support will be available very soon. Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other, older frame buffers (davinci, gatorbox and renaissance) could not been tested but should work; please report any regression.
2005-01-08Only use one set of DIO size and address defines, from <dev/dioreg.h>Miod Vallat
rather than <include/cpu.h>.
2004-12-30Kill the EIOMAPSIZE and instead, dynamically size the external I/O map,Miod Vallat
based on the DIO-II space probing results. This does not win much for now, but this will be very useful for SGC bus support (coming soon).
2004-11-26Kill __HAVE_EVCOUNT, now that all architectures provide them.Miod Vallat
2004-09-30Protect struct isr with #ifdef _KERNEL since struct evcount isTodd C. Miller
not visible unless _KERNEL is defined. OK miod@
2004-09-29Switch hp300 to evcount.Miod Vallat
2004-06-13debranch SMP, have funNiklas Hallqvist
2004-05-21std header ifdef naming conventions; ok mickey@Todd T. Fries