1*fc5a352dSguenther /* $OpenBSD: arm_drain_writebuf.c,v 1.4 2016/08/27 07:35:19 guenther Exp $ */
20c2bf8fcSdrahn /* $NetBSD: arm_drain_writebuf.c,v 1.1 2002/03/30 06:24:34 thorpej Exp $ */
30c2bf8fcSdrahn
40c2bf8fcSdrahn /*
50c2bf8fcSdrahn * Copyright (c) 1997 Mark Brinicombe.
60c2bf8fcSdrahn * All rights reserved.
70c2bf8fcSdrahn *
80c2bf8fcSdrahn * Redistribution and use in source and binary forms, with or without
90c2bf8fcSdrahn * modification, are permitted provided that the following conditions
100c2bf8fcSdrahn * are met:
110c2bf8fcSdrahn * 1. Redistributions of source code must retain the above copyright
120c2bf8fcSdrahn * notice, this list of conditions and the following disclaimer.
130c2bf8fcSdrahn * 2. Redistributions in binary form must reproduce the above copyright
140c2bf8fcSdrahn * notice, this list of conditions and the following disclaimer in the
150c2bf8fcSdrahn * documentation and/or other materials provided with the distribution.
160c2bf8fcSdrahn * 3. All advertising materials mentioning features or use of this software
170c2bf8fcSdrahn * must display the following acknowledgement:
180c2bf8fcSdrahn * This product includes software developed by Mark Brinicombe
190c2bf8fcSdrahn * 4. The name of the company nor the name of the author may be used to
200c2bf8fcSdrahn * endorse or promote products derived from this software without specific
210c2bf8fcSdrahn * prior written permission.
220c2bf8fcSdrahn *
230c2bf8fcSdrahn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
240c2bf8fcSdrahn * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
250c2bf8fcSdrahn * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
260c2bf8fcSdrahn * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
270c2bf8fcSdrahn * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
280c2bf8fcSdrahn * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
290c2bf8fcSdrahn * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
300c2bf8fcSdrahn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
310c2bf8fcSdrahn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
320c2bf8fcSdrahn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
330c2bf8fcSdrahn * SUCH DAMAGE.
340c2bf8fcSdrahn */
350c2bf8fcSdrahn
360c2bf8fcSdrahn #include <sys/types.h>
370c2bf8fcSdrahn #include <machine/sysarch.h>
38*fc5a352dSguenther #include <stdio.h>
390c2bf8fcSdrahn
400c2bf8fcSdrahn int
arm_drain_writebuf()410c2bf8fcSdrahn arm_drain_writebuf()
420c2bf8fcSdrahn {
435d4a7384Stedu return sysarch(ARM_DRAIN_WRITEBUF, NULL);
440c2bf8fcSdrahn }
45