xref: /freebsd/sys/i386/include/sf_buf.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1e45db9b8SAlan Cox /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
383ef78beSPedro F. Giffuni  *
4c8d2ffd6SGleb Smirnoff  * Copyright (c) 2014 Gleb Smirnoff <glebius@FreeBSD.org>
5e45db9b8SAlan Cox  * All rights reserved.
6e45db9b8SAlan Cox  *
7e45db9b8SAlan Cox  * Redistribution and use in source and binary forms, with or without
8e45db9b8SAlan Cox  * modification, are permitted provided that the following conditions
9e45db9b8SAlan Cox  * are met:
10e45db9b8SAlan Cox  * 1. Redistributions of source code must retain the above copyright
11e45db9b8SAlan Cox  *    notice, this list of conditions and the following disclaimer.
12e45db9b8SAlan Cox  * 2. Redistributions in binary form must reproduce the above copyright
13e45db9b8SAlan Cox  *    notice, this list of conditions and the following disclaimer in the
14e45db9b8SAlan Cox  *    documentation and/or other materials provided with the distribution.
15e45db9b8SAlan Cox  *
16e45db9b8SAlan Cox  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17e45db9b8SAlan Cox  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18e45db9b8SAlan Cox  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19e45db9b8SAlan Cox  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20e45db9b8SAlan Cox  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21e45db9b8SAlan Cox  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22e45db9b8SAlan Cox  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23e45db9b8SAlan Cox  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24e45db9b8SAlan Cox  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25e45db9b8SAlan Cox  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26e45db9b8SAlan Cox  * SUCH DAMAGE.
27e45db9b8SAlan Cox  */
28e45db9b8SAlan Cox 
29e45db9b8SAlan Cox #ifndef _MACHINE_SF_BUF_H_
30e45db9b8SAlan Cox #define _MACHINE_SF_BUF_H_
31e45db9b8SAlan Cox 
32c8d2ffd6SGleb Smirnoff void sf_buf_map(struct sf_buf *, int);
33c8d2ffd6SGleb Smirnoff int sf_buf_unmap(struct sf_buf *);
34c8d2ffd6SGleb Smirnoff boolean_t sf_buf_invalidate_cache(vm_page_t);
358a5ac5d5SKonstantin Belousov 
36e45db9b8SAlan Cox #endif /* !_MACHINE_SF_BUF_H_ */
37