PageRenderTime 51ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/scsi/isci/firmware/create_fw.h

https://bitbucket.org/slukk/jb-tsm-kernel-4.2
C Header | 77 lines | 38 code | 10 blank | 29 comment | 0 complexity | 797dad33288f98de08f5ead5d05784e0 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. #ifndef _CREATE_FW_H_
  2. #define _CREATE_FW_H_
  3. #include "../probe_roms.h"
  4. /* we are configuring for 2 SCUs */
  5. static const int num_elements = 2;
  6. /*
  7. * For all defined arrays:
  8. * elements 0-3 are for SCU0, ports 0-3
  9. * elements 4-7 are for SCU1, ports 0-3
  10. *
  11. * valid configurations for one SCU are:
  12. * P0 P1 P2 P3
  13. * ----------------
  14. * 0xF,0x0,0x0,0x0 # 1 x4 port
  15. * 0x3,0x0,0x4,0x8 # Phys 0 and 1 are a x2 port, phy 2 and phy 3 are each x1
  16. * # ports
  17. * 0x1,0x2,0xC,0x0 # Phys 0 and 1 are each x1 ports, phy 2 and phy 3 are a x2
  18. * # port
  19. * 0x3,0x0,0xC,0x0 # Phys 0 and 1 are a x2 port, phy 2 and phy 3 are a x2 port
  20. * 0x1,0x2,0x4,0x8 # Each phy is a x1 port (this is the default configuration)
  21. *
  22. * if there is a port/phy on which you do not wish to override the default
  23. * values, use the value assigned to UNINIT_PARAM (255).
  24. */
  25. /* discovery mode type (port auto config mode by default ) */
  26. /*
  27. * if there is a port/phy on which you do not wish to override the default
  28. * values, use the value "0000000000000000". SAS address of zero's is
  29. * considered invalid and will not be used.
  30. */
  31. #ifdef MPC
  32. static const int mode_type = SCIC_PORT_MANUAL_CONFIGURATION_MODE;
  33. static const __u8 phy_mask[2][4] = { {1, 2, 4, 8},
  34. {1, 2, 4, 8} };
  35. static const unsigned long long sas_addr[2][4] = { { 0x5FCFFFFFF0000001ULL,
  36. 0x5FCFFFFFF0000002ULL,
  37. 0x5FCFFFFFF0000003ULL,
  38. 0x5FCFFFFFF0000004ULL },
  39. { 0x5FCFFFFFF0000005ULL,
  40. 0x5FCFFFFFF0000006ULL,
  41. 0x5FCFFFFFF0000007ULL,
  42. 0x5FCFFFFFF0000008ULL } };
  43. #else /* APC (default) */
  44. static const int mode_type = SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE;
  45. static const __u8 phy_mask[2][4];
  46. static const unsigned long long sas_addr[2][4] = { { 0x5FCFFFFF00000001ULL,
  47. 0x5FCFFFFF00000001ULL,
  48. 0x5FCFFFFF00000001ULL,
  49. 0x5FCFFFFF00000001ULL },
  50. { 0x5FCFFFFF00000002ULL,
  51. 0x5FCFFFFF00000002ULL,
  52. 0x5FCFFFFF00000002ULL,
  53. 0x5FCFFFFF00000002ULL } };
  54. #endif
  55. /* Maximum number of concurrent device spin up */
  56. static const int max_num_concurrent_dev_spin_up = 1;
  57. /* enable of ssc operation */
  58. static const int enable_ssc;
  59. /* AFE_TX_AMP_CONTROL */
  60. static const unsigned int afe_tx_amp_control0 = 0x000bdd08;
  61. static const unsigned int afe_tx_amp_control1 = 0x000ffc00;
  62. static const unsigned int afe_tx_amp_control2 = 0x000b7c09;
  63. static const unsigned int afe_tx_amp_control3 = 0x000afc6e;
  64. static const char blob_name[] = "isci_firmware.bin";
  65. static const char sig[] = "ISCUOEMB";
  66. static const unsigned char version = 0x10;
  67. #endif