summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc64/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Properly initialize the IOMMU control and status register for pyro(4).kettenis2012-08-172-3/+14
| | | | Fixes DMA problems spotted on the v445.
* Turns out interrupts for Ebus devices are wired to the *other* PCI Expres leafkettenis2012-08-172-35/+34
| | | | | on the v445 (compared to the v215/v245). Generalize the code to allow for arbitrary wirings. Makes the serial console on the v445 work.
* Don't need to worry about the ATI driver here anymore.kettenis2012-07-081-9/+1
|
* Make writes block if the message queues are full.kettenis2012-03-261-10/+14
|
* Increase the size of the message queues such that we can handle the defaultkettenis2012-03-261-3/+3
| | | | "MTU" of 4096 bytes.
* Add ioctl to write to hypervisor memory.kettenis2012-03-201-20/+51
|
* hvctl(4) is a driver for the "hvctl" Logical Domain Channel that allows thekettenis2012-03-171-0/+484
| | | | control domain to talk to the sun4v hypervisor.
* vldc(4) is a "bus" driver for Logical Domain Channels.kettenis2012-03-171-0/+141
|
* disable the fifo on m series systems by telling the driver its a 16550dlg2011-09-281-2/+2
| | | | | | | | | which stops the MI com code from probing it as a 16550a. hopefully this will prevent the awesome faults on the mainboard from locking the system up. ok kettenis@
* arithemtic -> arithmeticmiod2011-09-171-2/+2
|
* Disable MSI for now; something is still not quite right on UltrSPARC T2kettenis2011-07-251-1/+3
| | | | systems.
* Backout a bunch of my SCSI commits from c2k11. At least one of thesematthew2011-07-171-3/+3
| | | | | | is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
* First batch of converting SCSI HBAs from setting saa_targets andmatthew2011-07-081-3/+3
| | | | | | saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
* Handle pci_conf_read() faults on reading non-existent registers that resultkettenis2011-07-062-6/+34
| | | | | | | in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
* Handle pci_conf_read() faults on reading non-existent registers that resultkettenis2011-07-061-3/+17
| | | | | | | in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
* Add MSI support to pyro(4). Tested on a v215 with the on-board mpi(4).kettenis2011-07-062-5/+196
|
* Split some generic MSI code out into its own file.kettenis2011-07-063-74/+119
|
* Move pci_msi_enable() out of the vpci(4) driver into the MD pci(4) code.kettenis2011-07-062-23/+22
| | | | Soon to be used by pyro(4) as well.
* First stab at MSI support for vpci(4). Still a few rough edges, but seemskettenis2011-06-261-1/+257
| | | | to work fine on a t1k and a t5120, so let's enable this right from the start.
* Fix some inconsistencies in how we build 64-bit addresses from OF properties.kettenis2011-06-264-9/+9
|
* Implement pci_intr_map_msi().kettenis2011-06-261-2/+19
|
* machdep.kbdreset enables a shutdown by Ctrl-Alt-Del on amd64 andnaddy2011-06-242-8/+8
| | | | | | | | | | | | | | | i386. Stop abusing it on other archs for controling a shutdown by pressing the soft power button: * Add a MI sysctl hw.allowpowerdown; if set to 1 (the default) it allows a power button shutdown. * Make acpi(4)/acpibtn(4) honor hw.allowpowerdown. * Switch the various power button intercepts on landisk, sgi, sparc64 and zaurus over to hw.allowpowerdown. * Garbage collect the machdep.kbdreset sysctl on all archs other than amd64 and i386. ok miod@
* Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew2011-06-051-7/+1
| | | | | | | | | of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
* When the sparc64 iommu fails to lookup a vaddr, it prints a message andariane2011-05-182-22/+10
| | | | | | | | | | returns EFBIG. This cannot be recovered from and is usually indicative of a damaged pmap. Therefor, panic right here instead. This diff meant the difference between dropping into single-user mode versus getting a traceable panic. ok kettenis@
* do not use NULL in an integer contextderaadt2011-04-131-2/+2
|
* Do not use NULL in integer comparisons. No functional change.miod2011-04-075-14/+14
| | | | ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
* Add some delay between a successful keyboard reset sequence and a keyboardmiod2011-03-182-2/+6
| | | | | | layout inquiry, as some PS/2 converters (at least the Starview SV 125) need it to behave correctly. Found the hard way and researched by Mike Malopolski, thanks!
* Remove redundant statement to keep this in line with radeonfb(4).kettenis2011-02-211-2/+1
| | | | ok miod@
* Re-initialize acceleration engine after leaving X.kettenis2011-02-211-12/+15
| | | | ok miod@
* Detect wether a disk image is an ISO image and set the media type tokettenis2011-01-071-3/+45
| | | | | VD_MEDIA_TYPE_CD to vDisk 1.1 clients. Makes installing from a Solaris 11 Express bootable install CD work.
* Fix malloc(9) call with swapped type and flags arguments.kettenis2011-01-071-2/+2
|
* Add support for the vDisk 1.1 protocol. Improve Solaris vtoc/disklabelkettenis2011-01-061-33/+208
| | | | | | support and implement VD_OP_SET_VTOC. This makes Solaris actualy run on top of an OpenBSD control domain. Installing from CD needs some further tweaking but a network install will probably work. OpenBSD clients are still happy.
* Solaris insists on getting the right sequence numbers in DRING_DATA messageskettenis2011-01-061-2/+2
| | | | and it seems we were off by one.
* It is actually possible to run CoolThreads servers with a graphics console,kettenis2011-01-041-13/+29
| | | | so don't assume vcons(4) always is the console.
* XVR-300 is boring. For starters it has a very dull looking OpenPROM logo.kettenis2011-01-041-2/+3
| | | | And radeonfb(4) just works on it.
* More changes to pacify the Solaris virtual disk client. Implementkettenis2011-01-021-101/+304
| | | | | VD_OP_GET_VTOC and VD_OP_GET_DISKGEOM. Factor out the code to ACK descriptors and fix a bug copying in/out a descriptor that crosses a page boundary.
* Move away from using fixed-sized descriptors and fill in some missing bitskettenis2011-01-021-14/+62
| | | | | in the messages that ACK descriptors. Makes OpenSolaris virtual disk clients much happier and able to boot from a bootable automatic installer cdrom.
* Use the session ID passed to use by the virtual disk client, and pass backkettenis2011-01-021-2/+12
| | | | | | a bit more information to the client during the attribute negotiation phase. Gets us past the attribute negotiation phase against an OpenSolaris virtual disk client.
* Declare ourselves to be a virtual disk server during the version negotiationkettenis2011-01-021-1/+2
| | | | | phase. Gets us past the version negotiation against an OpenSolaris virtual disk client.
* Corretctly return 0xffffffff for the returned LBA if the disk is too largekettenis2011-01-011-3/+3
| | | | for the READ CAPACITY command.
* Implement READ CAPACITY (16).kettenis2011-01-011-2/+22
|
* Clean up how we print the sbus(4) clock speed. Purely cosmetic.kettenis2010-12-261-2/+2
| | | | ok miod@, deraadt@
* PCIe based sparc64 machines have always supported access to the extended PCIekettenis2010-12-052-4/+4
| | | | | | | configuration space. So on pyro(4) and vpci(4) return the size appropriate for the extended PCIe configuration space. ok miod@
* Introduce a new pci routine, pci_conf_size(), which returns the size of amiod2010-12-045-5/+47
| | | | | | | given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
* In gfxp_copyrect(), make sure that the - possibly negative - coordinate fields, which are supposed to be 16 bit values, are properly masked to avoid pollutingmiod2010-11-261-2/+2
| | | | | other fields. From NetBSD; ok kettenis@
* removed slot argument of function pckbc_cnattachshadchin2010-11-231-3/+2
| | | | | | because it is always PCKBC_KBD_SLOT ok krw@, miod@
* Replace snprintf(foo, sizeof foo, "%s", ...) with strlcpy. ok deraadt@ krw@miod2010-11-117-16/+14
|
* Force openings to 1 for devices that can't do tagged i/o, i.e. morekrw2010-10-121-1/+2
| | | | | | | | | | | | | | than 1 i/o active at once. This reduces the chances that concurrent i/o's for such devices will confuse the device or the adapter code. It also eliminates a reason for adapter code to maintain its own queues. Tweak all drivers that fake INQUIRY results to set the SID_CmdQue flag, thus continuing to claim to be able to do tagged i/o. Positive feedback from matthew@ and marco@ for an earlier version. ok dlg@
* Introduce a DKF_NOLABELREAD flag, which is used by a device to preventjsing2010-09-231-1/+2
| | | | | | automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
* All users of physio(9) now pass NULL as the buf pointer argument, somatthew2010-09-221-3/+3
| | | | | | | no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@