diff options
Diffstat (limited to 'nvdebug.h')
| -rw-r--r-- | nvdebug.h | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -9,13 +9,15 @@ | |||
| 9 | * - Helper functions for nvdebug | 9 | * - Helper functions for nvdebug |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | // TODO(jbakita): Don't depend on these. | ||
| 13 | #include <nvgpu/gk20a.h> // For struct gk20a | ||
| 14 | #include <linux/proc_fs.h> // For PDE_DATA() macro | 12 | #include <linux/proc_fs.h> // For PDE_DATA() macro |
| 15 | #include <linux/device.h> // For dev_get_drvdata() | 13 | #include <linux/device.h> // For dev_get_drvdata() |
| 16 | #include <linux/version.h> // For KERNEL_VERSION and LINUX_VERSION_CODE | 14 | #include <linux/version.h> // For KERNEL_VERSION and LINUX_VERSION_CODE |
| 17 | #include <asm/io.h> | 15 | #include <asm/io.h> |
| 18 | 16 | ||
| 17 | // Fully defined in include/nvgpu/gk20a.h. We only pass around pointers to | ||
| 18 | // this, so declare as incomplete type to avoid pulling in the nvgpu headers. | ||
| 19 | struct gk20a; | ||
| 20 | |||
| 19 | /* Runlist Channel | 21 | /* Runlist Channel |
| 20 | A timeslice group (TSG) is composed of channels. Each channel is a FIFO queue | 22 | A timeslice group (TSG) is composed of channels. Each channel is a FIFO queue |
| 21 | of GPU commands. These commands are typically queued from userspace. | 23 | of GPU commands. These commands are typically queued from userspace. |
