usb_ehci_vct.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 "usb_ehci.h"
  22. #include "usb_ehci_core.h"
  23. int vct_ehci_hcd_init(u32 *hccr, u32 *hcor);
  24. /*
  25. * Create the appropriate control structures to manage
  26. * a new EHCI host controller.
  27. */
  28. int ehci_hcd_init(void)
  29. {
  30. int ret;
  31. u32 vct_hccr;
  32. u32 vct_hcor;
  33. /*
  34. * Init VCT specific stuff
  35. */
  36. ret = vct_ehci_hcd_init(&vct_hccr, &vct_hcor);
  37. if (ret)
  38. return ret;
  39. hccr = (struct ehci_hccr *)vct_hccr;
  40. hcor = (struct ehci_hcor *)vct_hcor;
  41. return 0;
  42. }
  43. /*
  44. * Destroy the appropriate control structures corresponding
  45. * the the EHCI host controller.
  46. */
  47. int ehci_hcd_stop(void)
  48. {
  49. return 0;
  50. }