/* FIFO setup */ #include #include #include #include #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; } }