summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
AgeCommit message (Collapse)Author
2003-12-20Pass -WformatMiod Vallat
2003-12-16Don't need linear mappings here eitherJason Wright
2003-12-16don't do a linear mapping (prevents warnings on the leopard)Jason Wright
2003-12-04TyposMiod Vallat
2003-10-05If attaching a wsdisplay console causes a font switch, do not update the PROMMiod Vallat
view of the cursor position, so that it comes back to a correct location when the system is shut down.
2003-10-03Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need forMiod Vallat
separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-06-28Add RI_FULLCLEAR to the rasops flags. Accelerated drivers (cgsix, creator,Miod Vallat
pnozz) benefit from this, and this does not hurt the other drivers.
2003-06-25Let the stp driver use different bus_space_tag_t for its own device access,Miod Vallat
and for access to the pcmcia windows from the pcmcia drivers.
2003-06-24Add a "where" argument to the sparc64 interrupt code. This lets usHenric Jungheim
associate a name with each interrupt handler. This is not visible outside the kernel (yet). ok jason@
2003-06-24Revert the addition of the blanking code - it will corrupt displays after longMiod Vallat
blanking periods...
2003-06-23no need to check nintr late in the code... it's verified pretty earlyJason Wright
2003-06-23Remove some debugging cruft.Jason Wright
2003-06-23Split the stp driver into its core, and md attachment routines, and provideMiod Vallat
attachment routines for sparc and sparc64.
2003-06-20Screen blanker routine for Creator, adapted from the X11 sunffb driver code.Miod Vallat
Tested by jason@ and I.
2003-06-18When reporting unknown sbus hardware, also report the hardware class (audio,Miod Vallat
block device...) if it advertizes one. ok deraadt@
2003-06-17Extend the sunfb structure to take care of the PROM cursor positionMiod Vallat
pointers, and adapt creator to the fb api. ok jason@
2003-06-16Nuke a few more data and code superseded by the fb api.Miod Vallat
2003-06-16Adapt to the fbxxx() API.Miod Vallat
tested by matthieu@, krw@ and I on various hardware.
2003-06-16Provide the same fbxxx() api as on sparc, in order to factorize more codeMiod Vallat
and eventually share some drivers. This also brings us screen unblanking upon entering ddb, which can be really useful at times...
2003-06-12There is no sense in calling one function when you really wantHenric Jungheim
another. The bus_space code is perfectly capable of finding the parent handler itself. "heck" deraadt@
2003-06-11It is important not to forget "membar(MemIssue)". Got missedHenric Jungheim
when extracting the minimal diff for the previous iommu change. ok jason@
2003-06-11Much of the sbus, psycho, and schizo bus_dma code is the same, so let'sHenric Jungheim
call the real implementation functions directly instead of duplicating lots of code that only calls the real stuff anyway. tested by miod@ henning@ ok jason@
2003-06-11The "min" and "max" functions cast to "u_int", which can lead to surprisingHenric Jungheim
results. Use the MIN/MAX macros instead. tested by miod@ ok jason@ millert@
2003-06-04The IIi/e chips have a DMA sync register that we have been ignoring. ThisHenric Jungheim
could lead to nasty races between PIO and DMA. tested by krw@ ok jason@
2003-06-03nuke clause 3 & 4 (with henric's permission)Jason Wright
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02remove clause 3 & 4 (with fgsch permission as well)Jason Wright
2003-06-02nuke terms 3 & 4Jason Wright
2003-06-02Do not map psycho-only interrupts on sabres. Reading from undefinedHenric Jungheim
registers and mapping strange INRs is not a good idea. ok jason@
2003-05-30Fix interrupt mapping for psycho's PBM B. This should make interruptsHenric Jungheim
happy for all psycho based boxes. tested by beck@ ok jason@
2003-05-26Make sure to do the keyboard layout selection dance before wskbd_cnattach()Miod Vallat
is invoked.
2003-05-22Fix comment: IOTTE_PAMASK is 42..13 not 42..12Jason Wright
2003-05-22There's an off-by-one in the diagnostic code that can cause grief,Henric Jungheim
especially for NIC drivers that aren't careful about handling load failures. Bug reported and diff tested by Holger Burde. ok jason@.
2003-05-16move the interrupt idle stuff to the generic intr_establish functionJason Wright
2003-05-16The sparc64 proms do not map all interrupt vectors. Instead ofHenric Jungheim
trying to use the interrupt pin (or is it that the PCI function?) as the interrupt vector, this computes the vector from the PCI bus, slot, and pin. This will only change mappings on psycho-based machines (*not* sabre, i.e., IIi/e) and only for those vectors reported as nonsense INRs (INO 0-3). This should fix the mapping of non-bridge expansion cards on U60 and E450, and other psycho boxen. U30 seems to do its own thing.
2003-05-13The sab driver sometimes gets out of sync with the hardware. This canHenric Jungheim
cause the serial console to hang. ok jason@
2003-05-12use new display typesJason Wright
2003-05-11string cleaning; krw okTheo de Raadt
2003-05-11nuke debugging stuffJason Wright
2003-05-11get the offset of the config space correct, now to figure out why the rtc is ↵Jason Wright
unhappy.
2003-05-10string cleaning; ok beck dhartmeiTheo de Raadt
2003-03-27- Add support for the *CURS* ioctls (requires mapping the DAC registersJason Wright
and tweaking appropriately) - add support for VADDR->PADDR mappings expected by the X server - fix attachment error handling (it depended on bus_space_vaddr() working for non-linear mappings).
2003-03-27no sbus in hereJason Wright
2003-03-25Clear interrupts (set to IDLE) as they are established.Jason Wright
ok deraadt
2003-03-09When a sparc machine is running with serial console, the zskbd probe wouldMiod Vallat
try to use short cuts, and would not correctly initialize its channel if a keyboard is connected to it, which might have been done on purpose. It would then become impossible to run X11 on this machine afterwards. Fix this by being more cautious during the probe, at the extent of a couple of seconds if no keyboard is present. Tested by various, ok deraadt@
2003-03-06The existing IOMMU code had a rounding problem that was most noticeableHenric Jungheim
on faster systems under heavy network load. This replaces some of the unreadable iommu functions with something a little less dense and a lot less crash prone. The bus_dma function pointer/cookie handling was broken. Change them to work like the stacked bus_space drivers (where "work" is the key word). Tested my many (thanks). ok jason@ deraadt@
2003-03-05Some typos prevented STCs from being detected and the size of theHenric Jungheim
PCI configuration space is actually one "0" larger. Noticed on an E450 with all 10 PCI slots populated. ok jason@
2003-02-22don't use home grown timeval comparison when timercmp() is available; ↵Jason Wright
pointed out by henric
2003-02-22rearrange allocations and such so that this actually attaches (still panicsJason Wright
when attaching the pcibus... Still working on it =)