linux/drivers/net/wireless/ath/ath10k/swap.h

/* SPDX-License-Identifier: ISC */
/*
 * Copyright (c) 2015-2016 Qualcomm Atheros, Inc.
 */

#ifndef _SWAP_H_
#define _SWAP_H_

#define ATH10K_SWAP_CODE_SEG_BIN_LEN_MAX
#define ATH10K_SWAP_CODE_SEG_MAGIC_BYTES_SZ
#define ATH10K_SWAP_CODE_SEG_NUM_MAX
/* Currently only one swap segment is supported */
#define ATH10K_SWAP_CODE_SEG_NUM_SUPPORTED

struct ath10k_fw_file;

struct ath10k_swap_code_seg_tlv {} __packed;

struct ath10k_swap_code_seg_tail {} __packed;

ath10k_swap_code_seg_item __packed;

struct ath10k_swap_code_seg_hw_info {} __packed;

struct ath10k_swap_code_seg_info {};

int ath10k_swap_code_seg_configure(struct ath10k *ar,
				   const struct ath10k_fw_file *fw_file);
void ath10k_swap_code_seg_release(struct ath10k *ar,
				  struct ath10k_fw_file *fw_file);
int ath10k_swap_code_seg_init(struct ath10k *ar,
			      struct ath10k_fw_file *fw_file);

#endif