1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, v.1, (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://opensource.org/licenses/CDDL-1.0. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2014-2017 Cavium, Inc. 24 * Copyright 2025 Oxide Computer Company 25 */ 26 27 #ifndef _QEDE_TYPES_H 28 #define _QEDE_TYPES_H 29 30 typedef uint8_t u8; 31 typedef uint8_t U8; 32 typedef uint16_t u16; 33 typedef uint16_t U16; 34 typedef uint32_t u32; 35 typedef uint32_t U32; 36 typedef uint64_t u64; 37 typedef uint64_t U64; 38 39 typedef u16 __le16; 40 typedef u32 __le32; 41 typedef u64 __le64; 42 43 typedef int8_t s8; 44 typedef int16_t s16; 45 typedef int32_t s32; 46 typedef int64_t s64; 47 48 typedef void * int_ptr_t; 49 50 typedef int OSAL_BE32; 51 typedef void * osal_dpc_t; 52 typedef u64 dma_addr_t; 53 54 /* 55 * NOTE: This should be changed to 56 * u32 for 32-bit. Add appr. ifdef 57 * or kerenl type which suits this 58 * requirement 59 */ 60 typedef u64 osal_uintptr_t; 61 62 #endif /* !_QEDE_TYPES_H */ 63