summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev
AgeCommit message (Collapse)Author
2005-02-27Split sti softc in two structures, one device-related for regular deviceMiod Vallat
attachment and interface, one screen-attached for the real work. The attachment code is now required to decide whether sti_end_attach() is run immediately, or as a startuphook. This allows hp300 to initialize sti early, and use it as a console; hppa is functionally unchanged, as it uses the PROM console until the root device is mounted.
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-27Decide whether to force serial console on the 425e based upon the serviceMiod Vallat
switch, which is a physical switch on this model, unlike other frodo-based hp300. Service mode will now select serial console, while normal mode will select graphics console.
2005-02-20A better console test.Miod Vallat
2005-02-14Behave correctly in interrupt handlers if no tty has been allocated yet.Miod Vallat
Prevents monkeys pounding on your serial terminal from panicing your kernel before getty gets spawned on the serial ports. dcm(4) looks safe from this problem from code inspection.
2005-02-13remove race w/ improper spllowersoftclock() use; miod@ ok; not tested due to ↵Michael Shalayeff
lack of hw
2005-02-12Use cons_decl() instead of rolling our own prototypes.Miod Vallat
2005-01-27In windowmove(), put another hardware blitter synchronization beforeMiod Vallat
returning, so that rasops bursts including non-accelerated operations do not have side effects.
2005-01-24Switch hp300 wscons code to rasops, for DIO frame buffers.Miod Vallat
Features: - coloured kernel messages - color support in console (use TERM=wsvt25) - pretty Gallant wsfont, rather than the acceptable or ugly (depending upon the frame buffer) ROM font - colormap ioctl support for Gatorbox and Topcat; DaVinci and Renaissance not done due to lack of hardware and/or documentation - even more code factorization tested on hyperion, and 4/6/8bpp catseye/topcat/kathmandu hardware, by millert@ and I
2005-01-24Do not attach hilkbd as console if we are running on a serial console.Miod Vallat
2005-01-23Kill redundant or unnecessary includes.Miod Vallat
2005-01-22Honour wsconsctl display.vblank setting.Miod Vallat
2005-01-21Oops, revert changes not intended to be commited in previous commit.Miod Vallat
2005-01-21Overhaul of the pxa2x0_lcd code, to allow early (before autoconf) attachment,Miod Vallat
and collateral changes. Because this driver requires us_dma (and as such, vm services) to work, it can not be selected in consinit(). Instead, add a hook to the arm cpu_startup() which will, on zaurus, switch console from serial (selected in consinit()) to lcd. This also makes the zaurus-specific early pxa2x0_clkman() substitute code cleaner. While there, move boot -c handling later, after the glass console is set up. Tested by drahn@ and uwe@
2005-01-19Report the appropriate wsdisplay types to WSDISPLAYIO_GTYPE.Miod Vallat
2005-01-18Better colormap recovery after X11 exits.Miod Vallat
2005-01-18Colormap handling for topcat; Xwsfb now runs.Miod Vallat
2005-01-18Correct mmap() bounds check.Miod Vallat
2005-01-17Compute sti ROM size and map it exactly, rather than using a supposedlyMiod Vallat
large enough constant.
2005-01-16Simplify diofb_fbinquire(), since in the only case where we need to knowMiod Vallat
the video registers size, this value can easily be computed from the standard fb registers.
2005-01-16Since Hyperion can only attach in DIO-II space, don't bother looking forMiod Vallat
an Hyperion in internal space when looking for the console device.
2005-01-15typoMiod Vallat
2005-01-15A better diagnostic when we encounter extra scodes used by an unsupportedMiod Vallat
devices for which diodevs has the wrong span value. Before this, we would get: tiger display at dio0 scode 157 not configured internal HP-IB at dio0 scode 158 not configured internal HP-IB at dio0 scode 159 not configured Now, we will get: tiger display at dio0 scode 157 not configured dio0: warning: select code 158 is likely a span of a previous unsupported device dio0: warning: select code 159 is likely a span of a previous unsupported device
2005-01-15RegenMiod Vallat
2005-01-15Tigershark spans 3 select codes.Miod Vallat
2005-01-15Glitch in console detection code would match unsupported frame buffers withMiod Vallat
gatorbox during console initialization. Oops.
2005-01-15Kill whitespace at EOL.Miod Vallat
2005-01-15Use DIO_SIZE() macro instead of rolling our own implementation of it.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-14If we have a frame buffer configured as ``internal'', be sure to account forMiod Vallat
its out-of-DIO-range memory when sizing the external iomap.
2005-01-14RegenMiod Vallat
2005-01-14Sync with latest NetBSD diodevs (device name and ID fixes, and add 425e audio).Miod Vallat
2005-01-08Only use one set of DIO size and address defines, from <dev/dioreg.h>Miod Vallat
rather than <include/cpu.h>.
2005-01-04Slight comments cleanup.Miod Vallat
2004-12-26_HP300_INTR_H_PRIVATE is long dead.Miod Vallat
2004-12-25Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no functional change.
2004-12-22Upon SCSI command timeout, check if we have missed a DMA completion,Miod Vallat
and if so, resume to regular phase change processing (due to the way this SCSI controller works, it is not possible to rely upon DMA completion interrupts). While there, bring back openings to 2 in all cases, and move timeout_del() to spc_done(). Tested by deraadt@, millert@ and I.
2004-12-22Bring more fixes from NetBSD:Miod Vallat
- more delay in loops (1.36) - on manual xfer via TEMP register, set PCTL_BFINT_ENAB and check bus free by INTS register (1.35)
2004-12-22Do not use DMA for odd-size transfers, as the last byte will not beMiod Vallat
transferred correctly.
2004-12-16Fix logic botch in dmacomputeipl() introduced in rev 1.14.Miod Vallat
2004-09-29Reduce openings when DMA is used.Miod Vallat
2004-09-29Switch hp300 to evcount.Miod Vallat
2004-09-19constify speedtabs and make ttspeedtab() take a const struct speedtab *Michael Shalayeff
2004-08-30In the interrupt handler, if there is a DMA transfer in progress, doMiod Vallat
not busy wait for the transfer to complete at the very beginning, as this interrupt could be unrelated to the transfer; busywaiting could cause the scsi command timeout to be triggered, and the code would not recover correctly. Instead, make the DMA check simply return, leaving the "busy" flag set; and perform the usual interrupt handler duties, except for the phase change. test&ok millert@
2004-08-25Allow DMA transfers to be disabled through device flags; default is to enableMiod Vallat
DMA.
2004-08-25Set SCMD_PAD in non-integral sector DMA transfers, or the transfer neverMiod Vallat
completes; from the old driver, forgotten during the replacement here.
2004-08-21Be more paranoid about the SPC_DOINGDMA and SPC_HAVEDMA flag usage.Miod Vallat
2004-08-21Check for disabled parity in the master chip hconf register upon attach,Miod Vallat
and do not enable parity in the scsi chip in this case. From the old scsi code. Tested by millert@ and I, though none of us has non-parity capable 98658.
2004-08-21Be sure to reset the master hconf register when resetting the scsi chip.Miod Vallat
Tested by millert@ and I.
2004-08-21Missing DELAY.Miod Vallat