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