summaryrefslogtreecommitdiff
path: root/sys/dev/pci
AgeCommit message (Collapse)Author
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-23pass in the dmat when we attach the drm driver. reduces pci dependancy.Owain Ainsworth
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-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.
2008-11-23Use the new and shiny nitems().Marc Balmer
2008-11-23sizeofa -> nitemsDavid Gwynne
2008-11-23sizeofa -> nitemsDavid Gwynne
2008-11-23sizeofa -> nitemsDavid Gwynne
2008-11-23sizeofa is now nitems in param.h, so dont declare my own in mpi.c it wasDavid Gwynne
unused there anyway. use nitems in mpi_pci_match.
2008-11-23syncTheo de Raadt
2008-11-23newTheo de Raadt
2008-11-22using ``wait queues' for sleep is a linuxism. Kill them and just sleepOwain Ainsworth
on the softc.
2008-11-22Make all drm drivers map their mmio register space on attach instead ofOwain Ainsworth
using the drm_maps interface (this was done for inteldrm a few days ago). All drivers now ignore the mmio_offset argument that the init ioctl takes. This clears up the code and makes sure that drm_ioremap_core() doesn't need the vga_pci_map inteface anymore, so we don't have to pass in the vga softc anymore. We also get to kill the drm_resource_{start,length} linux-alike functions since we just calculate all the requisite offsets at startup and cache those we need. This now means that technically the only driver that needs the vga_pci_map api is inteldrm (due to sharing with intagp issues), though this diff doesn't convert them over.
2008-11-22drm_device_is_pcie is only needed in one place: radeondrm_attachOwain Ainsworth
so just inline it there. also remove dev->pci_vendor and dev->pci_device, and insert pci_device into the one place any of them are needed (inteldrm's interface can give this info to the X driver. to remove that you'd need to fix X too).
2008-11-22Move the drm drivers over from:Owain Ainsworth
vga1 at pci0 inteldrm0 at vga1 to vga1 at pci0 inteldrm0 at vga1 drm0 at inteldrm0 i.e. a similar scheme to audio(4) where the interface attaches on top of the wildly different drivers. This helps to clean up the code a lot (more is coming) and help me start to move drm to being essentially bus independent, which will help in the future.
2008-11-22Remove the driver->load callback and just do all the initialization inOwain Ainsworth
the attach function. First step towards splitting drm off as it's own (bus independant) device, as it should be.
2008-11-22perform bus_dmamap_syncs on the rx mbufs. this is obviously maintained byDavid Gwynne
monkeys. found by toby's bounce buffers. ok krw deraadt uwe fwk matthieu, drahn, mbalmer, robert, yuo, ratchov, claudio, rainer, art.
2008-11-22Some nVidia MCP77 AHCI controllers need special handling. There's 12Mike Belopuhov
PCI ID's for MCP77 in our database, but to stay on a safe side, this change affects device 0x0ad4 only. Other ones could be added later. Problem reported and fixed tested by gilles@ on Acer Aspire X3200. ok dlg
2008-11-22Fix a wrong comment.Marc Balmer
2008-11-22reduce the dependancy of drm_pci_alloc upon the drm device softc. JustOwain Ainsworth
pass in the dma tag
2008-11-22- Slight wording tweak.. leave -> let.Brad Smith
- Sync wpi(4)'s set_key comment with the comment from iwn(4). ok damien@
2008-11-22Remove dev->id_entry, it is no longer needed.Owain Ainsworth
2008-11-22Slightly fix up previousOwain Ainsworth
2008-11-22inteldrm currently checks the pcidev of the device every time it needs to checkOwain Ainsworth
what revision it is to determine which route to take. instead, use the flags field of the pcidevs array to provide a static list of flags related to series, type, and certain features and check those instead. Makes me less sad and knocks another 600 bytes off my kernel.
2008-11-22Remove the strings from the pcidevs arrays. they are no longer needed and areOwain Ainsworth
just wasting space.
2008-11-22switch all of the drm drivers over to using the defines from pcidevs.Owain Ainsworth
Furthermore, move the list of pcidevs from drm_pciids.h (in macros!), to the array in the driver file. The strings are left in the array for now, but will go in the next commit
2008-11-22syncOwain Ainsworth
2008-11-22Pull in all the pcidev discrepancies from drm_pciids.h in dev/pci (whichOwain Ainsworth
is soon to die). "lovely" deraadt@, ok brad@. Both also helped with suggestions.
2008-11-21Fix crystal and gain calibration on 5000 Series.Damien Bergamini
2008-11-19Many ALC88x codecs have a fifth DAC at NID 0x25 for 7.1+2 multistreaming.Christian Weisgerber
Add this and other missing entries to the pre-defined DAC groups. Tested with ALC885; other models according to their data sheets. ok jakemsr@
2008-11-19For 5000 Series, store baseband calibration results sent by theDamien Bergamini
initialization firmware and send them to the runtime firmware. This has no effect on my 5300 since the initialization firmware does not send baseband results. This may be important for other chips though or for future firmware revisions.
2008-11-19I'm clever and commited the wrong patch. Here's the correct one.Owain Ainsworth
This should close kernel/5995.
2008-11-19the jack sense automatic muting code has many problems, includingJacob Meuser
being the cause of PR5982. unfortunately, there's no easy and clean solution to automatic muting. we can't always rely on the codec giving us the right information. people have different preferences as to what should be muted and what shouldn't. etc, etc. so instead, just make the sense state of jacks that support sensing available through the mixer interface. this allows for any possible user configuration and supports all pins that have sense capabilities, not just headpones. codecs that use the generic mixer configuration (which is the plan for all codecs) and have sensing capable pins will now get a few more read-only mixer items, such as: outputs.hp_sense=plugged outputs.mic_sense=unplugged outputs.line_sense=unplugged hopefully what they mean is self-explanatory. based on much discussion with ratchov@ and Alexey Suslikov
2008-11-18regenBrad Smith
2008-11-18Correct the product strings for the HP SA P711m/P712m adapters.Brad Smith
2008-11-18regenMiod Vallat
2008-11-18Correct SIIG 2082 identifier; Kurt Mosiejczuk (kurt-openbsd-misc; se.rit.edu)Miod Vallat
2008-11-18instead of going through the drm_map interface, just map the mmioOwain Ainsworth
registers directly (via the memory sharing interface that intagp uses). It doesn't need to be in a map structure. Idea taken from some of intel's work.
2008-11-18Remove a bunch of #ifdef __linux__ code that only serves to confuse me.Owain Ainsworth
2008-11-18Remove dev->agp_buffer_token, linux needs it, we do not.Owain Ainsworth
2008-11-17regenBrad Smith
2008-11-17Add the HP Smart Array P711m/P712m PCI ids.Brad Smith