1a195fab0SMarcin Wojtas /*- 29eb1615fSMarcin Wojtas * SPDX-License-Identifier: BSD-3-Clause 3a195fab0SMarcin Wojtas * 4*adfed2d8SArthur Kiyanovski * Copyright (c) 2015-2023 Amazon.com, Inc. or its affiliates. 5a195fab0SMarcin Wojtas * All rights reserved. 6a195fab0SMarcin Wojtas * 7a195fab0SMarcin Wojtas * Redistribution and use in source and binary forms, with or without 8a195fab0SMarcin Wojtas * modification, are permitted provided that the following conditions 9a195fab0SMarcin Wojtas * are met: 10a195fab0SMarcin Wojtas * 11a195fab0SMarcin Wojtas * * Redistributions of source code must retain the above copyright 12a195fab0SMarcin Wojtas * notice, this list of conditions and the following disclaimer. 13a195fab0SMarcin Wojtas * * Redistributions in binary form must reproduce the above copyright 14a195fab0SMarcin Wojtas * notice, this list of conditions and the following disclaimer in 15a195fab0SMarcin Wojtas * the documentation and/or other materials provided with the 16a195fab0SMarcin Wojtas * distribution. 17a195fab0SMarcin Wojtas * * Neither the name of copyright holder nor the names of its 18a195fab0SMarcin Wojtas * contributors may be used to endorse or promote products derived 19a195fab0SMarcin Wojtas * from this software without specific prior written permission. 20a195fab0SMarcin Wojtas * 21a195fab0SMarcin Wojtas * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22a195fab0SMarcin Wojtas * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23a195fab0SMarcin Wojtas * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24a195fab0SMarcin Wojtas * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25a195fab0SMarcin Wojtas * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26a195fab0SMarcin Wojtas * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27a195fab0SMarcin Wojtas * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28a195fab0SMarcin Wojtas * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29a195fab0SMarcin Wojtas * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30a195fab0SMarcin Wojtas * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31a195fab0SMarcin Wojtas * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32a195fab0SMarcin Wojtas */ 33*adfed2d8SArthur Kiyanovski 34a195fab0SMarcin Wojtas #ifndef _ENA_COMMON_H_ 35a195fab0SMarcin Wojtas #define _ENA_COMMON_H_ 36a195fab0SMarcin Wojtas 3767ec48bbSMarcin Wojtas #define ENA_COMMON_SPEC_VERSION_MAJOR 2 3867ec48bbSMarcin Wojtas #define ENA_COMMON_SPEC_VERSION_MINOR 0 39a195fab0SMarcin Wojtas 40a195fab0SMarcin Wojtas /* ENA operates with 48-bit memory addresses. ena_mem_addr_t */ 41a195fab0SMarcin Wojtas struct ena_common_mem_addr { 42a195fab0SMarcin Wojtas uint32_t mem_addr_low; 43a195fab0SMarcin Wojtas 44a195fab0SMarcin Wojtas uint16_t mem_addr_high; 45a195fab0SMarcin Wojtas 46a195fab0SMarcin Wojtas /* MBZ */ 47a195fab0SMarcin Wojtas uint16_t reserved16; 48a195fab0SMarcin Wojtas }; 49a195fab0SMarcin Wojtas 50a195fab0SMarcin Wojtas #endif /* _ENA_COMMON_H_ */ 51