sdhci-of.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * OpenFirmware bindings for Secure Digital Host Controller Interface.
  3. *
  4. * Copyright (c) 2007 Freescale Semiconductor, Inc.
  5. * Copyright (c) 2009 MontaVista Software, Inc.
  6. *
  7. * Authors: Xiaobo Xie <X.Xie@freescale.com>
  8. * Anton Vorontsov <avorontsov@ru.mvista.com>
  9. *
  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.
  14. */
  15. #ifndef __SDHCI_OF_H
  16. #define __SDHCI_OF_H
  17. #include <linux/types.h>
  18. #include "sdhci.h"
  19. struct sdhci_of_data {
  20. unsigned int quirks;
  21. struct sdhci_ops ops;
  22. };
  23. struct sdhci_of_host {
  24. unsigned int clock;
  25. u16 xfer_mode_shadow;
  26. };
  27. extern u32 sdhci_be32bs_readl(struct sdhci_host *host, int reg);
  28. extern u16 sdhci_be32bs_readw(struct sdhci_host *host, int reg);
  29. extern u8 sdhci_be32bs_readb(struct sdhci_host *host, int reg);
  30. extern void sdhci_be32bs_writel(struct sdhci_host *host, u32 val, int reg);
  31. extern void sdhci_be32bs_writew(struct sdhci_host *host, u16 val, int reg);
  32. extern void sdhci_be32bs_writeb(struct sdhci_host *host, u8 val, int reg);
  33. extern struct sdhci_of_data sdhci_esdhc;
  34. extern struct sdhci_of_data sdhci_hlwd;
  35. #endif /* __SDHCI_OF_H */