summaryrefslogtreecommitdiff
path: root/linux/drmP.h
AgeCommit message (Collapse)AuthorFilesLines
2006-07-19Delete the pre-core DRM code with extreme prejudice.Adam Jackson1-1012/+0
2005-01-16The patch makes drmAddBufs/drmMapBufs can handle buffers in video memoryDave Airlie1-6/+8
The attached patch adds a new buffer type DRM_FB_BUFFER. It works like AGP memory but uses video memory. From: austinyuan@viatech.com.cn (fd.o bug 1668) Signed-off-by: Dave Airlie <airlied@linux.ie>
2004-10-31Allow drivers to override reclaim_buffers in an OS-independent way byFelix Kuehling1-2/+2
passing drm_device_t* as first parameter, like in the BSD version.
2004-10-09remove unused dma remnants that were gamma only - these could cause an oopsDave Airlie1-7/+0
on via
2004-09-23Remove 2.6 code that allow DRM major device number to be shared. We can addJon Smirl1-4/+0
it back later if needed. Checked DRM on both 2.4 and 2.6 to ensure that it builds and runs.
2004-09-231) switches from class_sysfs to drm sysfs implementation to allowJon Smirl1-1/+3
customization 2) compiles again on 2.4, but doesn't work
2004-09-22Remove hotplug reset support from DRM driver. This will be handled by theJon Smirl1-2/+0
VGA driver when it gets written.
2004-09-16Let's try adding the dyn-minor patch again. This patch will reuse minorJon Smirl1-5/+27
numbers if a card is hotplugged in/out instead of just having them increase.
2004-09-15Back dyn-minor patch out for now. fops handling is broken on some cardsJon Smirl1-27/+5
2004-09-15Dynamic device minor support. Minor device numbers will be reused if theJon Smirl1-5/+27
device is hotplugged in/out of the system
2004-09-05merge back bunch of whitespace and misc changes from kernelDave Airlie1-9/+9
2004-09-04Fixup OS_HAS_AGP/OS_HAS_MTRR along lines of patches going to kernel, asDave Airlie1-11/+21
suggested by Arjan.. Signed-off-by: Dave Airlie <airlied@linux.ie>
2004-08-30implement drm_core_check_feature and use it .. looks lots nicerDave Airlie1-0/+5
2004-08-30drm-memory patch, cleans up alloc/free and makes calloc look more libc likeDave Airlie1-2/+20
2004-08-29Drop GAMMA DRM from a great height ...Dave Airlie1-7/+0
2004-08-24Merged drmfntbl-0-0-2drmfntbl-0-0-2-20040824-mergeDave Airlie1-49/+41
2004-08-24addmap-base-2 patch from Jon Smirl:Dave Airlie1-0/+2
sets up the DRM to have the ability to have permanent maps while the driver is loaded...
2004-08-17Merged drmfntbl-0-0-1drmfntbl-0-0-1-20040817-mergeDave Airlie1-54/+67
2004-08-11minor patch from Jon Smirl : sets up some things for later useDave Airlie1-0/+1
2004-08-042.4 hotplug compatDave Airlie1-0/+1
2004-08-03fix for drm in /proc - from Jon SmirlDave Airlie1-4/+4
2004-07-31Add a hotplug event to DRM. Parameters match the ones from the general PCIJon Smirl1-3/+5
hotplug event plus the addition of one requesting RESET. Put your scripts in /etc/hotplug.d/drm to run. kernel class_simple generates the ADD/REMOVE events. No cards currently request RESET, the flag is there to stop you from resetting your boot display.
2004-07-25sync up with current 2.6 kernel bk tree - mostly __user annotationsDave Airlie1-5/+5
2004-07-20first set of __user annotations from kernel (Al Viro)Dave Airlie1-1/+1
2004-07-11split out backwards compat into a separate file makes it easier for mergingDave Airlie1-115/+1
to 2.6
2004-07-11fix issue in 2.4 kernels with returning NULL from this functionDave Airlie1-1/+1
2004-05-302.4 compatDave Airlie1-0/+4
2004-05-18another 2.4 fixDave Airlie1-0/+2
2004-05-182.4 compat fixDave Airlie1-0/+1
2004-05-09Commit sysfs and drm PCI changes for 2.6 kerneldrmpci-0-0-1Dave Airlie1-0/+1
2004-05-02fix 2.4 buildDave Airlie1-2/+1
2004-04-22Add __user annotations from kernelDave Airlie1-0/+4
2004-04-21centralise pci ids into one place and use scripts to generate files forDave Airlie1-8/+4
kernel
2004-04-12Add mach64 to the trunkDave Airlie1-0/+6
2004-04-082.6 sysfs patches + stubs in drmP.h for 2.4 compatibilityDave Airlie1-0/+12
2004-04-08more 2.4 compat fnsDave Airlie1-0/+10
2004-03-12Fixes need to clean up the mess I made with the mesa merge. This codeJon Smirl1-12/+0
allows the mesa drivers to use a single definition of the DRM sarea/IOCTLS located in the drm driver directory. Adjustments were made to the 2D drivers to not include these changes. Changes to the mesa copy of DRM were copied to the DRI copy. XFree86 bug: Reported by: Submitted by: Reviewed by: Obtained from:
2004-02-28Remove extraneous code accidentally added with revision 1.86driinterface-0-0-3-20040303-premergedriinterface-0-0-3-20040303-mergeMichel Daenzer1-17/+0
2004-02-21Conditionally add definition of list_for_each_entry_safe for kernelFelix Kuehling1-0/+8
versions that don't have it.
2004-02-20drm_ctx_dtor.patch Submitted by: Erdi ChenKeith Whitwell1-0/+16
2004-01-11Adapt to nopage() prototype change in Linux 2.6.1.Michel Daenzer1-12/+17
Reviewed by: Arjan van de Ven <arjanv@redhat.com>, additional feedback from William Lee Irwin III and Linus Torvalds.
2003-11-05- Tie the DRM to a specific device: setunique no longer succeeds when givenEric Anholt1-4/+12
a busid that doesn't correspond to the device the DRM is attached to. This is a breaking of backwards-compatibility only for the multiple-DRI-head case with X Servers that don't use interface 1.1. - Move irq_busid to drm_irq.h and make it only return the IRQ for the current device. Retains compatibility with previous X Servers, cleans up unnecessary code. This means no irq_busid on !__HAVE_IRQ, but can be changed if necessary. - Bump interface version to 1.2. This version when set signifies that the control ioctl should ignore the irq number passed in and enable the interrupt handler for the attached device. Otherwise it errors out when the passed-in irq is not equal to the device's. - Store the highest version the interface has been set to in the device. - Fix a recursion on DRM_LOCK in irq_uninstall on FreeBSD. This leaves irq_uninstall being done without the lock in some cases, but it was racey anyways.
2003-11-04Memory layout transition:Michel Daenzer1-0/+3
the 2D driver initializes MC_FB_LOCATION and related registers sanely the DRM deduces the layout from these registers clients use the new SETPARAM ioctl to tell the DRM where they think the framebuffer is located in the card's address space the DRM uses all this information to check client state and fix it up if necessary This is a prerequisite for things like direct rendering with IGP chips and video capturing.
2003-10-23- Introduce a new ioctl, DRM_IOCTL_SET_VERSION. This ioctl allows theEric Anholt1-0/+2
server or client to notify the DRM that it expects a certain version of the device dependent or device independent interface. If the major doesn't match or minor is too large, EINVAL is returned. A major of -1 means that the requestor doesn't care about that portion of the interface. The ioctl returns the actual versions in the same struct. - Introduce DRM DI interface version 1.1. If the server requests version 1.1, then the DRM sets the unique itself according to the busid of the device it probed, which may then be accessed as normal using getunique. - Request version 1.1 in libdrm's drmOpenByBusID, allowing the X Server to request based on a BusID. Introduce a wrapper for DRM_IOCTL_SET_VERSION and bump libdrm minor version. - Pass the busid in DRIScreenInit if libdrm can handle both a busid and name. This allows drmOpenByBusID to be used to find the DRM instead of just the driver name, which allows us in the future to tie a DRM more strongly to the device it probed to. Introduce a function DRICreatePCIBusID which creates a busid in the form pci:oooo:bb:dd.f similar to linux's pci_name() function. This matches the format used by the DRM in version 1.1. libdrm knows how to match both this format and the old PCI:b:d:f format. - Use the new DRICreatePCIBusID function in the *_dri.c to request the new, more exact busid format.
2003-10-17- Move IRQ functions from drm_dma.h to new drm_irq.h and disentangle themEric Anholt1-7/+11
from __HAVE_DMA. This will be useful for adding vblank sync support to sis and tdfx. Rename dma_service to irq_handler, which is more accurately what it is. - Fix the #if _HAVE_DMA_IRQ in radeon, r128, mga, i810, i830, gamma to have the right number of underscores. This may have been a problem in the case that the server died without doing its DRM_IOCTL_CONTROL to uninit.
2003-10-17- Converted Linux drivers to initialize DRM instances based on PCI IDs, notEric Anholt1-4/+8
just a single instance. Moved the PCI ID lists from <card>_drv.c in BSD to <card>.h. The PCI ID lists include a driver private field, which may be used by drivers for chip family or other information. Based on work by jonsmirl. - Make tdfx_drv.c and tdfx.h match other drivers. - Fixed up linking of sis shared files. Tested with Radeon and SiS on Linux and FreeBSD, including a Linux setup with 2 SiS cards in a machine, but only one head being used (with DRI)
2003-08-29Add DRM(calloc), which is convenient, used by the new sis code, and takesEric Anholt1-0/+1
advantage of M_ZERO on BSDs.
2003-07-29IRQ code cleanup suggested by Linus TorvaldsMichel Daenzer1-1/+1
i830 build fix
2003-07-25Compile fixes for recent 2.5/2.6 Linux kernels. I hope this doesn't breakMichel Daenzer1-12/+11
the i830 driver or the BSDs. :)
2003-07-04Don't need to include linux/wrapper.h - we only use Set/ClearPageReservedLeif Delgass1-1/+0
from linux/mm.h now and wrapper.h has been removed in 2.5.69 and later.