| @@ -1,6 +1,6 @@ |
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 |
| 2 | 2 | * |
| 3 | | − * Copyright 2016-2019 HabanaLabs, Ltd. |
| 3 | + * Copyright 2016-2020 HabanaLabs, Ltd. |
| 4 | 4 | * All Rights Reserved. |
| 5 | 5 | * |
| 6 | 6 | */ |
| @@ -35,7 +35,8 @@ struct hl_eq_entry { · 28 unmodified lines |
| 35 | 35 | enum pq_init_status { |
| 36 | 36 | PQ_INIT_STATUS_NA = 0, |
| 37 | 37 | PQ_INIT_STATUS_READY_FOR_CP, |
| 38 | | − PQ_INIT_STATUS_READY_FOR_HOST |
| 38 | + PQ_INIT_STATUS_READY_FOR_HOST, |
| 39 | + PQ_INIT_STATUS_READY_FOR_CP_SINGLE_MSI |
| 39 | 40 | }; |
| 40 | 41 | |
| 41 | 42 | /* |
| @@ -350,11 +351,24 @@ struct armcp_sensor { · 308 unmodified lines |
| 350 | 351 | __le32 flags; |
| 351 | 352 | }; |
| 352 | 353 | |
| 354 | +/** |
| 355 | + * struct armcp_card_types - ASIC card type. |
| 356 | + * @armcp_card_type_pci: PCI card. |
| 357 | + * @armcp_card_type_pmc: PCI Mezzanine Card. |
| 358 | + */ |
| 359 | +enum armcp_card_types { |
| 360 | + armcp_card_type_pci, |
| 361 | + armcp_card_type_pmc |
| 362 | +}; |
| 363 | + |
| 353 | 364 | /** |
| 354 | 365 | * struct armcp_info - Info from ArmCP that is necessary to the host's driver |
| 355 | 366 | * @sensors: available sensors description. |
| 356 | 367 | * @kernel_version: ArmCP linux kernel version. |
| 357 | 368 | * @reserved: reserved field. |
| 369 | + * @card_type: card configuration type. |
| 370 | + * @card_location: in a server, each card has different connections topology |
| 371 | + * depending on its location (relevant for PMC card type) |
| 358 | 372 | * @cpld_version: CPLD programmed F/W version. |
| 359 | 373 | * @infineon_version: Infineon main DC-DC version. |
| 360 | 374 | * @fuse_version: silicon production FUSE information. |
| @@ -366,7 +380,9 @@ struct armcp_sensor { · 5 unmodified lines |
| 366 | 380 | struct armcp_info { |
| 367 | 381 | struct armcp_sensor sensors[ARMCP_MAX_SENSORS]; |
| 368 | 382 | __u8 kernel_version[VERSION_MAX_LEN]; |
| 369 | | − __le32 reserved[3]; |
| 383 | + __le32 reserved; |
| 384 | + __le32 card_type; |
| 385 | + __le32 card_location; |
| 370 | 386 | __le32 cpld_version; |
| 371 | 387 | __le32 infineon_version; |
| 372 | 388 | __u8 fuse_version[VERSION_MAX_LEN]; |