base.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | base.c (176fdcbddfd288408ce8571c1760ad618d962096) |
---|---|
1/* 2 * Copyright (c) 2016, 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 --- 11 unchanged lines hidden (view full) --- 20 * DEALINGS IN THE SOFTWARE. 21 */ 22#include "priv.h" 23 24#include <subdev/mc.h> 25#include <subdev/timer.h> 26#include <subdev/top.h> 27 | 1/* 2 * Copyright (c) 2016, 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 --- 11 unchanged lines hidden (view full) --- 20 * DEALINGS IN THE SOFTWARE. 21 */ 22#include "priv.h" 23 24#include <subdev/mc.h> 25#include <subdev/timer.h> 26#include <subdev/top.h> 27 |
28bool 29nvkm_falcon_riscv_active(struct nvkm_falcon *falcon) 30{ 31 if (!falcon->func->riscv_active) 32 return false; 33 34 return falcon->func->riscv_active(falcon); 35} 36 |
|
28static const struct nvkm_falcon_func_dma * 29nvkm_falcon_dma(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) 30{ 31 switch (*mem_type) { 32 case IMEM: return falcon->func->imem_dma; 33 case DMEM: return falcon->func->dmem_dma; 34 default: 35 return NULL; --- 287 unchanged lines hidden --- | 37static const struct nvkm_falcon_func_dma * 38nvkm_falcon_dma(struct nvkm_falcon *falcon, enum nvkm_falcon_mem *mem_type, u32 *mem_base) 39{ 40 switch (*mem_type) { 41 case IMEM: return falcon->func->imem_dma; 42 case DMEM: return falcon->func->dmem_dma; 43 default: 44 return NULL; --- 287 unchanged lines hidden --- |