pcmcia_compat.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * PCMCIA 16-bit compatibility functions
  3. *
  4. * The initial developer of the original code is David A. Hinds
  5. * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds
  6. * are Copyright (C) 1999 David A. Hinds. All Rights Reserved.
  7. *
  8. * Copyright (C) 2004 Dominik Brodowski
  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 version 2 as
  12. * published by the Free Software Foundation.
  13. *
  14. */
  15. #include <linux/config.h>
  16. #include <linux/module.h>
  17. #include <linux/init.h>
  18. #define IN_CARD_SERVICES
  19. #include <pcmcia/cs_types.h>
  20. #include <pcmcia/cs.h>
  21. #include <pcmcia/bulkmem.h>
  22. #include <pcmcia/cistpl.h>
  23. #include <pcmcia/ds.h>
  24. #include <pcmcia/ss.h>
  25. #include "cs_internal.h"
  26. int pcmcia_get_first_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
  27. {
  28. return pccard_get_first_tuple(p_dev->socket, p_dev->func, tuple);
  29. }
  30. EXPORT_SYMBOL(pcmcia_get_first_tuple);
  31. int pcmcia_get_next_tuple(struct pcmcia_device *p_dev, tuple_t *tuple)
  32. {
  33. return pccard_get_next_tuple(p_dev->socket, p_dev->func, tuple);
  34. }
  35. EXPORT_SYMBOL(pcmcia_get_next_tuple);
  36. int pcmcia_get_tuple_data(struct pcmcia_device *p_dev, tuple_t *tuple)
  37. {
  38. return pccard_get_tuple_data(p_dev->socket, tuple);
  39. }
  40. EXPORT_SYMBOL(pcmcia_get_tuple_data);
  41. int pcmcia_parse_tuple(struct pcmcia_device *p_dev, tuple_t *tuple, cisparse_t *parse)
  42. {
  43. return pccard_parse_tuple(tuple, parse);
  44. }
  45. EXPORT_SYMBOL(pcmcia_parse_tuple);
  46. int pcmcia_validate_cis(struct pcmcia_device *p_dev, cisinfo_t *info)
  47. {
  48. return pccard_validate_cis(p_dev->socket, p_dev->func, info);
  49. }
  50. EXPORT_SYMBOL(pcmcia_validate_cis);
  51. int pcmcia_reset_card(struct pcmcia_device *p_dev, client_req_t *req)
  52. {
  53. return pccard_reset_card(p_dev->socket);
  54. }
  55. EXPORT_SYMBOL(pcmcia_reset_card);