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