1 #ifndef __NOUVEAU_NOTIFIER_H__
2 #define __NOUVEAU_NOTIFIER_H__
4 #define NV_NOTIFIER_SIZE 32
5 #define NV_NOTIFY_TIME_0 0x00000000
6 #define NV_NOTIFY_TIME_1 0x00000004
7 #define NV_NOTIFY_RETURN_VALUE 0x00000008
8 #define NV_NOTIFY_STATE 0x0000000C
9 #define NV_NOTIFY_STATE_STATUS_MASK 0xFF000000
10 #define NV_NOTIFY_STATE_STATUS_SHIFT 24
11 #define NV_NOTIFY_STATE_STATUS_COMPLETED 0x00
12 #define NV_NOTIFY_STATE_STATUS_IN_PROCESS 0x01
13 #define NV_NOTIFY_STATE_ERROR_CODE_MASK 0x0000FFFF
14 #define NV_NOTIFY_STATE_ERROR_CODE_SHIFT 0
16 struct nouveau_notifier {
17 struct nouveau_channel *channel;