boot_loader.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Copyright (c) 2015 Qualcomm Atheros, Inc.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. */
  15. /* This file contains the definitions for the boot loader
  16. * for the Qualcomm "Sparrow" 60 Gigabit wireless solution.
  17. */
  18. #ifndef BOOT_LOADER_EXPORT_H_
  19. #define BOOT_LOADER_EXPORT_H_
  20. struct bl_dedicated_registers_v1 {
  21. __le32 boot_loader_ready; /* 0x880A3C driver will poll
  22. * this Dword until BL will
  23. * set it to 1 (initial value
  24. * should be 0)
  25. */
  26. __le32 boot_loader_struct_version; /* 0x880A40 BL struct ver. */
  27. __le16 rf_type; /* 0x880A44 connected RF ID */
  28. __le16 rf_status; /* 0x880A46 RF status,
  29. * 0 is OK else error
  30. */
  31. __le32 baseband_type; /* 0x880A48 board type ID */
  32. u8 mac_address[6]; /* 0x880A4c BL mac address */
  33. u8 bl_version_major; /* 0x880A52 BL ver. major */
  34. u8 bl_version_minor; /* 0x880A53 BL ver. minor */
  35. __le16 bl_version_subminor; /* 0x880A54 BL ver. subminor */
  36. __le16 bl_version_build; /* 0x880A56 BL ver. build */
  37. /* valid only for version 2 and above */
  38. __le32 bl_assert_code; /* 0x880A58 BL Assert code */
  39. __le32 bl_assert_blink; /* 0x880A5C BL Assert Branch */
  40. __le32 bl_reserved[22]; /* 0x880A60 - 0x880AB4 */
  41. __le32 bl_magic_number; /* 0x880AB8 BL Magic number */
  42. } __packed;
  43. /* the following struct is the version 0 struct */
  44. struct bl_dedicated_registers_v0 {
  45. __le32 boot_loader_ready; /* 0x880A3C driver will poll
  46. * this Dword until BL will
  47. * set it to 1 (initial value
  48. * should be 0)
  49. */
  50. #define BL_READY (1) /* ready indication */
  51. __le32 boot_loader_struct_version; /* 0x880A40 BL struct ver. */
  52. __le32 rf_type; /* 0x880A44 connected RF ID */
  53. __le32 baseband_type; /* 0x880A48 board type ID */
  54. u8 mac_address[6]; /* 0x880A4c BL mac address */
  55. } __packed;
  56. #endif /* BOOT_LOADER_EXPORT_H_ */