1 /******************************************************************************* 2 Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. 3 4 Permission is hereby granted, free of charge, to any person obtaining a 5 copy of this software and associated documentation files (the "Software"), 6 to deal in the Software without restriction, including without limitation 7 the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 and/or sell copies of the Software, and to permit persons to whom the 9 Software is furnished to do so, subject to the following conditions: 10 11 The above copyright notice and this permission notice shall be included in 12 all copies or substantial portions of the Software. 13 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20 DEALINGS IN THE SOFTWARE. 21 22 *******************************************************************************/ 23 #ifndef _cl006e_h_ 24 #define _cl006e_h_ 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 #include "nvtypes.h" 31 32 /* class NV10_CHANNEL_DMA */ 33 #define NV10_CHANNEL_DMA (0x0000006E) 34 #define NV06E_NOTIFIERS_MAXCOUNT 1 35 /* NvNotification[] fields and values */ 36 #define NV06E_NOTIFICATION_STATUS_ERROR_BAD_ARGUMENT (0x2000) 37 #define NV06E_NOTIFICATION_STATUS_ERROR_PROTECTION_FAULT (0x4000) 38 /* pio method data structure */ 39 typedef volatile struct _cl006e_tag0 { 40 NvV32 Reserved00[0x7c0]; 41 } Nv06eTypedef, Nv10ChannelDma; 42 #define NV06E_TYPEDEF Nv10ChannelDma 43 /* pio flow control data structure */ 44 typedef volatile struct _cl006e_tag1 { 45 NvV32 Ignored00[0x010]; 46 NvU32 Put; /* put offset, write only 0040-0043*/ 47 NvU32 Get; /* get offset, read only 0044-0047*/ 48 NvU32 Reference; /* reference value, read only 0048-004b*/ 49 NvV32 Ignored01[0x1]; 50 NvU32 SetReference; /* reference value, write only 0050-0053*/ 51 NvV32 Ignored02[0x3eb]; 52 } Nv06eControl, Nv10ControlDma; 53 /* fields and values */ 54 #define NV06E_NUMBER_OF_SUBCHANNELS (8) 55 #define NV06E_SET_OBJECT (0x00000000) 56 #define NV06E_SET_REFERENCE (0x00000050) 57 58 /* dma method descriptor format */ 59 #define NV06E_DMA_METHOD_ADDRESS 12:2 60 #define NV06E_DMA_METHOD_SUBCHANNEL 15:13 61 #define NV06E_DMA_METHOD_COUNT 28:18 62 #define NV06E_DMA_OPCODE 31:29 63 #define NV06E_DMA_OPCODE_METHOD (0x00000000) 64 #define NV06E_DMA_OPCODE_NONINC_METHOD (0x00000002) 65 /* dma data format */ 66 #define NV06E_DMA_DATA 31:0 67 /* dma jump format */ 68 #define NV06E_DMA_OPCODE_JUMP (0x00000001) 69 #define NV06E_DMA_JUMP_OFFSET 28:2 70 71 #ifdef __cplusplus 72 }; /* extern "C" */ 73 #endif 74 75 #endif /* _cl006e_h_ */ 76