summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
AgeCommit message (Collapse)Author
2009-05-12Add padding to ATTR_INFO message structure; OBP seems to insist on itMark Kettenis
being there.
2009-05-12Add some code for doing handshakes the other way around.Mark Kettenis
2009-05-12Make reserved member of protocol struct start with underscore.Mark Kettenis
2009-05-10Remove a dead variable and some unneeded returns.Mark Kettenis
2009-05-10Handle devices with multiple ports.Mark Kettenis
2009-05-10Add vcc(4) and vcctty(4). The vcc(4) driver is a driver for the "VirtualMark Kettenis
Console Concentrator" found on the control domain of sun4v systems. It manages the connections to the consoles of guest domains which are exposed as terminal-like devices through vcctty(4).
2009-05-04type pedantry.Owain Ainsworth
the type we bind to an iommu or a GART is paddr_t, by definition, on the other hand, the type we get out of it is not a vaddr_t, it's bus_addr_t. fix up sparc64 iommu, amd64 iommu and the sg_dma backedn that uses it to realise this. ok kettenis@
2009-05-03On the UltraBook the PROM privides two interrupts for its ccb(4)'s. HandleMark Kettenis
this case by choosing the interrupt that corresponds to the PCI function. Makes the second PCMCIA slot work.
2009-05-03Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@. While there, also unwrap a line that isn't long enough to need wrapping.
2009-05-02Avoid clobbering error return values with the result from extent_free(), byMark Kettenis
simply calling iommu_dvma_unload(). Solution suggested by oga@.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-12Move code handling Machine Descriptions out of the cbus(4) driver.Mark Kettenis
2009-04-05In the rare case where after we've loaded the iomap into the hardware,Owain Ainsworth
if we fail while assembling the dmamap due to the memory not fitting into our constraints we'll return from the function with the iomap still loaded, and more importantly with memory still allocated from the extent(9). So in such a case, make sure we clean up after outselves. In order to make this cleaner, remove an impossible condition check (kettenis and myself are satisfied that it will never happen), and make iomap_load_map void (it can't fail), so that we can only fail after both the extent is allocated and the iomap is loaded, and not inbetween the two. I tested iommu, kettenis tested viommu. ok kettenis@.
2009-04-04Cleanup debug printfs.Mark Kettenis
2009-03-29bzero pci attach argsMark Kettenis
ok deraadt@, miod@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-16Trivial malloc + memset -> malloc(,,M_ZERO) conversion.Owain Ainsworth
As a small bonus this now actually zeroes the whole struct, not just the non-varying sized part.
2009-03-16pmap = (conditional ? user_way : pmap = pmap_kernel());Owain Ainsworth
doesn't need the second pmap =. "ok if you tested it" kettenis@
2009-03-12Define a proper wsdisplay type for raptor(4).Mark Kettenis
ok miod@
2009-03-09Initial stab at a driver for FFB3/XVR-1000. It seems to work fine, but withoutMark Kettenis
acceleration it is a tad bit slow, so leave this disabled for now.
2009-03-01Replace a few magic constants with proper #defines as pointed out by miod@.Mark Kettenis
2009-03-01Finish colormap support; makes Xorg wsfb driver work.Mark Kettenis
2009-03-01Some initial colormap support.Mark Kettenis
2009-03-01An accelerated framebuffer driver for the Tech Source Raptor GFX cards builtMark Kettenis
around the Number 0 Imagine-128 chip. Colormap support is still missing.
2009-03-01Don't let an mmio area replace the frame buffer if they are the same size.Mark Kettenis
Seen on a Tech Source Raptor. ok miod@
2009-02-20Tweak debug printf.Mark Kettenis
2009-02-20Make sure we have enough space in the LDC transmit queue to send a DRING_DATAMark Kettenis
message and bail out early instead of dropping packets to be transmitted.
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-01-21Extend the acceleration code to handle jfb (XVR-600, XVR-1200) models, theMiod Vallat
software only code is kept in case we can't reliably figure out what kind of device we are facing. Tested on XVR-1200 by Mattieu Baptiste, and on Expert3D-Lite by me.
2009-01-19The acceleration code would not work on XVR-600 and XVR-1200, so if it turnsMiod Vallat
out it doesn't work, fall back to dumb software routines until we know better. Also, do not attach to the second head of the XVR-1200 yet, the second node lacks basic frame buffer properties. Tested by Mattieu Baptiste, thanks!
2009-01-19Clear RI_CLEARMARGINS in the ri_bits == NULL ifb(4) kluge, the new windowMiod Vallat
position code may set it.
2009-01-17If the hypervisor call that fetches randomness returns EWOULDBLOCK,Mark Kettenis
reschedule the timeout again instead of complaining.
2009-01-17Clean things up a bit, and be a bit more fussy about the proper sequence inMark Kettenis
which we should receive messages from our peer.
2009-01-17Return NO_CCB if we run out of descriptors.Mark Kettenis
Suggested by krw@
2009-01-17Sync vio_sendmsg() with equivalent code in vdsk(4).Mark Kettenis
2009-01-17Make this work in guest domains.Mark Kettenis
2009-01-17Implement SYNCHRONIZE CACHE and make SCSI_POLL work while we're there.Mark Kettenis
2009-01-16Set the number of openings to the number of ring descriptors minus one. ForMark Kettenis
some reason, setting it to the number of descriptors causes ring overruns.
2009-01-16Make transfers bigger than PAGE_SIZE work.Mark Kettenis
2009-01-16Remove bogus KASSERT.Mark Kettenis
2009-01-16Call start callback unconditionally.Mark Kettenis
2009-01-16Improve VIO state machine, and initiate VIO handshake ourselves. Makes thisMark Kettenis
work with newer versions of Solaris.
2009-01-14Be sure to allocate memory with M_ZERO in sbus_alloc_dma_tag(), or strangeMiod Vallat
things happen. ok kettenis@
2009-01-12A storage driver should be DV_DULL, not DV_IFNET. Pointed out by dlg@.Mark Kettenis
2009-01-12Look up the "compatible" property of the right node to detect serialMark Kettenis
interfaces on the m4k/m5k/m8k/m9k.
2009-01-12Oops, sunkbd_decode() still needs to be public for *cngetc() to work;Miod Vallat
spotted the hard way by kettenis.
2009-01-12Initial stab at a driver for virtual disks found on sun4v logical domains.Mark Kettenis
Still needs some work, but reading from and writing to a disk image works.
2009-01-12Add padding to some message structs since the Solaris virtual disk serversMark Kettenis
seems to want it. Also add 'struct vio_rdx' to make sure we use the proper padding there too.
2009-01-12Add a callback function that gets called when an LDC connection is established.Mark Kettenis
2009-01-12As recommended by the Sun Virtual IO specification, use tick() to generateMark Kettenis
session ID instead of arc4random().