Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2003-2004, NVIDIA CORPORATION. All rights reserved.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0019  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0020  * DEALINGS IN THE SOFTWARE.
0021  */
0022 
0023 #ifndef _cl_fermi_memory_to_memory_format_a_h_
0024 #define _cl_fermi_memory_to_memory_format_a_h_
0025 
0026 #define NV9039_SET_OBJECT                                                                                  0x0000
0027 #define NV9039_SET_OBJECT_CLASS_ID                                                                           15:0
0028 #define NV9039_SET_OBJECT_ENGINE_ID                                                                         20:16
0029 
0030 #define NV9039_OFFSET_OUT_UPPER                                                                            0x0238
0031 #define NV9039_OFFSET_OUT_UPPER_VALUE                                                                         7:0
0032 
0033 #define NV9039_OFFSET_OUT                                                                                  0x023c
0034 #define NV9039_OFFSET_OUT_VALUE                                                                              31:0
0035 
0036 #define NV9039_LAUNCH_DMA                                                                                  0x0300
0037 #define NV9039_LAUNCH_DMA_SRC_INLINE                                                                          0:0
0038 #define NV9039_LAUNCH_DMA_SRC_INLINE_FALSE                                                             0x00000000
0039 #define NV9039_LAUNCH_DMA_SRC_INLINE_TRUE                                                              0x00000001
0040 #define NV9039_LAUNCH_DMA_SRC_MEMORY_LAYOUT                                                                   4:4
0041 #define NV9039_LAUNCH_DMA_SRC_MEMORY_LAYOUT_BLOCKLINEAR                                                0x00000000
0042 #define NV9039_LAUNCH_DMA_SRC_MEMORY_LAYOUT_PITCH                                                      0x00000001
0043 #define NV9039_LAUNCH_DMA_DST_MEMORY_LAYOUT                                                                   8:8
0044 #define NV9039_LAUNCH_DMA_DST_MEMORY_LAYOUT_BLOCKLINEAR                                                0x00000000
0045 #define NV9039_LAUNCH_DMA_DST_MEMORY_LAYOUT_PITCH                                                      0x00000001
0046 #define NV9039_LAUNCH_DMA_COMPLETION_TYPE                                                                   13:12
0047 #define NV9039_LAUNCH_DMA_COMPLETION_TYPE_FLUSH_DISABLE                                                0x00000000
0048 #define NV9039_LAUNCH_DMA_COMPLETION_TYPE_FLUSH_ONLY                                                   0x00000001
0049 #define NV9039_LAUNCH_DMA_COMPLETION_TYPE_RELEASE_SEMAPHORE                                            0x00000002
0050 #define NV9039_LAUNCH_DMA_INTERRUPT_TYPE                                                                    17:16
0051 #define NV9039_LAUNCH_DMA_INTERRUPT_TYPE_NONE                                                          0x00000000
0052 #define NV9039_LAUNCH_DMA_INTERRUPT_TYPE_INTERRUPT                                                     0x00000001
0053 #define NV9039_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE                                                             20:20
0054 #define NV9039_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE_FOUR_WORDS                                             0x00000000
0055 #define NV9039_LAUNCH_DMA_SEMAPHORE_STRUCT_SIZE_ONE_WORD                                               0x00000001
0056 
0057 #define NV9039_OFFSET_IN_UPPER                                                                             0x030c
0058 #define NV9039_OFFSET_IN_UPPER_VALUE                                                                          7:0
0059 
0060 #define NV9039_OFFSET_IN                                                                                   0x0310
0061 #define NV9039_OFFSET_IN_VALUE                                                                               31:0
0062 
0063 #define NV9039_PITCH_IN                                                                                    0x0314
0064 #define NV9039_PITCH_IN_VALUE                                                                                31:0
0065 
0066 #define NV9039_PITCH_OUT                                                                                   0x0318
0067 #define NV9039_PITCH_OUT_VALUE                                                                               31:0
0068 
0069 #define NV9039_LINE_LENGTH_IN                                                                              0x031c
0070 #define NV9039_LINE_LENGTH_IN_VALUE                                                                          31:0
0071 
0072 #define NV9039_LINE_COUNT                                                                                  0x0320
0073 #define NV9039_LINE_COUNT_VALUE                                                                              31:0
0074 #endif /* _cl_fermi_memory_to_memory_format_a_h_ */