UPSTREAM: Extract usbdev declarations to a separate header.

This is a simple refactor that aims to simplify maintenance and to
clarify file dependency inside the project.
Currently, most of the declarations reside in programmer.h making it
difficult to really understand file dependency.

(cherry picked from commit 69a03a3ab197491f206f68f37371c6d6f02ca015)

Original-Change-Id: I9d819ea1c5bd51289d02189c1dff367ce6d25617
Original-Signed-off-by: Antonio Vázquez Blanco <[email protected]>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/84982
Original-Tested-by: build bot (Jenkins) <[email protected]>
Original-Reviewed-by: Miklós Márton <[email protected]>
Original-Reviewed-by: Anastasia Klimchuk <[email protected]>
GitOrigin-RevId: 69a03a3ab197491f206f68f37371c6d6f02ca015
Cr-Build-Id: 8725681372638460689
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8725681372638460689
Copybot-Job-Name: flashrom-main-copybot-downstream
Change-Id: I7410eae31e95805b15fc1e73607f98534cb84b61
Signed-off-by: chromeos-ci-prod <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/6005885
Commit-Queue: Hsuan Ting Chen <[email protected]>
Tested-by: Hsuan Ting Chen <[email protected]>
Reviewed-by: Hsuan Ting Chen <[email protected]>
6 files changed
tree: 4a52ec8508ed2a8e13fb5f56581a70757dc50891
  1. .github/
  2. bindings/
  3. doc/
  4. include/
  5. meson_cross/
  6. platform/
  7. scripts/
  8. subprojects/
  9. tests/
  10. util/
  11. .gitattributes
  12. .gitignore
  13. 82802ab.c
  14. action_descriptor.c
  15. action_descriptor.h
  16. amd_imc.c
  17. asm106x.c
  18. at45db.c
  19. atahpt.c
  20. atapromise.c
  21. atavia.c
  22. big_lock.c
  23. big_lock.h
  24. bitbang_spi.c
  25. board_enable.c
  26. buspirate_spi.c
  27. cbtable.c
  28. ch341a_spi.c
  29. ch347_spi.c
  30. chipset_enable.c
  31. cli_classic.c
  32. cli_common.c
  33. cli_getopt.c
  34. cli_output.c
  35. COPYING
  36. cros_ec.c
  37. cros_ec_commands.h
  38. custom_baud.c
  39. custom_baud_darwin.c
  40. custom_baud_linux.c
  41. dediprog.c
  42. developerbox_spi.c
  43. digilent_spi.c
  44. DIR_METADATA
  45. dirtyjtag_spi.c
  46. dmi.c
  47. Doxyfile
  48. drkaiser.c
  49. dummyflasher.c
  50. edi.c
  51. en29lv640b.c
  52. erasure_layout.c
  53. file_lock.c
  54. flashchips.c
  55. flashchips_crosbl.c
  56. flashrom.c
  57. fmap.c
  58. ft2232_spi.c
  59. gfxnvidia.c
  60. helpers.c
  61. helpers_fileio.c
  62. hwaccess_physmap.c
  63. hwaccess_x86_io.c
  64. hwaccess_x86_msr.c
  65. i2c_helper_linux.c
  66. ich_descriptors.c
  67. ichspi.c
  68. internal.c
  69. internal_par.c
  70. ipc_lock.h
  71. it8212.c
  72. it87spi.c
  73. jedec.c
  74. jlink_spi.c
  75. known_boards.c
  76. layout.c
  77. libflashrom.c
  78. libflashrom.map
  79. linux_mtd.c
  80. linux_spi.c
  81. MAINTAINERS
  82. mcp6x_spi.c
  83. mediatek_i2c_spi.c
  84. meson.build
  85. meson_options.txt
  86. mstarddc_spi.c
  87. ni845x_spi.c
  88. nic3com.c
  89. nicintel.c
  90. nicintel_eeprom.c
  91. nicintel_spi.c
  92. nicnatsemi.c
  93. nicrealtek.c
  94. ogp_spi.c
  95. opaque.c
  96. OWNERS
  97. parade_lspcon.c
  98. parallel.c
  99. pcidev.c
  100. pickit2_spi.c
  101. pony_spi.c
  102. power.c
  103. power.h
  104. PRESUBMIT.cfg
  105. print.c
  106. print_wiki.c
  107. printlock.c
  108. processor_enable.c
  109. programmer.c
  110. programmer_table.c
  111. raiden_debug_spi.c
  112. rayer_spi.c
  113. README.chromiumos
  114. README.rst
  115. realtek_mst_i2c_spi.c
  116. s25f.c
  117. satamv.c
  118. satasii.c
  119. sb600spi.c
  120. serial.c
  121. serprog.c
  122. sfdp.c
  123. spi.c
  124. spi25.c
  125. spi25_statusreg.c
  126. spi95.c
  127. sst28sf040.c
  128. sst49lfxxxc.c
  129. sst_fwhub.c
  130. stlinkv3_spi.c
  131. stm50.c
  132. superio.c
  133. test_build.sh
  134. udelay.c
  135. udelay_dos.c
  136. unblocked_terms.txt
  137. usb_device.c
  138. usbblaster_spi.c
  139. usbdev.c
  140. VERSION
  141. w29ee011.c
  142. w39.c
  143. wbsio_spi.c
  144. writeprotect.c
  145. writeprotect_ranges.c