Re: Multiple drivers for same hardware:, was: DRM and pci_driver conversion

From: James Simmons (jsimmons_at_infradead.org)
Date: 10/28/03

  • Next message: David S. Miller: "Re: status of ipchains in 2.6?"
    Date:	Tue, 28 Oct 2003 18:00:38 +0000 (GMT)
    To: Linus Torvalds <torvalds@osdl.org>
    
    

    > Since they have to co-operate some way on the resources _anyway_, they'll
    > just need to work it out amongst themselves.
    >
    > One common case is to have a "arbitration driver" that tends to do the
    > actual low-level accesses and is one level of abstraction over the
    > hardware (papers over trivial differences in hardware). An example of this
    > would be the old-style ISA DMA infrastructure (now happily pretty much
    > dead), where the "DMA driver" was just a trivial layer that had some basic
    > allocation/deallocation and had somewhat nicer access routines than the
    > raw IO accesses, but didn't do much more.

    I already have thought ahead about this issue. That is why one of the
    major changes to the framebuffer layer was to seperate the driver data
    into struct fb_info and a struct xxx_par. The idea was the data in struct
    fb_info was for the framebuffer layer and the data in struct xxx_par could
    be shared with other interfaces like DRI. The par idea can be extended
    further and we could use a common structure between a low level text mode
    console driver and a graphics driver. For example mdacon and hgafb.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: David S. Miller: "Re: status of ipchains in 2.6?"

    Relevant Pages

    • Telecom Clock driver for MPCBL0010 ATCA compute blade.
      ... The following is a driver I would like to see included in the base kernel. ... It allows OS controll of a device that synchronizes signaling hardware across a ATCA chassis. ... The telecom clock hardware doesn't interact much with the operating system, ... struct file *filp, unsigned int cmd, unsigned long arg) ...
      (Linux-Kernel)
    • [PATCH] [TRIVIAL] Fixing occurrences of "the the "
      ... Registering a driver using platform_driver_probeworks just like ... Free all pages associated with DMA buffers, the buffers and pages lists, and ... * hw - Struct containing variables accessed by shared code ... * This option is used to tune the the maximum retransmission attempts ...
      (Linux-Kernel)
    • Re: [PATCH] [TRIVIAL] Fixing occurrences of "the the "
      ... Registering a driver using platform_driver_probeworks just like ... Free all pages associated with DMA buffers, the buffers and pages lists, and ... * hw - Struct containing variables accessed by shared code ... * This option is used to tune the the maximum retransmission attempts ...
      (Linux-Kernel)
    • Re: [PATCH V2] ipwireless_cs driver for 4G PC Card
      ... +IPWIRELESS DRIVER ... +static struct timing_stats { ... +static void end_read_timing ... +/* Number of bytes in NL packet header (can not do ...
      (Linux-Kernel)
    • [RFC] SPI core
      ... +config SPI ... +# Makefile for the kernel spi bus driver. ... * spi_add_adapter - register a new SPI bus adapter ... +static int spidev_open(struct inode *inode, ...
      (Linux-Kernel)