dwc_otg_attr.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* ==========================================================================
  2. * $File: //dwh/usb_iip/dev/software/otg/linux/drivers/dwc_otg_attr.h $
  3. * $Revision: #13 $
  4. * $Date: 2010/06/21 $
  5. * $Change: 1532021 $
  6. *
  7. * Synopsys HS OTG Linux Software Driver and documentation (hereinafter,
  8. * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless
  9. * otherwise expressly agreed to in writing between Synopsys and you.
  10. *
  11. * The Software IS NOT an item of Licensed Software or Licensed Product under
  12. * any End User Software License Agreement or Agreement for Licensed Product
  13. * with Synopsys or any supplement thereto. You are permitted to use and
  14. * redistribute this Software in source and binary forms, with or without
  15. * modification, provided that redistributions of source code must retain this
  16. * notice. You may not view, use, disclose, copy or distribute this file or
  17. * any information contained herein except pursuant to this license grant from
  18. * Synopsys. If you do not agree with this notice, including the disclaimer
  19. * below, then you are not authorized to use the Software.
  20. *
  21. * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS
  22. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24. * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS BE LIABLE FOR ANY DIRECT,
  25. * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  26. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  27. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  28. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  31. * DAMAGE.
  32. * ========================================================================== */
  33. #if !defined(__DWC_OTG_ATTR_H__)
  34. #define __DWC_OTG_ATTR_H__
  35. /** @file
  36. * This file contains the interface to the Linux device attributes.
  37. */
  38. extern struct device_attribute dev_attr_regoffset;
  39. extern struct device_attribute dev_attr_regvalue;
  40. extern struct device_attribute dev_attr_mode;
  41. extern struct device_attribute dev_attr_hnpcapable;
  42. extern struct device_attribute dev_attr_srpcapable;
  43. extern struct device_attribute dev_attr_hnp;
  44. extern struct device_attribute dev_attr_srp;
  45. extern struct device_attribute dev_attr_buspower;
  46. extern struct device_attribute dev_attr_bussuspend;
  47. extern struct device_attribute dev_attr_mode_ch_tim_en;
  48. extern struct device_attribute dev_attr_fr_interval;
  49. extern struct device_attribute dev_attr_busconnected;
  50. extern struct device_attribute dev_attr_gotgctl;
  51. extern struct device_attribute dev_attr_gusbcfg;
  52. extern struct device_attribute dev_attr_grxfsiz;
  53. extern struct device_attribute dev_attr_gnptxfsiz;
  54. extern struct device_attribute dev_attr_gpvndctl;
  55. extern struct device_attribute dev_attr_ggpio;
  56. extern struct device_attribute dev_attr_guid;
  57. extern struct device_attribute dev_attr_gsnpsid;
  58. extern struct device_attribute dev_attr_devspeed;
  59. extern struct device_attribute dev_attr_enumspeed;
  60. extern struct device_attribute dev_attr_hptxfsiz;
  61. extern struct device_attribute dev_attr_hprt0;
  62. #ifdef CONFIG_USB_DWC_OTG_LPM
  63. extern struct device_attribute dev_attr_lpm_response;
  64. extern struct device_attribute devi_attr_sleep_status;
  65. #endif
  66. extern void dwc_otg_attr_create(
  67. #ifdef LM_INTERFACE
  68. struct lm_device *dev
  69. #elif defined(PCI_INTERFACE)
  70. struct pci_dev *dev
  71. #endif
  72. );
  73. extern void dwc_otg_attr_remove(
  74. #ifdef LM_INTERFACE
  75. struct lm_device *dev
  76. #elif defined(PCI_INTERFACE)
  77. struct pci_dev *dev
  78. #endif
  79. );
  80. #endif