summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev
AgeCommit message (Collapse)Author
2008-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-10-17Remove clauses 3 and 4 from NetBSD license.Okan Demirmen
from ray; ok ray, deraadt
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-18Protect dma operations with splvm instead of splhigh, that's faster thanMiod Vallat
splbio and won't delay clock interrupts.
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
ok thib beck art
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
biowait() reads that do *not* come from the buffer cache - we use the B_RAW flag to identify these at art's suggestion - since it makes sense and the flag was not being used. this just flags all these buffers with B_RAW - biodone already ignores returned buffers marked B_RAW. ok art@
2008-05-01regenMiod Vallat
2008-05-01The built-in frame buffer in models 362 and 382 actually comes in differentMiod Vallat
flavours. Add another frame buffer ID to recognize it, so that it gets skipped correctly. I am quite sure it has an SGC PROM in addition to the DIO PROM, but I don't have the hardware to check...
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-11-25spelling fixes, from Martynas Venckus;Jason McIntyre
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-06-21Brace got lost in rev 1.51.Miod Vallat
2007-06-20These drivers were abusing b_cylinder to store device-specific informationMiod Vallat
in strategy(), and were reusing it in start(). I first considered introducing a b_rawblkno field in struct buf, as has been done in NetBSD, to stop this abuse. However, it does not cost more to simply move the device-specific ``was-b_cylinder'' computation to the start() routine. Plus we get type fixes (daddr64_t) for free, although this does not really matter for these pedro-sized devices. Thus we do not need to grow struct buf for these devices which really ought to live in your Attic (and my machineroom, of course). hp300 HP-IB tested, vax mfm not, but the logic is the same.
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-08all drivers should spoof version 1 labelsTheo de Raadt
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.