summaryrefslogtreecommitdiffhomepage
path: root/src/internal/ntapi_blitter.h
blob: be9981c2a930c7d9c6b558173f8c7c78c33b779a (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
/********************************************************/
/*  ntapi: Native API core library                      */
/*  Copyright (C) 2013--2017  Z. Gilboa                 */
/*  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  */
/********************************************************/

#ifndef ___NTAPI_BLITTER_H_
#define ___NTAPI_BLITTER_H_

#include <ntapi/nt_status.h>
#include <ntapi/nt_blitter.h>
#include <ntapi/nt_sync.h>

#define __NT_BLITTER_DEFAULT_LOCK_TRIES		256
#define __NT_BLITTER_DEFAULT_ROUND_TRIPS	64

typedef struct nt_blitter_context {
	struct nt_blitter_context *	addr;
	size_t				size;
	uintptr_t			ptrs;
	nt_blitter_info			info;
	nt_blitter_params		params;
	uintptr_t *			bitmap;
	uintptr_t			bits[];
} nt_blitter;

#endif