1*ebd8157fSchristos /* $NetBSD: arm_drain_writebuf.c,v 1.2 2017/01/13 18:18:20 christos Exp $ */
298de4ab7Sthorpej
398de4ab7Sthorpej /*
498de4ab7Sthorpej * Copyright (c) 1997 Mark Brinicombe.
598de4ab7Sthorpej * All rights reserved.
698de4ab7Sthorpej *
798de4ab7Sthorpej * Redistribution and use in source and binary forms, with or without
898de4ab7Sthorpej * modification, are permitted provided that the following conditions
998de4ab7Sthorpej * are met:
1098de4ab7Sthorpej * 1. Redistributions of source code must retain the above copyright
1198de4ab7Sthorpej * notice, this list of conditions and the following disclaimer.
1298de4ab7Sthorpej * 2. Redistributions in binary form must reproduce the above copyright
1398de4ab7Sthorpej * notice, this list of conditions and the following disclaimer in the
1498de4ab7Sthorpej * documentation and/or other materials provided with the distribution.
1598de4ab7Sthorpej * 3. All advertising materials mentioning features or use of this software
1698de4ab7Sthorpej * must display the following acknowledgement:
1798de4ab7Sthorpej * This product includes software developed by Mark Brinicombe
1898de4ab7Sthorpej * 4. The name of the company nor the name of the author may be used to
1998de4ab7Sthorpej * endorse or promote products derived from this software without specific
2098de4ab7Sthorpej * prior written permission.
2198de4ab7Sthorpej *
2298de4ab7Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
2398de4ab7Sthorpej * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
2498de4ab7Sthorpej * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2598de4ab7Sthorpej * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
2698de4ab7Sthorpej * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2798de4ab7Sthorpej * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2898de4ab7Sthorpej * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2998de4ab7Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3098de4ab7Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3198de4ab7Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3298de4ab7Sthorpej * SUCH DAMAGE.
3398de4ab7Sthorpej */
3498de4ab7Sthorpej
3598de4ab7Sthorpej #include <sys/cdefs.h>
36*ebd8157fSchristos #include <sys/null.h>
3798de4ab7Sthorpej #include <sys/types.h>
3898de4ab7Sthorpej
3998de4ab7Sthorpej #include <machine/sysarch.h>
4098de4ab7Sthorpej
4198de4ab7Sthorpej int
arm_drain_writebuf(void)42*ebd8157fSchristos arm_drain_writebuf(void)
4398de4ab7Sthorpej {
44*ebd8157fSchristos return sysarch(ARM_DRAIN_WRITEBUF, NULL);
4598de4ab7Sthorpej }
46