18e99ea8dSJohannes Berg /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 28e99ea8dSJohannes Berg /* 38e99ea8dSJohannes Berg * Copyright (C) 2012-2014 Intel Corporation 48e99ea8dSJohannes Berg * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 58e99ea8dSJohannes Berg * Copyright (C) 2016-2017 Intel Deutschland GmbH 64da46a06SHaim Dreyfuss * Copyright (C) 2021-2022 Intel Corporation 78e99ea8dSJohannes Berg */ 8d172a5efSJohannes Berg #ifndef __iwl_fw_api_offload_h__ 9d172a5efSJohannes Berg #define __iwl_fw_api_offload_h__ 10d172a5efSJohannes Berg 11d172a5efSJohannes Berg /** 12d172a5efSJohannes Berg * enum iwl_prot_offload_subcmd_ids - protocol offload commands 13d172a5efSJohannes Berg */ 14d172a5efSJohannes Berg enum iwl_prot_offload_subcmd_ids { 15d172a5efSJohannes Berg /** 16219ed58fSHaim Dreyfuss * @WOWLAN_WAKE_PKT_NOTIFICATION: Notification in &struct iwl_wowlan_wake_pkt_notif 17219ed58fSHaim Dreyfuss */ 18219ed58fSHaim Dreyfuss WOWLAN_WAKE_PKT_NOTIFICATION = 0xFC, 19219ed58fSHaim Dreyfuss 20219ed58fSHaim Dreyfuss /** 214da46a06SHaim Dreyfuss * @WOWLAN_INFO_NOTIFICATION: Notification in &struct iwl_wowlan_info_notif 224da46a06SHaim Dreyfuss */ 234da46a06SHaim Dreyfuss WOWLAN_INFO_NOTIFICATION = 0xFD, 244da46a06SHaim Dreyfuss 254da46a06SHaim Dreyfuss /** 26c39e718aSHaim Dreyfuss * @D3_END_NOTIFICATION: End D3 state notification 27c39e718aSHaim Dreyfuss */ 28c39e718aSHaim Dreyfuss D3_END_NOTIFICATION = 0xFE, 29c39e718aSHaim Dreyfuss 30c39e718aSHaim Dreyfuss /** 31*43413a36SJohannes Berg * @STORED_BEACON_NTF: &struct iwl_stored_beacon_notif_v2 or 32*43413a36SJohannes Berg * &struct iwl_stored_beacon_notif_v3 33d172a5efSJohannes Berg */ 34d172a5efSJohannes Berg STORED_BEACON_NTF = 0xFF, 35d172a5efSJohannes Berg }; 36d172a5efSJohannes Berg 37d172a5efSJohannes Berg #define MAX_STORED_BEACON_SIZE 600 38d172a5efSJohannes Berg 39d172a5efSJohannes Berg /** 40fb3fac5fSGregory Greenman * struct iwl_stored_beacon_notif_common - Stored beacon notif common fields 41d172a5efSJohannes Berg * 42d172a5efSJohannes Berg * @system_time: system time on air rise 43d172a5efSJohannes Berg * @tsf: TSF on air rise 44d172a5efSJohannes Berg * @beacon_timestamp: beacon on air rise 45d172a5efSJohannes Berg * @band: band, matches &RX_RES_PHY_FLAGS_BAND_24 definition 46d172a5efSJohannes Berg * @channel: channel this beacon was received on 47d172a5efSJohannes Berg * @rates: rate in ucode internal format 48d172a5efSJohannes Berg * @byte_count: frame's byte count 49d172a5efSJohannes Berg */ 50fb3fac5fSGregory Greenman struct iwl_stored_beacon_notif_common { 51d172a5efSJohannes Berg __le32 system_time; 52d172a5efSJohannes Berg __le64 tsf; 53d172a5efSJohannes Berg __le32 beacon_timestamp; 54d172a5efSJohannes Berg __le16 band; 55d172a5efSJohannes Berg __le16 channel; 56d172a5efSJohannes Berg __le32 rates; 57d172a5efSJohannes Berg __le32 byte_count; 58fb3fac5fSGregory Greenman } __packed; 59fb3fac5fSGregory Greenman 60fb3fac5fSGregory Greenman /** 61fb3fac5fSGregory Greenman * struct iwl_stored_beacon_notif - Stored beacon notification 62fb3fac5fSGregory Greenman * 63fb3fac5fSGregory Greenman * @common: fields common for all versions 64fb3fac5fSGregory Greenman * @data: beacon data, length in @byte_count 65fb3fac5fSGregory Greenman */ 66fb3fac5fSGregory Greenman struct iwl_stored_beacon_notif_v2 { 67fb3fac5fSGregory Greenman struct iwl_stored_beacon_notif_common common; 68d172a5efSJohannes Berg u8 data[MAX_STORED_BEACON_SIZE]; 69d172a5efSJohannes Berg } __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_2 */ 70d172a5efSJohannes Berg 71fb3fac5fSGregory Greenman /** 72fb3fac5fSGregory Greenman * struct iwl_stored_beacon_notif_v3 - Stored beacon notification 73fb3fac5fSGregory Greenman * 74fb3fac5fSGregory Greenman * @common: fields common for all versions 75fb3fac5fSGregory Greenman * @sta_id: station for which the beacon was received 76fb3fac5fSGregory Greenman * @reserved: reserved for alignment 77fb3fac5fSGregory Greenman * @data: beacon data, length in @byte_count 78fb3fac5fSGregory Greenman */ 79fb3fac5fSGregory Greenman struct iwl_stored_beacon_notif_v3 { 80fb3fac5fSGregory Greenman struct iwl_stored_beacon_notif_common common; 81fb3fac5fSGregory Greenman u8 sta_id; 82fb3fac5fSGregory Greenman u8 reserved[3]; 83fb3fac5fSGregory Greenman u8 data[MAX_STORED_BEACON_SIZE]; 84fb3fac5fSGregory Greenman } __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_3 */ 85fb3fac5fSGregory Greenman 86d172a5efSJohannes Berg #endif /* __iwl_fw_api_offload_h__ */ 87