Merge remote-tracking branch 'cleancache/linux-next'
[linux-2.6/next.git] / drivers / mmc / host / sdhci-of.h
blobad09ad9915d84b4a93cb4e7999c2e53d648c6761
1 /*
2 * OpenFirmware bindings for Secure Digital Host Controller Interface.
4 * Copyright (c) 2007 Freescale Semiconductor, Inc.
5 * Copyright (c) 2009 MontaVista Software, Inc.
7 * Authors: Xiaobo Xie <X.Xie@freescale.com>
8 * Anton Vorontsov <avorontsov@ru.mvista.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or (at
13 * your option) any later version.
16 #ifndef __SDHCI_OF_H
17 #define __SDHCI_OF_H
19 #include <linux/types.h>
20 #include "sdhci.h"
22 struct sdhci_of_data {
23 unsigned int quirks;
24 struct sdhci_ops ops;
27 struct sdhci_of_host {
28 unsigned int clock;
29 u16 xfer_mode_shadow;
32 extern u32 sdhci_be32bs_readl(struct sdhci_host *host, int reg);
33 extern u16 sdhci_be32bs_readw(struct sdhci_host *host, int reg);
34 extern u8 sdhci_be32bs_readb(struct sdhci_host *host, int reg);
35 extern void sdhci_be32bs_writel(struct sdhci_host *host, u32 val, int reg);
36 extern void sdhci_be32bs_writew(struct sdhci_host *host, u16 val, int reg);
37 extern void sdhci_be32bs_writeb(struct sdhci_host *host, u8 val, int reg);
39 extern struct sdhci_of_data sdhci_esdhc;
40 extern struct sdhci_of_data sdhci_hlwd;
42 #endif /* __SDHCI_OF_H */