summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev
AgeCommit message (Collapse)Author
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-01Don't initialize d_partitions[RAW_DISK] just before callingKenneth R Westerback
readdisklabel(), since all readdisklabel()'s do that already. ok deraadt@
2007-05-26More comment typos from Diego Casati. Including winners like funtion, allmost,Kenneth R Westerback
oustside, seqencer, toghether, nessissary, etc.
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-25"boundries" -> "boundaries" in various comments. Started by Diego Casati.Kenneth R Westerback
2007-04-30HDUNIT/etc -> DISKUNIT/etc. No functional change.Kenneth R Westerback
"Looks right" millert@ "toss 'em in" deraadt@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-03-13Be more strict during probe, consider failures to get device descriptionMiod Vallat
and device status code fatal, and do not attach in these cases.
2007-02-28Use diskerr() to print error messages.Miod Vallat
2007-02-22Comment out the errmsg printf in hdgetdisklabel() again.Miod Vallat
2007-02-21Long awaiting modernization:Miod Vallat
- reset the drive and fetch its identification strings during probe, and do not attach if they don't look good. - do not store synchronous command blocks (used by hdreset) in the softc, since they are not processed asynchronously. The stack will do. - cleanup the disklabel retrieval code. - use disk_{,un}lock instead of rolling our own equivalent. - use bounds_check_with_label() in hdstrategy() instead of a stripped-down inline version of it. Tested on 7957A.
2007-02-21remove part of buf abuse and store errcnt in softc (instead of b_errcnt); ↵Michael Shalayeff
more work can be done to lower buf abuse even more; miod@ testing and ok
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-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-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-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-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-08-22Clear sti display on console attach, now that the bootloader leaves usMiod Vallat
with scribbles around; ok mickey@
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-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-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-04-20no longer failure care; ok miodTheo de Raadt
2006-04-16Introduce sti_rom_size() which will compute the size of a card's rom, andMiod Vallat
use it instead of duplicating the same logic in 3 places. ok mickey@
2006-04-15Caps Lock key is special, even in raw mode, on the Domain keyboard, exactlyMiod Vallat
like on ADB keyboards. Must have been the 80's keyboard fashion. So when we see a Caps Lock event, produce the missing event as well for acceptable behaviour. This does not allow the Caps Lock key to be used for chording, though, so document this in the manpage (honestly, Ctrl and Caps Lock being adjacent, there is no point in swapping them on Domain keyboards, but you never know).
2006-04-14Minimal support for the HP98705 ``Tigershark'' TurboVRX frame bufferMiod Vallat
(using an overlay plane only for now). Bootblocks, text console and X11 are supported.
2006-04-13Fix timeout initialization bug introduced in rev 1.8.Miod Vallat
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-12Previous fix was half-done, move the wsscreen_list array into the softcMiod Vallat
as well.
2006-03-12Move struct wsscreen_list out of the stack as on sparc.Miod Vallat
2006-02-14Fix <=4bpp buglet introduced in previous commit; non-hyperion frame buffersMiod Vallat
are addressed as if they were 8bpp, which is what we pretend we are to rasops, so we actually have to remove capabilities after rasops_init() again.
2006-01-22b_cylin -> b_cylinder; no functional change.Miod Vallat
2006-01-20b_un.b_addr -> b_data; no functional change.Miod Vallat
2006-01-19Bounds check PPIIOCSSEC argument, for a carefully choosen invalid valueMiod Vallat
could cause any ppi transfer to freeze the bus.
2006-01-01Let cons_init() and cons_init_bell() initialize the whole consdev structure,Miod Vallat
thus removing the need for drivers to initialize cn_pri to CN_DEAD when hardware probe fails.
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.