ANDROID: mmc: Add vendor hooks

Add vendor hooks to support vendor-specific exception handling features.

Bug: 185083720

Change-Id: I30381ed9835338308f2b03856f510a2982db6e6a
Signed-off-by: fengmingli <mingli.feng@vivo.com>
This commit is contained in:
fengmingli
2021-04-19 10:07:48 +08:00
committed by Todd Kjos
parent 3bd9ad7eb4
commit e80bcd4627
7 changed files with 80 additions and 0 deletions

View File

@@ -17,6 +17,8 @@
#include <linux/dma-direction.h>
#include <linux/keyslot-manager.h>
#include <linux/android_vendor.h>
struct mmc_ios {
unsigned int clock; /* clock rate */
unsigned short vdd;
@@ -244,6 +246,7 @@ struct mmc_async_req {
struct mmc_slot {
int cd_irq;
bool cd_wake_enabled;
ANDROID_OEM_DATA_ARRAY(1, 2);
void *handler_priv;
};
@@ -482,6 +485,8 @@ struct mmc_host {
/* Host Software Queue support */
bool hsq_enabled;
ANDROID_OEM_DATA(1);
unsigned long private[] ____cacheline_aligned;
};