1. 12 Jan, 2014 1 commit
  2. 24 Sep, 2013 1 commit
  3. 22 Jan, 2013 1 commit
  4. 19 Sep, 2012 1 commit
  5. 04 Sep, 2012 2 commits
  6. 10 Jul, 2012 1 commit
  7. 06 Jul, 2012 2 commits
    • Dave Airlie's avatar
      xserver/config: add udev/drm hotplug callbacks. (v2) · b27cf309
      Dave Airlie authored
      This adds callbacks into the ddx for udev gpu hotplug.
      v2: fix some strncmp returns.
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    • Dave Airlie's avatar
      xfree86: use udev to provide device enumeration for kms devices (v10) · cf664713
      Dave Airlie authored
      On Linux in order for future hotplug work, we are required to interface
      to udev to detect device creation/removal. In order to try and get
      some earlier testing on this, this patch adds the ability to use
      udev for device enumeration on Linux.
      At startup the list of drm/kms devices is probed and this info is
      used to load drivers.
      A new driver probing method is introduced that passes the udev
      device info to the driver for probing.
      The probing integrates with the pci probing code and will fallback
      to the pci probe and old school probe functions in turn.
      The flags parameter to the probe function will be used later
      to provide hotplug and gpu screen flags for the driver to behave
      in a different way.
      This patch changes the driver ABI, all drivers should at least
      be set with a NULL udev probe function after this commit.
      v2: rename to platform bus, now with 100% less udev specific,
      this version passes config_odev_attribs around which are an array
      of id/string pairs, then the udev code can attach the set of attribs
      it understands, the OS specific code can attach its attrib, and then
      the core/drivers can lookup the required attribs.
      also add MATCH_PCI_DEVICES macro.
      This version is mainly to address concerns raised by ajax.
      v3: Address comments from Peter.
      fix whitespace that snuck in.
      rework to use a linked list with some core functions that
      xf86 wraps.
      v4: add free list, fix struct whitespace.
      ajax this address most of your issues?
      v5: drop probe ifdef, fix logic issue
      v6: some overhaul after more testing.
      Implement primaryBus for platform devices.
      document hotplug.h dev attribs - drop sysname attrib
      fix build with udev kms disabled
      make probing work like the PCI probe code,
         match against bus id if one exists, or primary device.
      RFC: add new bus id support "PLAT:syspath". we probably
      want to match on this a bit different, or use a different
      property maybe. I was mainly wanting this for use with
      specifying usb devices in xorg.conf directly, but PLAT:path
      could also work I suppose.
      v6.1: add missing noop platform function
      v7: fix two interactions with pci probing and slot claiming, prevents
      pci and platform trying to load two drivers for same slot.
      v8: test with zaphod mode on -ati driver, fixup resulting issue
      clean up common probe code into another function, change busid
      matching to allow dropping end of strings.
      v9: fix platform probing logic so it actually works.
      v9.1: fix pdev init to NULL properly.
      v10: address most of Keith's concerns.
      v4 was thanks to Reviewed-by: Adam Jackson <ajax@redhat.com>
      v5 was Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
  8. 21 May, 2012 1 commit
  9. 21 Mar, 2012 1 commit
    • Keith Packard's avatar
      Introduce a consistent coding style · 9838b703
      Keith Packard authored
      This is strictly the application of the script 'x-indent-all.sh'
      from util/modular. Compared to the patch that Daniel posted in
      January, I've added a few indent flags:
      	-T PrivatePtr
      	-T pmWait
      	-T _X_EXPORT
      The typedefs were needed to make the output of sdksyms.sh match the
      previous output, otherwise, the code is formatted badly enough that
      sdksyms.sh generates incorrect output.
      The generated code was compared with the previous version and found to
      be essentially identical -- "assert" line numbers and BUILD_TIME were
      the only differences found.
      The comparison was done with this script:
      for dir in $dir1 $dir2; do
      	(cd $dir && find . -name '*.o' | while read file; do
      		dir=`dirname $file`
      		base=`basename $file .o`
      		objdump -d $file > $dump
      find $dir1 -name '*.dump' | while read dump; do
      	otherdump=`echo $dump | sed "s;$dir1;$dir2;"`
      	diff -u $dump $otherdump
  10. 03 Oct, 2011 1 commit
  11. 22 Aug, 2011 4 commits
  12. 26 Jul, 2011 3 commits
  13. 23 Mar, 2011 1 commit
  14. 08 Mar, 2011 1 commit
  15. 31 Dec, 2010 2 commits
  16. 07 Dec, 2010 1 commit
  17. 01 Sep, 2010 2 commits
    • Peter Hutterer's avatar
      config: expose config_info as an input option. · 31c71425
      Peter Hutterer authored
      config_info is the only reliable indicator we have in the server for
      duplicate devices (drivers can test for maj/min on fds as well). Don't set
      this after the device has been initialized but assume it's important enough
      to set during NIDR.
      This makes the option "config_info" available to the drivers as well.
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
    • Chase Douglas's avatar
      Fix udev population of Bluetooth input device product IDs · 7925e894
      Chase Douglas authored
      The udev device_added function takes the vendor and model IDs of added
      devices and converts them into an attribute that can be matched for by
      an InputClass configuration using MatchUSBID. Currently, the udev
      mechanism works for USB devices, but fails to work properly for
      Bluetooth devices. The product IDs of the event node are actually the
      IDs of the Bluetooth receiver instead of the device.
      This patch reads the product ID from the PRODUCT property of the parent
      of the added device. This tag is set correctly for both USB and
      Bluetooth input devices. The following devices have been tested by
      specifying individual InputClass sections in xorg.conf:
      * Apple Keyboard (Bluetooth)
      * Apple Magic Trackpad (Bluetooth)
      * Apple Magic Mouse (Bluetooth)
      * Microsoft Bluetooth Notebook Mouse 5000 (Bluetooth)
      * Microsoft IntelliMouse Optical (USB)
      * N-Trig Touchscreen (USB)
      * Wacom Bamboo Touch (USB)
      Signed-off-by: default avatarChase Douglas <chase.douglas@canonical.com>
      Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
  18. 11 Jun, 2010 1 commit
  19. 10 Jun, 2010 3 commits
  20. 12 May, 2010 1 commit
  21. 26 Mar, 2010 1 commit
  22. 15 Feb, 2010 1 commit
  23. 11 Feb, 2010 1 commit
    • Peter Hutterer's avatar
      Add tag matching to input attributes. · c6d9bc09
      Peter Hutterer authored
      Tags may be a list of comma-separated strings that match against a MatchTag
      InputClass section. If any of the tags specified for a device match against
      the MatchTag of the section, this match is evaluated true and passed on to
      the next match condition.
      Tags are specified as "input.tags" (hal) or "ID_INPUT.tags" (udev), the
      value of the tags is case-sensitive and require an exact match (not a
      substring match).
      i.e. "quirk" will not match "QUIRK", "need_quirk" or "quirk_needed".
      Example configuration:
          <merge key="input.tags" type="string">foo,bar</merge>
          Section "InputClass"
                  Identifier "foobar quirks"
                  MatchTag "foo|foobar"
                  Option "Foobar" "on"
      Where the xorg.conf section matches against any device with the tag "foo"
      or tag "foobar" set.
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Tested-by: Dan Nicholson's avatarDan Nicholson <dbn.lists@gmail.com>
      Reviewed-by: Dan Nicholson's avatarDan Nicholson <dbn.lists@gmail.com>
  24. 30 Dec, 2009 1 commit