1. 20 7月, 2007 35 次提交
  2. 19 7月, 2007 5 次提交
    • H
      UIO: Hilscher CIF card driver · bc4c4f45
      Hans-Jürgen Koch 提交于
      this is a patch that adds support for Hilscher CIF DeviceNet and
      Profibus cards. I tested it on a Kontron CPX board, and Thomas reviewed
      it.
      
      You can find the user space part here:
      
      http://www.osadl.org/projects/downloads/UIO/user/cif-0.1.0.tar.gz
      
      Notes: cif_api.c is the main file you want to look at. It contains the
      functions to open, close, mmap and so on. cif_dps.c adds functions
      specific to Profibus cards, and cif_dn.c contains functions for
      DeviceNet cards.  cif.c is a universal playground, it's just a small
      test program.  The user space part of this UIO driver is still work in
      progress, and not everything is tested yet. At the moment, the thread in
      cif_api.c contains some code that artificially makes the card generate
      interrupts, this was added for testing and will be removed later. But
      the driver already contains all the functions needed for useful
      operation, so it gives a good idea of how such a thing looks like.
      
      For comparison, here's what you get from the manufacturer
      (www.hilscher.com) when you ask for a Linux 2.6 driver:
      
      http://www.tglx.de/private/hjk/cif-orig-2.6.tar.bz2
      
      WARNING: Don't look at the code for too long, you might become sick :-)
      Signed-off-by: NHans-Jürgen Koch <hjk@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      bc4c4f45
    • H
      UIO: Add the User IO core code · beafc54c
      Hans J. Koch 提交于
      This interface allows the ability to write the majority of a driver in
      userspace with only a very small shell of a driver in the kernel itself.
      It uses a char device and sysfs to interact with a userspace process to
      process interrupts and control memory accesses.
      
      See the docbook documentation for more details on how to use this
      interface.
      
      From: Hans J. Koch <hjk@linutronix.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Benedikt Spranger <b.spranger@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      beafc54c
    • C
      Driver core: check return code of sysfs_create_link() · 2ee97caf
      Cornelia Huck 提交于
      Check for return value of sysfs_create_link() in device_add() and
      device_rename().  Add helper functions device_add_class_symlinks() and
      device_remove_class_symlinks() to make the code easier to read.
      
      [akpm@linux-foundation.org: fix unused var warnings]
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Acked-by: NJeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2ee97caf
    • D
      dev_vdbg(), available with -DVERBOSE_DEBUG · aebdc3b4
      David Brownell 提交于
      This defines a dev_vdbg() call, which is enabled with -DVERBOSE_DEBUG.
      When enabled, dev_vdbg() acts just like dev_dbg().  When disabled, it is a
      NOP ...  just like dev_dbg() without -DDEBUG.  The specific code was moved
      out of a USB patch, but lots of drivers have similar support.
      
      That is, code can now be written to use an additional level of debug
      output, selected at compile time.  Many driver authors have found this
      idiom to be very useful.  A typical usage model is for "normal" debug
      messages to focus on fault paths and not be very "chatty", so that those
      messages can be left on during normal operation without much of a
      performance or syslog load.  On the other hand "verbose" messages would be
      noisy enough that they wouldn't normally be enabled; they might even affect
      timings enough to change system or driver behavior.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      aebdc3b4
    • A
      PM: remove deprecated dpm_runtime_* routines · 3f8df781
      Alan Stern 提交于
      This patch (as933) removes the deprecated dpm_runtime_suspend() and
      dpm_runtime_resume() routines from the PM core.  The only user of
      those routines is the PCMCIA ds driver; local replacements are added.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3f8df781