xref: /titanic_41/usr/src/uts/common/sys/agp/agpamd64gart_io.h (revision e4b86885570d77af552e9cf94f142f4d744fb8c8)
1 /*
2  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef	_SYS_AGPAMD64GART_IO_H
7 #define	_SYS_AGPAMD64GART_IO_H
8 
9 #pragma ident	"%Z%%M%	%I%	%E% SMI"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #ifdef _KERNEL
16 
17 #define	AMD64GART_NAME		"amd64_gart"
18 #define	CPUGART_DEVLINK		"/dev/agp/cpugart"
19 
20 #define	AGPAMD64GARTIOC_BASE	'M'
21 
22 #define	AMD64_GET_INFO		_IOR(AGPAMD64GARTIOC_BASE, 50, amdgart_info_t)
23 #define	AMD64_SET_GART_ADDR	_IOW(AGPAMD64GARTIOC_BASE, 51, uint32_t)
24 #define	AMD64_FLUSH_GTLB	_IO(AGPAMD64GARTIOC_BASE, 52)
25 #define	AMD64_CONFIGURE		_IO(AGPAMD64GARTIOC_BASE, 53)
26 #define	AMD64_UNCONFIG		_IO(AGPAMD64GARTIOC_BASE, 54)
27 
28 /* Used to retrieve attributes of the amd64 gart device */
29 typedef struct amdgart_info {
30 	uint64_t	cgart_aperbase;
31 	size_t		cgart_apersize;
32 } amdgart_info_t;
33 
34 #endif /* _KERNEL */
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* _SYS_AGPAMD64GART_IO_H */
41