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