1 2 /* 3 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 21 22 23 24 25 26 27 28 29 30 #ifndef _UNIFORM_DESCRIPTOR_HEADER_H_ 31 #define _UNIFORM_DESCRIPTOR_HEADER_H_ 32 #if !defined(__ASSEMBLER__) 33 #endif 34 35 #define NUM_OF_DWORDS_UNIFORM_DESCRIPTOR_HEADER 1 36 37 38 struct uniform_descriptor_header { 39 uint32_t owner : 4, 40 buffer_type : 4, 41 reserved_0a : 24; 42 }; 43 44 45 46 47 #define UNIFORM_DESCRIPTOR_HEADER_OWNER_OFFSET 0x00000000 48 #define UNIFORM_DESCRIPTOR_HEADER_OWNER_LSB 0 49 #define UNIFORM_DESCRIPTOR_HEADER_OWNER_MSB 3 50 #define UNIFORM_DESCRIPTOR_HEADER_OWNER_MASK 0x0000000f 51 52 53 54 55 #define UNIFORM_DESCRIPTOR_HEADER_BUFFER_TYPE_OFFSET 0x00000000 56 #define UNIFORM_DESCRIPTOR_HEADER_BUFFER_TYPE_LSB 4 57 #define UNIFORM_DESCRIPTOR_HEADER_BUFFER_TYPE_MSB 7 58 #define UNIFORM_DESCRIPTOR_HEADER_BUFFER_TYPE_MASK 0x000000f0 59 60 61 62 63 #define UNIFORM_DESCRIPTOR_HEADER_RESERVED_0A_OFFSET 0x00000000 64 #define UNIFORM_DESCRIPTOR_HEADER_RESERVED_0A_LSB 8 65 #define UNIFORM_DESCRIPTOR_HEADER_RESERVED_0A_MSB 31 66 #define UNIFORM_DESCRIPTOR_HEADER_RESERVED_0A_MASK 0xffffff00 67 68 69 70 #endif 71