ANDROID: mmc: Add vendor hooks

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

Bug: 185083720

Change-Id: I30381ed9835338308f2b03856f510a2982db6e6a
Signed-off-by: Mingli Feng <mingli.feng@vivo.com>
Signed-off-by: Aking Chen <akingchen@vivo.com>
(cherry picked from commit e80bcd4627)
Signed-off-by: Aking Chen <akingchen@vivo.corp-partner.google.com>
This commit is contained in:
Aking Chen
2022-05-24 10:51:11 +08:00
committed by Carlos Llamas
parent 5b2030ed91
commit b5db5ef6b9
7 changed files with 56 additions and 0 deletions

View File

@@ -18,6 +18,8 @@
#include <linux/blk-crypto-profile.h>
#include <linux/android_kabi.h>
#include <linux/android_vendor.h>
struct mmc_ios {
unsigned int clock; /* clock rate */
unsigned short vdd;
@@ -290,6 +292,7 @@ struct mmc_slot {
int cd_irq;
bool cd_wake_enabled;
void *handler_priv;
ANDROID_OEM_DATA(1);
};
/**
@@ -531,6 +534,8 @@ struct mmc_host {
ANDROID_KABI_RESERVE(1);
ANDROID_KABI_RESERVE(2);
ANDROID_OEM_DATA(1);
unsigned long private[] ____cacheline_aligned;
};