xref: /freebsd/sys/arm/include/blockio.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
16fc729afSOlivier Houchard /*	$NetBSD: blockio.h,v 1.2 2001/06/02 10:44:56 bjh21 Exp $	*/
26fc729afSOlivier Houchard 
36fc729afSOlivier Houchard /*-
4*af3dc4a7SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
5*af3dc4a7SPedro F. Giffuni  *
66fc729afSOlivier Houchard  * Copyright (c) 2001 Ben Harris
76fc729afSOlivier Houchard  * All rights reserved.
86fc729afSOlivier Houchard  *
96fc729afSOlivier Houchard  * Redistribution and use in source and binary forms, with or without
106fc729afSOlivier Houchard  * modification, are permitted provided that the following conditions
116fc729afSOlivier Houchard  * are met:
126fc729afSOlivier Houchard  * 1. Redistributions of source code must retain the above copyright
136fc729afSOlivier Houchard  *    notice, this list of conditions and the following disclaimer.
146fc729afSOlivier Houchard  * 2. Redistributions in binary form must reproduce the above copyright
156fc729afSOlivier Houchard  *    notice, this list of conditions and the following disclaimer in the
166fc729afSOlivier Houchard  *    documentation and/or other materials provided with the distribution.
176fc729afSOlivier Houchard  * 3. The name of the author may not be used to endorse or promote products
186fc729afSOlivier Houchard  *    derived from this software without specific prior written permission.
196fc729afSOlivier Houchard  *
206fc729afSOlivier Houchard  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
216fc729afSOlivier Houchard  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
226fc729afSOlivier Houchard  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
236fc729afSOlivier Houchard  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
246fc729afSOlivier Houchard  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
256fc729afSOlivier Houchard  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
266fc729afSOlivier Houchard  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
276fc729afSOlivier Houchard  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
286fc729afSOlivier Houchard  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
296fc729afSOlivier Houchard  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
306fc729afSOlivier Houchard  *
316fc729afSOlivier Houchard  */
326fc729afSOlivier Houchard /*
336fc729afSOlivier Houchard  * blockio.h - low level functions for bulk PIO data transfer
346fc729afSOlivier Houchard  */
356fc729afSOlivier Houchard 
366fc729afSOlivier Houchard #ifndef _MACHINE_BLOCKIO_H_
376fc729afSOlivier Houchard #define _MACHINE_BLOCKIO_H_
386fc729afSOlivier Houchard 
396fc729afSOlivier Houchard /*
406fc729afSOlivier Houchard  * All these take three arguments:
416fc729afSOlivier Houchard  * I/O address
426fc729afSOlivier Houchard  * Memory address
436fc729afSOlivier Houchard  * Number of bytes to copy
446fc729afSOlivier Houchard  */
456fc729afSOlivier Houchard 
466fc729afSOlivier Houchard void read_multi_1(u_int, void *, u_int);
476fc729afSOlivier Houchard void write_multi_1(u_int, const void *, u_int);
486fc729afSOlivier Houchard #define read_multi_2 insw16
496fc729afSOlivier Houchard #define write_multi_2 outsw16
506fc729afSOlivier Houchard 
516fc729afSOlivier Houchard void insw(u_int, void *, u_int);
526fc729afSOlivier Houchard void outsw(u_int, void *, u_int);
536fc729afSOlivier Houchard void insw16(u_int, void *, u_int);
546fc729afSOlivier Houchard void outsw16(u_int, void *, u_int);
556fc729afSOlivier Houchard 
566fc729afSOlivier Houchard #endif /* !_MACHINE_BLOCKIO_H_ */
57