xref: /freebsd/sys/contrib/dev/iwlwifi/fw/api/paging.h (revision 1323ec57)
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /*
3  * Copyright (C) 2005-2014 Intel Corporation
4  * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5  * Copyright (C) 2016-2017 Intel Deutschland GmbH
6  */
7 #ifndef __iwl_fw_api_paging_h__
8 #define __iwl_fw_api_paging_h__
9 
10 #define NUM_OF_FW_PAGING_BLOCKS	33 /* 32 for data and 1 block for CSS */
11 
12 /**
13  * struct iwl_fw_paging_cmd - paging layout
14  *
15  * Send to FW the paging layout in the driver.
16  *
17  * @flags: various flags for the command
18  * @block_size: the block size in powers of 2
19  * @block_num: number of blocks specified in the command.
20  * @device_phy_addr: virtual addresses from device side
21  */
22 struct iwl_fw_paging_cmd {
23 	__le32 flags;
24 	__le32 block_size;
25 	__le32 block_num;
26 	__le32 device_phy_addr[NUM_OF_FW_PAGING_BLOCKS];
27 } __packed; /* FW_PAGING_BLOCK_CMD_API_S_VER_1 */
28 
29 #endif /* __iwl_fw_api_paging_h__ */
30