1. 09 Apr, 2004 10 commits
    • Dave Airlie's avatar
      8153aeff
    • Dave Airlie's avatar
      From Michel Daenzer: · 6cc03ee7
      Dave Airlie authored
      Adapt to nopage() prototype change in Linux 2.6.1.
      
      Reviewed by: Arjan van de Ven <arjanv@redhat.com>, additional feedback
      from William Lee Irwin III and Linus Torvalds.
      6cc03ee7
    • Dave Airlie's avatar
      From Eric Anholt + Jon Smirl: · 8f547eb8
      Dave Airlie authored
      Don't ioremap the framebuffer area. The ioremapped area wasn't used by
      anything.
      8f547eb8
    • Dave Airlie's avatar
      From Eric Anholt: · b6ad4641
      Dave Airlie authored
      Return EBUSY when attempting to addmap a DRM_SHM area with a lock in it if
      dev->lock.hw_lock is already set. This fixes the case of two X Servers running
      on the same head on different VTs with interface 1.1, by making the 2nd head
      fail to inizialize like before.
      b6ad4641
    • Dave Airlie's avatar
      From Eric Anholt: some cleanups from AlanH: · c25f5e81
      Dave Airlie authored
      - Tie the DRM to a specific device: setunique no longer succeeds when given
      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. 
      c25f5e81
    • Dave Airlie's avatar
      From: Michel Daenzer: · 3b7273f0
      Dave Airlie authored
      Memory layout transition:
      
      * 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.
      3b7273f0
    • Dave Airlie's avatar
      From Eric Anholt: · 7962e010
      Dave Airlie authored
       Introduce a new ioctl, DRM_IOCTL_SET_VERSION. This ioctl allows the 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. 
      7962e010
    • Dave Airlie's avatar
      - Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code to get · d31fc344
      Dave Airlie authored
      the drm_file_t * based on the filp passed in ioctl handlers. 
      d31fc344
    • Dave Airlie's avatar
      left gamma_dma.c out of last changeset · 13723b10
      Dave Airlie authored
      13723b10
    • Dave Airlie's avatar
      From: Eric Anholt: · 44cabf9b
      Dave Airlie authored
      - Move IRQ functions from drm_dma.h to new drm_irq.h and disentangle them 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
      44cabf9b
  2. 08 Apr, 2004 1 commit
    • Dave Airlie's avatar
      - Converted Linux drivers to initialize DRM instances based on PCI IDs, not · 4b782b3c
      Dave Airlie authored
      just a single instance. 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
      and Eric Anholt. I've left out the PCI device naming for this patch as
      that might be a bit controversial. clean up tdfx to look like everyone else..
      4b782b3c
  3. 03 Apr, 2004 9 commits
  4. 02 Apr, 2004 11 commits
  5. 01 Apr, 2004 9 commits