1*57e252bfSMichael Neumann /* 2*57e252bfSMichael Neumann * Copyright 2012 Advanced Micro Devices, Inc. 3*57e252bfSMichael Neumann * 4*57e252bfSMichael Neumann * Permission is hereby granted, free of charge, to any person obtaining a 5*57e252bfSMichael Neumann * copy of this software and associated documentation files (the "Software"), 6*57e252bfSMichael Neumann * to deal in the Software without restriction, including without limitation 7*57e252bfSMichael Neumann * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8*57e252bfSMichael Neumann * and/or sell copies of the Software, and to permit persons to whom the 9*57e252bfSMichael Neumann * Software is furnished to do so, subject to the following conditions: 10*57e252bfSMichael Neumann * 11*57e252bfSMichael Neumann * The above copyright notice and this permission notice shall be included in 12*57e252bfSMichael Neumann * all copies or substantial portions of the Software. 13*57e252bfSMichael Neumann * 14*57e252bfSMichael Neumann * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*57e252bfSMichael Neumann * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*57e252bfSMichael Neumann * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17*57e252bfSMichael Neumann * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18*57e252bfSMichael Neumann * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19*57e252bfSMichael Neumann * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20*57e252bfSMichael Neumann * OTHER DEALINGS IN THE SOFTWARE. 21*57e252bfSMichael Neumann * 22*57e252bfSMichael Neumann */ 23*57e252bfSMichael Neumann #ifndef CLEARSTATE_DEFS_H 24*57e252bfSMichael Neumann #define CLEARSTATE_DEFS_H 25*57e252bfSMichael Neumann 26*57e252bfSMichael Neumann enum section_id { 27*57e252bfSMichael Neumann SECT_NONE, 28*57e252bfSMichael Neumann SECT_CONTEXT, 29*57e252bfSMichael Neumann SECT_CLEAR, 30*57e252bfSMichael Neumann SECT_CTRLCONST 31*57e252bfSMichael Neumann }; 32*57e252bfSMichael Neumann 33*57e252bfSMichael Neumann struct cs_extent_def { 34*57e252bfSMichael Neumann const unsigned int *extent; 35*57e252bfSMichael Neumann const unsigned int reg_index; 36*57e252bfSMichael Neumann const unsigned int reg_count; 37*57e252bfSMichael Neumann }; 38*57e252bfSMichael Neumann 39*57e252bfSMichael Neumann struct cs_section_def { 40*57e252bfSMichael Neumann const struct cs_extent_def *section; 41*57e252bfSMichael Neumann const enum section_id id; 42*57e252bfSMichael Neumann }; 43*57e252bfSMichael Neumann 44*57e252bfSMichael Neumann #endif 45