Signed-off-by: Arnaud Lacombe <lacombar@xxxxxxxxx> --- include/linux/compat-2.6.18.h | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/linux/compat-2.6.18.h b/include/linux/compat-2.6.18.h index 5e0182b..a45cfc7 100644 --- a/include/linux/compat-2.6.18.h +++ b/include/linux/compat-2.6.18.h @@ -8,6 +8,30 @@ #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) +struct hwrng +{ + const char *name; + int (*init)(struct hwrng *rng); + void (*cleanup)(struct hwrng *rng); + int (*data_present)(struct hwrng *rng); + int (*data_read)(struct hwrng *rng, u32 *data); + unsigned long priv; + + /* internal. */ + struct list_head list; +}; + +static inline int +hwrng_register(struct hwrng *rng) +{ + return -ENOSYS; +} + +static void +hwrng_unregister(struct hwrng *rng) +{ +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)) */ #endif /* LINUX_26_18_COMPAT_H */ -- 1.7.2.30.gc37d7.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html