[etherlab-users] EtherCAT stack for 2.6.24

Florian Pose fp at igh-essen.com
Tue Feb 19 15:28:57 CET 2008

Hi Sergej,

thanks for your patches!

On Tue, Feb 19, 2008 at 03:17:01PM +0100, Sergej Stepanov wrote:
> 1. Backward compatibility was done with KERNEL_VERSION(..) macro.

Does 2.6.24 no provide the kobject_init() function any more?

> 2. it was fixed many warnings with EC_WRITE_U16-/EC_WRITE_U32-macro.

I don't understand, why this is necessary. If you take a closer look at
the macros, the pointers are internally typecasted, f. e.:

#define EC_WRITE_U32(DATA, VAL) \
    do { \
        *((uint32_t *) (DATA)) = (uint32_t) (VAL); \
        cpu_to_le32s(DATA); \
    } while (0)

Do you get warnings otherwise?

> 3. i found somewhere in internet the equivalent,
>    and i had no other idea for cpu_khz-variable
>    that is why i did for powerpc following (for a while):

The references to cpu_khz and get_cycles() will disappear in version

Best regards,
Florian Pose


More information about the Etherlab-users mailing list