/* * @OSF_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * ALL RIGHTS RESERVED (DCE). See the file named COPYRIGHT.DCE in the * src directory for the full copyright text. */ /* * HISTORY * $Log: cma_vp.h,v $ * Revision 1.1.2.3 1992/12/15 22:32:54 alan * Insert copyright notices * [1992/12/07 19:44:25 alan] * * Revision 1.1.2.2 1992/09/03 14:42:41 bolinger * Replace current source file with equivalent from DEC BL10+ * source base, as originally integrated in the * nosupport/threads_bl10 tree. (See OT defect 5300.) * [1992/09/02 14:08:08 bolinger] * * Revision 1.1.2.2 1992/05/09 00:16:29 bolinger * BL10 CMA sources from DEC. * [1992/05/09 00:16:15 bolinger] * * Revision 1.1 1992/01/19 14:39:43 devrcs * Initial revision * * $EndLog$ */ /* * %W% (DEC OSF/1) %G% */ /* * Copyright (c) 1991, 1992 by * Digital Equipment Corporation, Maynard Massachusetts. * All rights reserved. * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * The information in this software is subject to change without notice * and should not be construed as a commitment by Digital Equipment * Corporation. * * Digital assumes no responsibility for the use or reliability of its * software on equipment which is not supplied by Digital. */ /* * FACILITY: * * DECthreads services * * ABSTRACT: * * Header file for virtual processor services * * AUTHORS: * * Dave Butenhof * * CREATION DATE: * * 03 April 1991 * * MODIFICATION HISTORY: * * 001 Dave Butenhof 25 April 1991 * Add "vp_lock" and "vp_unlock" functions to emulate atomic * test-and-set. (later removed!!!) * 002 Dave Butenhof 31 May 1991 * Add cma__vp_delay() function to do VP-synchronous delay * without relying on timer interrupts. * 003 Dave Butenhof 05 September 1991 * Add prototype for new function cma__vp_yield() to use the * Mach "sched_yield" syscall. * 004 Dave Butenhof 07 February 1992 * Add cma__vp_dump() function to list all active and cached VPs * for debugging. */ #ifndef CMA_VP #define CMA_VP /* * INCLUDE FILES */ #include /* * GLOBAL DATA */ /* * INTERNAL INTERFACES */ extern void cma__init_vp _CMA_PROTOTYPE_ ((void)); extern cma__t_vp_status cma__vp_create _CMA_PROTOTYPE_ (( cma__t_vpid *vpid)); extern void cma__vp_delete _CMA_PROTOTYPE_ (( cma__t_vpid vpid)); extern cma__t_vpid cma__vp_get_id _CMA_PROTOTYPE_ ((void)); extern cma__t_vp_status cma__vp_get_state _CMA_PROTOTYPE_ (( cma__t_vpid vpid, cma__t_vp_state *state)); extern void cma__vp_dump _CMA_PROTOTYPE_ ((void)); extern cma__t_vp_status cma__vp_interrupt _CMA_PROTOTYPE_ (( cma__t_vpid vpid, cma__t_vp_handler handler, cma_t_address arg)); extern cma__t_vp_status cma__vp_resume _CMA_PROTOTYPE_ (( cma__t_vpid vpid)); extern cma__t_vp_status cma__vp_resume_others _CMA_PROTOTYPE_ ((void)); extern cma__t_vp_status cma__vp_set_start _CMA_PROTOTYPE_ (( cma__t_vpid vpid, cma__t_vp_state *state)); extern cma__t_vp_status cma__vp_suspend _CMA_PROTOTYPE_ (( cma__t_vpid vpid, cma_t_integer milliseconds)); extern cma__t_vp_status cma__vp_suspend_others _CMA_PROTOTYPE_ ((void)); extern void cma__vp_yield _CMA_PROTOTYPE_ ((void)); #endif