summaryrefslogtreecommitdiffstats
path: root/drivers/sgi/char/graphics.h
blob: df844386aa524b8bd5b50761128951e10b9fedb8 (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
#define MAXCARDS 4

struct graphics_ops {
	/* SGIism: Board owner, gets the shmiq requests from the kernel */
	struct task_struct *g_owner;

	/* Last process that got the graphics registers mapped  */
	struct task_struct *g_user;
	
	/* Board info */
	void               *g_board_info;
	int                g_board_info_len;

	/* These point to hardware registers that should be mapped with
	 * GFX_ATTACH_BOARD and the size of the information pointed to
	 */
	unsigned long      g_regs;
	int                g_regs_size;

	void (*g_save_context)(void);
	void (*g_restore_context)(void);
};

void shmiq_init (void);
void streamable_init (void);
void usema_init (void);