Plan 9 from Bell Labs’s /sys/src/pub/doc/beagle/igepv2/powervr/hostfunc.h

Copyright © 2021 Plan 9 Foundation
Distributed under the MIT License.
Download the Plan 9 distribution.


/* -*- Mode: C; tab-width: 4; indent-tabs-mode: 't; c-basic-offset: 4 -*-
 *
 * Name         : $RCSfile: hostfunc.h $
 *
 * Copyright    : 2002 by Imagination Technologies Limited. 
 *                All rights reserved.
 *                No part of this software, either material or conceptual 
 *                may be copied or distributed, transmitted, transcribed,
 *                stored in a retrieval system or translated into any 
 *                human or computer language in any form by any means,
 *                electronic, mechanical, manual or other-wise, or 
 *                disclosed to third parties without the express written
 *                permission of:
 *                             Imagination Technologies Limited, 
 *                             HomePark Industrial Estate, 
 *                             Kings Langley, 
 *                             Hertfordshire,
 *                             WD4 8LZ, 
 *                             UK
 *
 * Description  : external hostfunc.h
 *
 * Version	 	: $Revision: 1.2 $
 *
 **************************************************************************/

#ifndef HOSTFUNC_H
#define HOSTFUNC_H

#define TRUE 1
#define FALSE 0

#define CACHETYPE_UNCACHED 0
#define CACHETYPE_CACHED 1
#define CACHETYPE_WRITECOMBINED 2

#define GART_UC 1
#define GART_WC 2

#define NTOS_UNKNOWN    0
#define NTOS_NT4        1
#define NTOS_WIN2K      2
#define NTOS_WHISTLER   3

/* For linear buffers */
#define MEMREGION_MASK      0x3
#define MEMREGION_PCI       0x0
#define MEMREGION_GART_UC   0x1
#define MEMREGION_GART_WC   0x2

void *HostGARTReserve(unsigned long dwPages, unsigned long dwRegion,
					  unsigned long *pdwPhysAddr, void **ppvContext);

unsigned long HostGARTCommit(unsigned long dwPages, unsigned long dwRegion,
							 void *pvLinBase, void *pvContext, 
							 unsigned long dwPageOff);

void HostGARTRelease(void *pvLinBase, void *pvContext, unsigned long dwPages);

void HostGARTDecommit(unsigned long dwPages, void *pvLinBase, void *pvContext,
					  unsigned long dwPageOff);

#endif


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@plan9.bell-labs.com.