blob: fb62d1a302178a7ce959cdf0acaccea391ed4a7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* FIFO setup */
#include <stdio.h>
#include <stdint.h>
#include <nouveau_drm.h>
#include <nouveau_channel.h>
#include "screen.h"
#include "object.h"
/* Global variables */
struct nouveau_channel *chan = NULL;
/* Functions */
int fifo_open(void)
{
return nouveau_channel_alloc(dev, NvDmaFB, NvDmaTT, &chan);
}
void fifo_close(void)
{
if (chan) {
nouveau_channel_free(&chan);
chan = NULL;
}
}
|