Instead of having it hard-coded as a define, pass it to the user in runtime.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -320,6 +320,8 @@ struct hl_info_hw_ip_info { · 319 unmodified lines | |||
| 320 | __u8 pad[2]; | 320 | __u8 pad[2]; |
| 321 | __u8 cpucp_version[HL_INFO_VERSION_MAX_LEN]; | 321 | __u8 cpucp_version[HL_INFO_VERSION_MAX_LEN]; |
| 322 | __u8 card_name[HL_INFO_CARD_NAME_MAX_LEN]; | 322 | __u8 card_name[HL_INFO_CARD_NAME_MAX_LEN]; |
| 323 | __u64 reserved2; | ||
| 324 | __u64 dram_page_size; | ||
| 323 | }; | 325 | }; |
| 324 | 326 | ||
| 325 | struct hl_info_dram_usage { | 327 | struct hl_info_dram_usage { |