1. 10 Feb, 2020 1 commit
  2. 13 Sep, 2019 1 commit
  3. 01 Apr, 2019 7 commits
  4. 04 Feb, 2019 1 commit
  5. 13 May, 2018 1 commit
  6. 05 Feb, 2018 1 commit
  7. 21 Sep, 2014 4 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, 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
  8. 14 Aug, 2014 1 commit
    • Philippe Gerum's avatar
      cobalt/rtdm, drivers: move .open, .socket handlers to fd_ops · b1a2217b
      Philippe Gerum authored
      With the recent introduction of a generic file operation descriptor
      which drops the legacy rt/nrt forms of these handlers, there is no
      reason to keep them floating alone in the rtdm_device definition.
      
      This patch moves the .open and .socket handlers into the rtdm_fd_ops
      descriptor with other I/O handlers, fixing up the in-tree drivers
      accordingly.
      b1a2217b
  9. 17 May, 2014 1 commit
  10. 17 Apr, 2014 1 commit
  11. 20 Feb, 2014 1 commit
  12. 30 Dec, 2013 1 commit
    • Philippe Gerum's avatar
      include/rtdm: introduce uapi section · 0e9d748a
      Philippe Gerum authored
      Definitions shared between userland and kernel space moved to
      include/rtdm/uapi/, so that userland may solely refer to include/rtdm,
      which does not expose any kernel-specific bits anymore.
      
      At this chance, we drop the useless prefixes/suffixes in interface
      header names, since we can't have name conflicts when referring to
      files the recommended way (i.e. <rtdm/file.h>):
      
      rtdm/rtdm_driver.h -> rtdm/driver.h
      rtdm/rtcan.h -> rtdm/can.h
      rtdm/rtserial.h -> rtdm/serial.h
      rtdm/rttesting.h -> rtdm/testing.h
      rtdm/rtipc.h -> rtdm/ipc.h
      0e9d748a
  13. 29 Jun, 2013 1 commit
  14. 11 Nov, 2012 1 commit
    • Wolfgang Grandegger's avatar
      cobalt/drivers/serial: introduce driver for IMX SOCs UARTs · 59fadd67
      Wolfgang Grandegger authored
      This RTserial driver is for the Freescale IMX internal UART compatible
      controllers. It has been tested with Freescale's 3.0.15 kernel on an
      i.MX53 and i.MX6Q board but it should work with more recent mainline
      kernel versions as well. The modem control and line state is handled
      similar to the 16550A UART, if possible. But this part is still weak
      and not very well tested.
      Signed-off-by: default avatarWolfgang Grandegger <wg@denx.de>
      59fadd67