ten64-controller.h 653 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. #ifndef TEN64_CNTRL_H
  3. #define TEN64_CNTRL_H
  4. /**
  5. * struct t64uc_board_info - Board Information Structure
  6. * @mac: Base MAC address
  7. * @cpuId: Microcontroller unique serial number
  8. * @fwversion_major: Microcontroller version number (Major)
  9. * @fwversion_minor: Microcontroller version number (Minor)
  10. * @fwversion_patch: Microcontroller version number (Patch)
  11. */
  12. struct t64uc_board_info {
  13. u8 mac[6];
  14. u32 cpuId[4];
  15. u8 fwversion_major;
  16. u8 fwversion_minor;
  17. u8 fwversion_patch;
  18. } __packed;
  19. enum {
  20. TEN64_CNTRL_GET_BOARD_INFO,
  21. TEN64_CNTRL_10G_OFF,
  22. TEN64_CNTRL_10G_ON,
  23. TEN64_CNTRL_SET_NEXT_BOOTSRC
  24. };
  25. #endif