summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
AgeCommit message (Collapse)Author
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 =)
2003-02-21Print the pa not ldxa(pa)Jason Wright
2003-02-21- kill several unnecessary static'sJason Wright
- fix debugging code so it doesn't generate crashes itself
2003-02-17Add support for the Sun Enterprise 450Henric Jungheim
Reduce the size of a GENERIC kernel by ~190k Remove the nasty pointer/bus_space_handle_t casts Adds debug bus_space code including the ability to trace bus operations (it actually works now). The following rules are now followed (and verfified by the debug code): 1. A "bus_space_handle_t" may only be used with the "bus_space_tag_t" that created it. 2. Only "bus_space_map()" may create "bus_space_handle_t"s. 3. A "bus_space_handle_t" may not be modified after it has been created (other than being destroyed by "bus_space_unmap()"). Thanks to help from mcbride, marc, jason, drahn, to anyone that might have slipped my mind at the moment. ok jason@, deraadt@
2003-02-11be consistant on Hz vs hzMichael Shalayeff
2003-02-10unneeded defnsJason Wright
2003-01-13Don't use a global variable to determine which pci_conf* function to call,Jason Wright
store function pointers in the pci_chipset_tag_t (ie. fix an ugly hack I did during the hackathon last year).
2002-12-25Initialize color palette from rasops settings (from sparc) rather thanMiod Vallat
from incorrect values, and restore it after X11 use (from macppc).
2002-12-22Do not attempt to select keyboard layout until it has been determined fromMiod Vallat
the keyboard (oops). This also fixes a bad interaction with wskbd_cnattach that would hose the underlying sabtty device.
2002-12-10Register as the "std" wscons device, not "sun". This is consistent with otherMiod Vallat
frame buffers, and produces less confusing dmesg output.
2002-12-10Fix spurious \n in dmesg outputMiod Vallat
2002-12-03Use bus_space_vaddr() instead of checking the mapping directly (this willJason Wright
be necessary soon); from henric@
2002-12-02Skip the ffb0, ffb1, pcia/slot2 (for psycho), and pcia/slot3 (for psycho)Jason Wright
interrupt map matches; from FreeBSD.
2002-11-29Upon detection of an international Sun keyboard with a recognized layout,Miod Vallat
attach it with the appropriate keymap table, rather than the default KB_US table. If this is not the expected behaviour, users can still revert to US layout via "kbd us" or "wsconsctl -w keyboard.encoding=us". As the installation media uses the prom console, which will honor the international keyboard layout, this will definitely help users with international keyboards and fancy characters in their passwords... Note that there is still some Sun keyboard tables missing at the moment.
2002-11-09Instead of relying on uvm_useracc(), get a false sense of security, andMiod Vallat
do not check copyin() result, take care and properly handle copyin() failure. This was not harmful, but a bit more correctness never harms.
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-10-07this removes the functionality of adding allocatedMichael Shalayeff
pages into the queue already containing allocated pages. breaks i386:setup_buffers() because of this.
2002-10-06No more need to initialize the result list before uvm_pglistalloc.Artur Grabowski
2002-10-04Aasking to load an already loaded map is not a "warn and pray" kinda thing.Jason Wright
2002-09-23Fix console determination; based on discussion in port-sparc64@netbsdJason Wright
2002-09-17I sense too much cut 'n paste.Artur Grabowski
Allow this to build with DEBUG.
2002-09-15Fix color choices to match wsemul_sun requirements.Miod Vallat
Tested by and ok matthieu@
2002-09-10Remove some debugging code, KNF, and fix encoding selection.Jason Wright
2002-09-10Register more wsscreen properties to take advantage of wsemul_sun changes.Jason Wright
2002-08-19KNF (4 char continuations)Jason Wright
2002-08-19Take advantage of rasops.updatecursor to keep the prom cursor up to dateJason Wright
2002-08-19From NetBSD:Jason Wright
-Fix some corner cases in bus_dmamap_load_mbuf(). From Takeshi Nakayama <tn@catvmics.ne.jp> -Fix off-by-one error in iommu_dvmamap_load_raw() where if a DMA segment has just one byte on a page the page is never mapped into the IOMMU.
2002-08-16remove debugging codeJason Wright