1 /** @file fwdnld_sdio.h 2 * 3 * @brief This file provides declarations for sdio interface abstraction 4 * 5 * Copyright 2023-2024 NXP 6 * 7 * SPDX-License-Identifier: BSD-3-Clause 8 * 9 */ 10 11 #ifndef _FWDNLD_SDIO_H_ 12 #define _FWDNLD_SDIO_H_ 13 #include <stdint.h> 14 #include "fwdnld_intf_abs.h" 15 16 typedef struct 17 { 18 uint32_t ioport; 19 } fwdnld_sdio_intf_specific; 20 21 #define GET_INTF_SDIO_IOPORT(x) \ 22 ({ \ 23 fwdnld_sdio_intf_specific *y = (fwdnld_sdio_intf_specific *)((x)->intf_s.intf_specific); \ 24 y->ioport; \ 25 }) 26 27 /** Firmware ready */ 28 #define FIRMWARE_READY 0xfedcU 29 30 extern fwdnld_intf_t *sdio_init_interface(void *settings); 31 32 #endif /*_FWDNLD_SDIO_H_*/ 33