|
@@ -58,6 +58,18 @@ struct mmc_host_ops {
|
|
*
|
|
*
|
|
* Also note that these functions might sleep, so don't call them
|
|
* Also note that these functions might sleep, so don't call them
|
|
* in the atomic contexts!
|
|
* in the atomic contexts!
|
|
|
|
+ *
|
|
|
|
+ * Return values for the get_ro callback should be:
|
|
|
|
+ * 0 for a read/write card
|
|
|
|
+ * 1 for a read-only card
|
|
|
|
+ * -ENOSYS when not supported (equal to NULL callback)
|
|
|
|
+ * or a negative errno value when something bad happened
|
|
|
|
+ *
|
|
|
|
+ * Return values for the get_ro callback should be:
|
|
|
|
+ * 0 for a absent card
|
|
|
|
+ * 1 for a present card
|
|
|
|
+ * -ENOSYS when not supported (equal to NULL callback)
|
|
|
|
+ * or a negative errno value when something bad happened
|
|
*/
|
|
*/
|
|
void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
|
|
void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
|
|
int (*get_ro)(struct mmc_host *host);
|
|
int (*get_ro)(struct mmc_host *host);
|