RESENDING SINCE MAILING LIST HAS NOT YET RECEIVED IT YET...

-----Original Message-----
From: Strelchun, Timothy 
Sent: Friday, November 13, 2009 12:27 AM
To: 'directfb-dev@directfb.org'
Subject: [PATCH] linux-fusion-8.1.1 Dynamic Major Number improvement (was Re: 
Device ID issue in linux-fusion module)

Hi guys,

Here's a patch for linux-fusion-8.1.1 that handles dynamic major number 
generation.  In the interest of quickly getting this out, I have not stripped 
the original unmodified code (which the compile will revert back to if 
INTELCE_CHANGES is not defined).

I also attached a full patch for the changes we did as described below.  Not 
all, but most of the makefile changes are to custom the package work to build 
as a subcomponent in a different build environment.

  Files:  Makefile

    Modified to allow for proper building on kernel 2.6.28

  Files:  linux/drivers/char/fusion/Makefile-2.6
          linux/drivers/char/fusion/fusiondev.c
          tests/calls.c
          tests/latency.c
          tests/throughput.c
          tests/Makefile
          Makefile

    Modified makefiles to not depend on the host's kernel because the
    target's kernel is often different than the host's kernel and was
    modifying how the compile occurred.

    Modified makefile to include IntelCE_Version.o and use DFB_FUSION_NAME
    environment variable in KERNEL_INCLUDE path.

    Modified device registration to use a dynamically allocated major number.

    Added INTELCE_CHANGES define to the Makefile.

    Modified tests to use /dev/fusion0 instead of /dev/fusion/0.

    Modified the 'calls' test to not use the FCEF_ONEWAY flag, which caused
    failures on the FUSION_CALL_RETURN ioctl.

Regards,
Timothy

--

Timothy Strelchun
CE Software Engineering
Digital Home Group
Intel Corporation

The views expressed above are my own and not those of Intel

>-----Original Message-----
>From: directfb-dev-boun...@directfb.org 
>[mailto:directfb-dev-boun...@directfb.org] On Behalf Of Niels Roest
>Sent: Tuesday, November 10, 2009 1:02 PM
>To: Mark
>Cc: directfb-dev@directfb.org
>Subject: Re: [directfb-dev] Device ID issue in linux-fusion module
>
>As a quick comment:
>
>The device ID is indeed fixed, this is the "old fashioned" way of 
>assigning device IDs.
>In recent desktop linux environments the major number is now normally 
>configurable, the linux-fusion driver should be updatable to support 
>that. Note that some embedded devices do not support this, and embedded 
>systems in general do not suffer as strongly from major number clogging 
>as desktop systems. Open for patches though..
>
>Greets
>Niels

Attachment: linux-fusion-8.1.1_DynamicMajorNumber.diff
Description: linux-fusion-8.1.1_DynamicMajorNumber.diff

Attachment: linux-fusion-8.1.1_DynamicMajorNumberWith2628KernelAndMakefileTweaks.diff
Description: linux-fusion-8.1.1_DynamicMajorNumberWith2628KernelAndMakefileTweaks.diff

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to