]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
ebb945a9 BS |
2 | #ifndef __NV04_FIFO_H__ |
3 | #define __NV04_FIFO_H__ | |
8f0649b5 | 4 | #define nv04_fifo(p) container_of((p), struct nv04_fifo, base) |
9a65a38c | 5 | #include "priv.h" |
ebb945a9 | 6 | |
13de7f46 | 7 | struct nv04_fifo_ramfc { |
ebb945a9 BS |
8 | unsigned bits:6; |
9 | unsigned ctxs:5; | |
10 | unsigned ctxp:8; | |
11 | unsigned regs:5; | |
12 | unsigned regp; | |
13 | }; | |
14 | ||
6189f1b0 | 15 | struct nv04_fifo { |
05c7145d | 16 | struct nvkm_fifo base; |
13de7f46 | 17 | const struct nv04_fifo_ramfc *ramfc; |
ebb945a9 BS |
18 | }; |
19 | ||
13de7f46 BS |
20 | int nv04_fifo_new_(const struct nvkm_fifo_func *, struct nvkm_device *, |
21 | int index, int nr, const struct nv04_fifo_ramfc *, | |
22 | struct nvkm_fifo **); | |
23 | void nv04_fifo_init(struct nvkm_fifo *); | |
ebb945a9 | 24 | #endif |