xref: /netbsd-src/lib/libarch/arm/arm_drain_writebuf.2 (revision 0568bf742187ef1f88dd5e4d12949d078cf4ffb1)
1*0568bf74Swiz.\"	$NetBSD: arm_drain_writebuf.2,v 1.3 2004/02/13 09:56:47 wiz Exp $
298de4ab7Sthorpej.\"
398de4ab7Sthorpej.\" Copyright (c) 1997 Mark Brinicombe
498de4ab7Sthorpej.\" All rights reserved.
598de4ab7Sthorpej.\"
698de4ab7Sthorpej.\" Redistribution and use in source and binary forms, with or without
798de4ab7Sthorpej.\" modification, are permitted provided that the following conditions
898de4ab7Sthorpej.\" are met:
998de4ab7Sthorpej.\" 1. Redistributions of source code must retain the above copyright
1098de4ab7Sthorpej.\"    notice, this list of conditions and the following disclaimer.
1198de4ab7Sthorpej.\" 2. Redistributions in binary form must reproduce the above copyright
1298de4ab7Sthorpej.\"    notice, this list of conditions and the following disclaimer in the
1398de4ab7Sthorpej.\"    documentation and/or other materials provided with the distribution.
1498de4ab7Sthorpej.\" 3. All advertising materials mentioning features or use of this software
1598de4ab7Sthorpej.\"    must display the following acknowledgement:
1698de4ab7Sthorpej.\"	This product includes software developed by Mark Brinicombe
1798de4ab7Sthorpej.\" 4. Neither the name of the University nor the names of its contributors
1898de4ab7Sthorpej.\"    may be used to endorse or promote products derived from this software
1998de4ab7Sthorpej.\"    without specific prior written permission.
2098de4ab7Sthorpej.\"
2198de4ab7Sthorpej.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2298de4ab7Sthorpej.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2398de4ab7Sthorpej.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2498de4ab7Sthorpej.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2598de4ab7Sthorpej.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2698de4ab7Sthorpej.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2798de4ab7Sthorpej.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2898de4ab7Sthorpej.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2998de4ab7Sthorpej.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3098de4ab7Sthorpej.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3198de4ab7Sthorpej.\" SUCH DAMAGE.
3298de4ab7Sthorpej.\"
3398de4ab7Sthorpej.Dd March 29, 2002
3498de4ab7Sthorpej.Dt ARM_DRAIN_WRITEBUF 2 arm
3598de4ab7Sthorpej.Os
3698de4ab7Sthorpej.Sh NAME
3798de4ab7Sthorpej.Nm arm_drain_writebuf
38*0568bf74Swiz.Nd drains the CPU write buffer
3998de4ab7Sthorpej.Sh LIBRARY
4098de4ab7Sthorpej.Lb libarm
4198de4ab7Sthorpej.Sh SYNOPSIS
42472351e1Swiz.In machine/sysarch.h
4398de4ab7Sthorpej.Ft int
4498de4ab7Sthorpej.Fn arm_drain_writebuf
4598de4ab7Sthorpej.Sh DESCRIPTION
4698de4ab7Sthorpej.Fn arm_drain_writebuf
4798de4ab7Sthorpejwill make sure that all the entries in the processor write buffer are
4898de4ab7Sthorpejwritten out to memory.
4998de4ab7Sthorpej.Pp
5098de4ab7SthorpejNot all processors support this operation (currently only the SA110).
5198de4ab7SthorpejThose processes that do not treat this function as a null-op.
5298de4ab7Sthorpej.Sh ERRORS
5398de4ab7Sthorpej.Fn arm_drain_writebuf
5498de4ab7Sthorpejwill never fail so will always return 0.
5598de4ab7Sthorpej.Sh REFERENCES
5698de4ab7SthorpejStrongARM Data Sheet
57