From ddd86436f4e3643c04b797f858dab95d5f2e4de9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Dec 2015 15:00:15 +0000 Subject: fish --- backport-include/linux/mmc/core.h | 12 ++++++++++ backport-include/linux/mmc/host.h | 11 ++++++++++ backport-include/linux/mmc/sdio.h | 21 ++++++++++++++++++ backport-include/linux/mmc/sdio_func.h | 40 ++++++++++++++++++++++++++++++++++ backport-include/linux/mmc/sdio_ids.h | 14 ++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 backport-include/linux/mmc/core.h create mode 100644 backport-include/linux/mmc/host.h create mode 100644 backport-include/linux/mmc/sdio.h create mode 100644 backport-include/linux/mmc/sdio_func.h create mode 100644 backport-include/linux/mmc/sdio_ids.h (limited to 'backport-include/linux/mmc') diff --git a/backport-include/linux/mmc/core.h b/backport-include/linux/mmc/core.h new file mode 100644 index 0000000..02d7a98 --- /dev/null +++ b/backport-include/linux/mmc/core.h @@ -0,0 +1,12 @@ +#ifndef __BACKPORT_MMC_CORE_H +#define __BACKPORT_MMC_CORE_H +#include +#include_next + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) && \ + LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) +#define mmc_align_data_size LINUX_BACKPORT(mmc_align_data_size) +extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int); +#endif /* 2.6.24 - 2.6.26 */ + +#endif /* __BACKPORT_MMC_CORE_H */ diff --git a/backport-include/linux/mmc/host.h b/backport-include/linux/mmc/host.h new file mode 100644 index 0000000..49ca5c2 --- /dev/null +++ b/backport-include/linux/mmc/host.h @@ -0,0 +1,11 @@ +#ifndef __BACKPORT_MMC_HOST_H +#define __BACKPORT_MMC_HOST_H +#include +#include_next + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) +/* rename member in struct mmc_host */ +#define max_segs max_hw_segs +#endif + +#endif /* __BACKPORT_MMC_HOST_H */ diff --git a/backport-include/linux/mmc/sdio.h b/backport-include/linux/mmc/sdio.h new file mode 100644 index 0000000..31d8833 --- /dev/null +++ b/backport-include/linux/mmc/sdio.h @@ -0,0 +1,21 @@ +#ifndef __BACKPORT_MMC_SDIO_H +#define __BACKPORT_MMC_SDIO_H +#include +#include_next + +/* backports b4625dab */ +#ifndef SDIO_CCCR_REV_3_00 +#define SDIO_CCCR_REV_3_00 3 /* CCCR/FBR Version 3.00 */ +#endif +#ifndef SDIO_SDIO_REV_3_00 +#define SDIO_SDIO_REV_3_00 4 /* SDIO Spec Version 3.00 */ +#endif + +#ifndef SDIO_BUS_ECSI +#define SDIO_BUS_ECSI 0x20 /* Enable continuous SPI interrupt */ +#endif +#ifndef SDIO_BUS_SCSI +#define SDIO_BUS_SCSI 0x40 /* Support continuous SPI interrupt */ +#endif + +#endif /* __BACKPORT_MMC_SDIO_H */ diff --git a/backport-include/linux/mmc/sdio_func.h b/backport-include/linux/mmc/sdio_func.h new file mode 100644 index 0000000..f32cafc --- /dev/null +++ b/backport-include/linux/mmc/sdio_func.h @@ -0,0 +1,40 @@ +#ifndef __BACKPORT_MMC_SDIO_FUNC_H +#define __BACKPORT_MMC_SDIO_FUNC_H +#include +#include_next + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) +#define sdio_writeb_readb(func, write_byte, addr, err_ret) sdio_readb(func, addr, err_ret) +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34) +/* + * Backports da68c4eb25 + * sdio: introduce API for special power management features + * + * We simply carry around the data structures and flags, and + * make the host return no flags set by the driver. + * + * This is declared in mmc/pm.h upstream, but that files + * didn't exist before this commit and isn't included directly. + */ +typedef unsigned int mmc_pm_flag_t; + +#define MMC_PM_KEEP_POWER (1 << 0) /* preserve card power during suspend */ +#define MMC_PM_WAKE_SDIO_IRQ (1 << 1) /* wake up host system on SDIO IRQ assertion */ + +extern mmc_pm_flag_t sdio_get_host_pm_caps(struct sdio_func *func); +extern int sdio_set_host_pm_flags(struct sdio_func *func, mmc_pm_flag_t flags); +#endif + +#ifndef dev_to_sdio_func +#define dev_to_sdio_func(d) container_of(d, struct sdio_func, dev) +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) && \ + LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) +#define sdio_align_size LINUX_BACKPORT(sdio_align_size) +extern unsigned int sdio_align_size(struct sdio_func *func, unsigned int sz); +#endif /* 2.6.24 - 2.6.26 */ + +#endif /* __BACKPORT_MMC_SDIO_FUNC_H */ diff --git a/backport-include/linux/mmc/sdio_ids.h b/backport-include/linux/mmc/sdio_ids.h new file mode 100644 index 0000000..64fe8ec --- /dev/null +++ b/backport-include/linux/mmc/sdio_ids.h @@ -0,0 +1,14 @@ +#ifndef __BACKPORT_MMC_SDIO_IDS_H +#define __BACKPORT_MMC_SDIO_IDS_H +#include +#include_next + +#ifndef SDIO_CLASS_BT_AMP +#define SDIO_CLASS_BT_AMP 0x09 /* Type-A Bluetooth AMP interface */ +#endif + +#ifndef SDIO_DEVICE_ID_MARVELL_8688WLAN +#define SDIO_DEVICE_ID_MARVELL_8688WLAN 0x9104 +#endif + +#endif /* __BACKPORT_MMC_SDIO_IDS_H */ -- cgit v1.2.3