summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-11-25upgt(4) doesn't use amrr, remove useless header net80211/ieee80211_amrr.hKevin Lo
ok mglocker@
2008-11-24add BTDEV_NONEUwe Stuehler
2008-11-24The Exsys EX-1372 uses a 8x clock.Mark Kettenis
ok deraadt@
2008-11-24More sanitizing for wrong bDefaultFrameIndex values. Fixes a panicMarcus Glocker
at attach time for devices which set bDefaultFrameIndex larger than the existing frame descriptors. Spotted, tested, and OK yuo@
2008-11-24Work around the stupidity of radeondrm by double checking that things areOwain Ainsworth
running before we play with things. Lots more cleanup needed, but now you can shut X without it crashing.
2008-11-24Import btsco(4) from NetBSD to work on itUwe Stuehler
2008-11-24Make sure we do not DRM_UNLOCK() twice.David Hill
ok oga@
2008-11-24no 9k cluster allocator yet, switch back to 4k.David Gwynne
2008-11-24extra decl not needed; spotted by djmTheo de Raadt
2008-11-24switch from 4k to 9k frames on the jumbo ring now the cluster allocator isDavid Gwynne
able to give them to me.
2008-11-24destatic radeondrm almost completely. I'm sick of ddb lying to me.Owain Ainsworth
shaves a few bytes, but that's just gravy.
2008-11-24some whitespace fixes in em_rxeofDavid Gwynne
2008-11-24back out the buf_priv change. it made some incorrect assumptions andOwain Ainsworth
broke radeondrm. Fixing it is ugly, so another change will have to be made later. I /hate/ the drm_buf api, it will die as soon as it can.
2008-11-24allow entropy to be queued before randomattach() is calledTheo de Raadt
worked on with djm
2008-11-24enable the use of the second rx ring. populate it with 4k frames until theDavid Gwynne
9k backend allocator is available. vic is the first driver to properly support "jumbo" frames. this is the model every other driver should follow.
2008-11-24use workq instead of crafting our own kthread, since the tasks being doneTheo de Raadt
are fairly small. tested by a few, and kettenis says he will test it sooner if it is commited...
2008-11-24change a device descriptor get logic during the enumeration process.Yojiro Uo
Some device could not handle the device descriptor request with short bLength (less than the device descriptor size(18 byte)). To handle such kind of devices, add complemental request loop to current logic. (memo: and I also found a device which can not response to any device descriptor request. It always returns only 8 byte-length head of the descriptor for 1st query. This is the reason why the device descriptor loop of this usb subsystem start with 8-byte length query.)
2008-11-24switch from using MCLGET to MCLGETI for clusters going onto the rx ring.David Gwynne
this causes vic to start up with 4 mbufs on the ring, and the allocator will let it increase the number of rx mbufs as usage demands. testing shows that i need only 20 to 30 mbufs on the rx ring to cope with full speed io. we used to always put 100 on the ring, so we're now saving 140k of kernerl virtual address space (70 * MCLBYTES). this relies on the previous commit that copes with failures of mbuf allocation in the rx path. similar changes must be made to all the other drivers. i'll happily review diffs people send in. SUBTLE HINTS ARE COMING YOUR WAY.
2008-11-24drop the requirement that the rx ring has to be filled with mbufs. we onlyDavid Gwynne
fill a slot when the mbuf allocator gives us an mbuf cluster.
2008-11-24Fixup wakeup pointers. interrupts work properly again.Owain Ainsworth
2008-11-24Don't unmap REGISTERS maps, we don't map them anymore.Owain Ainsworth
2008-11-24- Add two new ioctls to gpio(4), GPIOATTACH and GPIODETACH, to allow to attachMarc Balmer
and detach devices on a gpiobus at runtime. The offset and mask locators in kernel config files can still be used for static configuration, so this does not break existing custome kernel configs. - Have gpioow(4) unmap the pins it used from the gpiobus during detach Changes to gpioctl(8) will be a separate committ. ok uwe
2008-11-24Seed the random pool with the dmesg buffer at randomattach().Marco Pfatschbacher
This lets early arc4random() calls to return at least non-uniqe values on different machines. The dmesg will have different MAC addresses, etc. Also ignore the entropy count in arc4_stir, and just take what's there. sizeof(struct timeval) should be sizof(struct timespec) This was forgotten when we switched to nanotime. With help from mickey. OK djm@, deraadt@
2008-11-24die die dieTheo de Raadt
2008-11-24Respond to incoming connections, not only after we initiated the first one.Uwe Stuehler
Someone must have fumbled with this line by accident while doing the original port of the driver.
2008-11-24don't free extent on lastclose, it's static data now.Owain Ainsworth
2008-11-24Rework sdmmc locking to remove recursionBret Lambert
Add SDMMC_ASSERT_LOCKED(), replacing many locking calls, and sprinkling the assertion to make sure that future changes don't catch us out "please commit" uwe@
2008-11-24do the same for struct drm_file (file_priv) as previously done forOwain Ainsworth
dma_bufs; allow the driver to provide the size and not have the private data pointer. only radeon only needs this so far, but intel with GEM also needs it. Postclose was only used for freeing said private data, so this allows me to remove the postclose callback and rename preclose to close.
2008-11-24Instead of having a ``private data'' pointer in the dma buffers, justOwain Ainsworth
ask the driver how large they need the structure we allocate to be, and use inheritance like we do for struct device. Simplifies things a little bit and saves us a pointer.
2008-11-24remove more logically irrelevant DDR code from the SDR function; ok jsgConstantine A. Murenin
2008-11-24actually set the bus_space_tagOwain Ainsworth
2008-11-24use irq_enabled instead of irq.Owain Ainsworth
2008-11-24This got lost somehow.Owain Ainsworth
2008-11-24change drm_attach_mi to drm_attach_pci. we take the pci_attach_args, andOwain Ainsworth
setup the drm_attach_args with the needed information. require interface version 1.1 libdrm has been requesting it for ages), which means that we can set the busid string at attach time. (generated in drm_attach_pci), also pass in the interrupt line and bst. Now we don't need dev->pa at all, so remove it, finally.
2008-11-24make device works out if it's agp and tells the drm driver, not theOwain Ainsworth
other way round. More dev->pa reduction
2008-11-24we're a real device now and we don't on-demand allocate our softc. DoOwain Ainsworth
not zero it during the cleanup ioctl.
2008-11-24use dev->dmat. Missed this one in an earlier diff.Owain Ainsworth
2008-11-24instead of functions that just return an error, just inline them intoOwain Ainsworth
the ioctl handler.
2008-11-24oops. Use the correct struct member to map so that radeon doesn't panicOwain Ainsworth
on X startup. found by ckuethe@
2008-11-24Return NO_CCB instead of TRY_AGAIN_LATER when ccb's run out.Kenneth R Westerback
"I'm all for it." marco@ "Yeah" deraadt@
2008-11-24syncDale Rahn
2008-11-24device id for OpenMoko, ok oga@Dale Rahn
2008-11-23softraid support for ata over ethernet (aoe). this includes a client andTed Unangst
part of a server. there's no configuration yet, and several other drawbacks, but it can be hammered into shape. i haven't moved the code forward in a year, and marco wants it in the tree to hack on.
2008-11-23pass in the dmat when we attach the drm driver. reduces pci dependancy.Owain Ainsworth
2008-11-23missing newline in printf; Thomas PfaffTheo de Raadt
2008-11-23#define away unused arguments for the drm_alloc functions. to save someOwain Ainsworth
size. kill (empty) drm_mem_{un,}init() while here.
2008-11-23Include the GEM interface in i915_drm.h.Owain Ainsworth
While we don't have code for this (yet!), mean I will be able to update libdrm, and consequently the xf86-video-intel driver to 2.5.x. Add PARAM_HAS_GEM to the getparam ioctl, and return no support.
2008-11-23umsmdebug should be 0.Felix Kronlage
ok yuo@
2008-11-23Map device interrupts in the attach routine. and remove more need forOwain Ainsworth
dev->pa by doing the pci_intr_establish/disestablish dance in the driver function, not in drm. This removes the need for interrupt_{pre,post}install callbacks, instead just provide a interrupt_install() callback.
2008-11-23Move vblank data allocation to happening at attach, not at irq enable.Owain Ainsworth
just put a vblank_pipes argument to the driver structure which tells us how many to set up this means that intel doesn't lose all vblank count on vtswitch (it disables the interrupt there), i've heard of a few uvm_faults where this happens as well as things just going wrong. This was suggested by Keith Packard who provided a different diff for drm.git.