core.h 910 字节
Newer Older
L
Linus Torvalds 已提交
1
/*
2
 *  linux/drivers/mmc/core/core.h
L
Linus Torvalds 已提交
3 4 5 6 7 8 9
 *
 *  Copyright (C) 2003 Russell King, All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
10 11
#ifndef _MMC_CORE_H
#define _MMC_CORE_H
L
Linus Torvalds 已提交
12 13 14 15
/* core-internal functions */
void mmc_init_card(struct mmc_card *card, struct mmc_host *host);
int mmc_register_card(struct mmc_card *card);
void mmc_remove_card(struct mmc_card *card);
R
Russell King 已提交
16 17 18 19 20

struct mmc_host *mmc_alloc_host_sysfs(int extra, struct device *dev);
int mmc_add_host_sysfs(struct mmc_host *host);
void mmc_remove_host_sysfs(struct mmc_host *host);
void mmc_free_host_sysfs(struct mmc_host *host);
P
Pierre Ossman 已提交
21 22

int mmc_schedule_work(struct work_struct *work);
D
David Howells 已提交
23
int mmc_schedule_delayed_work(struct delayed_work *work, unsigned long delay);
P
Pierre Ossman 已提交
24
void mmc_flush_scheduled_work(void);
L
Linus Torvalds 已提交
25
#endif