1. 11 Apr, 2018 1 commit
  2. 22 Jun, 2015 1 commit
  3. 24 Apr, 2015 2 commits
    • Philippe Gerum's avatar
      drivers/udd: fix the IRQ enable/disable API · 36771886
      Philippe Gerum authored
      Since requests for enabling or disabling interrupt lines can now
      operate in sync mode, there is no point in keeping the post_ hint into
      the names of the corresponding routines.
      
      udd_post_irq_enable => udd_enable_irq
      udd_post_irq_disable => udd_disable_irq
      
      In addition, those services now go through the RTDM layer for applying
      the requested change, instead of taking sideways by calling the I-pipe
      API directly, which is wrong (we shall NOT bypass
      xnintr_enable/disable due to locking requirements in the Cobalt core).
      36771886
    • Philippe Gerum's avatar
  4. 19 Apr, 2015 1 commit
  5. 11 Apr, 2015 1 commit
  6. 21 Sep, 2014 5 commits
    • Philippe Gerum's avatar
      cobalt/rtdm: align naming on kernel standards · 29d24b41
      Philippe Gerum authored
      Rename rtdm_device_class to rtdm_driver, since this is basically what
      it is.
      
      Some sysfs attributes of devices have been updated to better conform
      to the kernel standards as well.
      29d24b41
    • Philippe Gerum's avatar
      cobalt/rtdm: drop poll_delay from rtdm_dev_unregister() · 0b21549f
      Philippe Gerum authored
      Sleep indefinitely on a plain waitqueue instead of polling, until the
      device becomes idle. For this reason, the routine loses its return
      value as well, as drivers are most often not willing to deal with
      receiving a device busy condition from a module exit routine (which is
      the place devices should be unregistered from).
      
      Drivers which really want to deal with such condition should simply
      use module refcounting in their own code.
      0b21549f
    • Philippe Gerum's avatar
      cobalt/rtdm: drop redundant information from rtdm_device_class · 42ba9f06
      Philippe Gerum authored
      Convert .provider_name to MODULE_AUTHOR(), .peripheral_name to
      MODULE_DESCRIPTION() and .driver_version to MODULE_VERSION()
      respectively, if not already present.
      
      Drop .driver_name entirely as it brings no information we could not
      get from reading the module name.
      42ba9f06
    • Philippe Gerum's avatar
      cobalt/rtdm, lib/cobalt: drop support for @minor specifier in pathnames · dfc9e081
      Philippe Gerum authored
      Now that every named device is backed by a regular chrdev, we need no
      virtual minor specification. We may just use the dev_t assigned to the
      associated devnode.
      dfc9e081
    • Philippe Gerum's avatar
      cobalt/rtdm, kernel/drivers: split device class / instance abstractions · 1909729e
      Philippe Gerum authored
      How devices are described for registration with rtdm_dev_register() is
      significantly modified, affecting both named and protocol device
      drivers exactly the same way. Aside of fixing consistency issues, the
      bulk of changes is aimed at narrowing the gap between the regular
      Linux device driver model and RTDM.
      
      RTDM now shares the Linux namespace for named devices, which are
      backed by common character device objects from the regular Linux
      device model. As a consequence of this, file descriptors obtained on
      named RTDM devices are regular file descriptors on real chrdevs,
      visible from the /proc/<pid>/fd interface.
      
      The major change required for supporting this closer integration of
      RTDM into the regular Linux driver model involved splitting the device
      class properties from the device instance definitions, which used to
      be combined in Xenomai 2.x into the rtdm_device descriptor.
      
      A new rtdm_device_class descriptor is introduced, for describing the
      general static properties of the devices exposed by a
      driver. rtdm_device now represents an instance of such class.
      
      rtdm_device objects link to the descriptor of the rtdm_device class
      they belong to.
      
      Hotplug support
      ---------------
      
      RTDM first allocates and reserves a major and a range of device minors
      when the first device of a named device class is registered via
      rtdm_dev_register(). Up to class->device_count minors will be
      reserved. Minor number are assigned to devices in order of
      registration, starting from minor #0.
      
      Device nodes for named RTDM devices are automatically visible from the
      /dev/rtdm/ hierarchy with hotplug-enabled device fs (DEVTMPFS now
      recommended).
      1909729e
  7. 21 Aug, 2014 1 commit
  8. 15 Aug, 2014 1 commit
  9. 13 Aug, 2014 1 commit