rom.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Copyright (c) 2013 Qualcomm Atheros, Inc.
  3. * Copyright (c) 2016 Oleksij Rempel <linux@rempel-privat.de>
  4. *
  5. * All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted (subject to the limitations in the
  9. * disclaimer below) provided that the following conditions are met:
  10. *
  11. * * Redistributions of source code must retain the above copyright
  12. * notice, this list of conditions and the following disclaimer.
  13. *
  14. * * Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the
  17. * distribution.
  18. *
  19. * * Neither the name of Qualcomm Atheros nor the names of its
  20. * contributors may be used to endorse or promote products derived
  21. * from this software without specific prior written permission.
  22. *
  23. * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
  24. * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
  25. * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
  26. * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  27. * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  28. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  29. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  30. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  31. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  32. * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  33. * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
  34. * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
  35. * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  36. */
  37. #ifndef _ATH_ROM_H_
  38. #define _ATH_ROM_H_
  39. #include <dt_defs.h>
  40. #include <hif_api.h>
  41. #include <htc.h>
  42. int strcmp(const char *s1, const char *s2);
  43. LOCAL BOOLEAN bSet_configuration(void);
  44. LOCAL void HTCControlSvcProcessMsg(HTC_ENDPOINT_ID EndpointID,
  45. adf_nbuf_t hdr_buf, adf_nbuf_t pBuffers, void *arg);
  46. LOCAL void HTCMsgRecvHandler(adf_nbuf_t hdr_buf,
  47. adf_nbuf_t buffer, void *context);
  48. void athos_indirection_table_install(void);
  49. void HIFusb_DescTraceDump(void);
  50. void _HIFusb_isr_handler(hif_handle_t);
  51. void _HIFusb_start(hif_handle_t);
  52. void mUsbEPinHighBandSet(uint8_t EPn, uint8_t dir, uint16_t size);
  53. void mUsbEPMap(uint8_t EPn, uint8_t MAP);
  54. void mUsbEPMxPtSzHigh(uint8_t EPn, uint8_t dir, uint16_t size);
  55. void mUsbEPMxPtSzLow(uint8_t EPn, uint8_t dir, uint16_t size);
  56. void mUsbFIFOConfig(uint8_t FIFOn, uint8_t cfg);
  57. void mUsbFIFOMap(uint8_t FIFOn, uint8_t MAP);
  58. #endif /* _ATH_ROM_H_ */