ehci-vct.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * (C) Copyright 2009 Stefan Roese <sr@denx.de>, DENX Software Engineering
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License as
  6. * published by the Free Software Foundation; either version 2 of
  7. * the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  17. * MA 02111-1307 USA
  18. */
  19. #include <common.h>
  20. #include <usb.h>
  21. #include "ehci.h"
  22. int vct_ehci_hcd_init(u32 *hccr, u32 *hcor);
  23. /*
  24. * Create the appropriate control structures to manage
  25. * a new EHCI host controller.
  26. */
  27. int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
  28. {
  29. int ret;
  30. u32 vct_hccr;
  31. u32 vct_hcor;
  32. /*
  33. * Init VCT specific stuff
  34. */
  35. ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor);
  36. if (ret)
  37. return ret;
  38. *hccr = (struct ehci_hccr *)vct_hccr;
  39. *hcor = (struct ehci_hcor *)vct_hcor;
  40. return 0;
  41. }
  42. /*
  43. * Destroy the appropriate control structures corresponding
  44. * the the EHCI host controller.
  45. */
  46. int ehci_hcd_stop(int index)
  47. {
  48. return 0;
  49. }