Path: blob/main/sys/contrib/dev/iwlwifi/fw/api/offload.h
48426 views
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */1/*2* Copyright (C) 2012-2014 Intel Corporation3* Copyright (C) 2013-2015 Intel Mobile Communications GmbH4* Copyright (C) 2016-2017 Intel Deutschland GmbH5* Copyright (C) 2021-2025 Intel Corporation6*/7#ifndef __iwl_fw_api_offload_h__8#define __iwl_fw_api_offload_h__910/**11* enum iwl_prot_offload_subcmd_ids - protocol offload commands12*/13enum iwl_prot_offload_subcmd_ids {14/**15* @WOWLAN_WAKE_PKT_NOTIFICATION: Notification in &struct iwl_wowlan_wake_pkt_notif16*/17WOWLAN_WAKE_PKT_NOTIFICATION = 0xFC,1819/**20* @WOWLAN_INFO_NOTIFICATION: Notification in21* &struct iwl_wowlan_info_notif_v1, iwl_wowlan_info_notif_v3,22* or &struct iwl_wowlan_info_notif23*/24WOWLAN_INFO_NOTIFICATION = 0xFD,2526/**27* @D3_END_NOTIFICATION: End D3 state notification28*/29D3_END_NOTIFICATION = 0xFE,3031/**32* @STORED_BEACON_NTF: &struct iwl_stored_beacon_notif_v2 or33* &struct iwl_stored_beacon_notif34*/35STORED_BEACON_NTF = 0xFF,36};3738#define MAX_STORED_BEACON_SIZE 6003940/**41* struct iwl_stored_beacon_notif_common - Stored beacon notif common fields42*43* @system_time: system time on air rise44* @tsf: TSF on air rise45* @beacon_timestamp: beacon on air rise46* @band: band, matches &RX_RES_PHY_FLAGS_BAND_24 definition47* @channel: channel this beacon was received on48* @rates: rate in ucode internal format49* @byte_count: frame's byte count50*/51struct iwl_stored_beacon_notif_common {52__le32 system_time;53__le64 tsf;54__le32 beacon_timestamp;55__le16 band;56__le16 channel;57__le32 rates;58__le32 byte_count;59} __packed;6061/**62* struct iwl_stored_beacon_notif_v2 - Stored beacon notification63*64* @common: fields common for all versions65* @data: beacon data, length in @byte_count66*/67struct iwl_stored_beacon_notif_v2 {68struct iwl_stored_beacon_notif_common common;69u8 data[MAX_STORED_BEACON_SIZE];70} __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_2 */7172/**73* struct iwl_stored_beacon_notif - Stored beacon notification74*75* @common: fields common for all versions76* @sta_id: station for which the beacon was received77* @reserved: reserved for alignment78* @data: beacon data, length in @byte_count79*/80struct iwl_stored_beacon_notif {81struct iwl_stored_beacon_notif_common common;82u8 sta_id;83u8 reserved[3];84u8 data[MAX_STORED_BEACON_SIZE];85} __packed; /* WOWLAN_STROED_BEACON_INFO_S_VER_3, _VER_4 */8687#endif /* __iwl_fw_api_offload_h__ */888990