ga102.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | ga102.c (176fdcbddfd288408ce8571c1760ad618d962096) |
---|---|
1/* 2 * Copyright 2022 Red Hat Inc. 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 --- 10 unchanged lines hidden (view full) --- 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 */ 22#include "priv.h" 23 24#include <subdev/mc.h> 25#include <subdev/timer.h> 26 | 1/* 2 * Copyright 2022 Red Hat Inc. 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 --- 10 unchanged lines hidden (view full) --- 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 21 */ 22#include "priv.h" 23 24#include <subdev/mc.h> 25#include <subdev/timer.h> 26 |
27bool 28ga102_flcn_riscv_active(struct nvkm_falcon *falcon) 29{ 30 return (nvkm_falcon_rd32(falcon, falcon->addr2 + 0x388) & 0x00000080) != 0; 31} 32 |
|
27static bool 28ga102_flcn_dma_done(struct nvkm_falcon *falcon) 29{ 30 return !!(nvkm_falcon_rd32(falcon, 0x118) & 0x00000002); 31} 32 33static void 34ga102_flcn_dma_xfer(struct nvkm_falcon *falcon, u32 mem_base, u32 dma_base, u32 cmd) --- 114 unchanged lines hidden --- | 33static bool 34ga102_flcn_dma_done(struct nvkm_falcon *falcon) 35{ 36 return !!(nvkm_falcon_rd32(falcon, 0x118) & 0x00000002); 37} 38 39static void 40ga102_flcn_dma_xfer(struct nvkm_falcon *falcon, u32 mem_base, u32 dma_base, u32 cmd) --- 114 unchanged lines hidden --- |