xref: /freebsd/sys/riscv/include/memdev.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
18d7e7a98SRuslan Bukin /*-
28d7e7a98SRuslan Bukin  * Copyright (c) 2004 Mark R V Murray
38d7e7a98SRuslan Bukin  * All rights reserved.
48d7e7a98SRuslan Bukin  *
58d7e7a98SRuslan Bukin  * Redistribution and use in source and binary forms, with or without
68d7e7a98SRuslan Bukin  * modification, are permitted provided that the following conditions
78d7e7a98SRuslan Bukin  * are met:
88d7e7a98SRuslan Bukin  * 1. Redistributions of source code must retain the above copyright
98d7e7a98SRuslan Bukin  *    notice, this list of conditions and the following disclaimer
108d7e7a98SRuslan Bukin  *    in this position and unchanged.
118d7e7a98SRuslan Bukin  * 2. Redistributions in binary form must reproduce the above copyright
128d7e7a98SRuslan Bukin  *    notice, this list of conditions and the following disclaimer in the
138d7e7a98SRuslan Bukin  *    documentation and/or other materials provided with the distribution.
148d7e7a98SRuslan Bukin  *
158d7e7a98SRuslan Bukin  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
168d7e7a98SRuslan Bukin  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
178d7e7a98SRuslan Bukin  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
188d7e7a98SRuslan Bukin  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
198d7e7a98SRuslan Bukin  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
208d7e7a98SRuslan Bukin  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
218d7e7a98SRuslan Bukin  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
228d7e7a98SRuslan Bukin  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
238d7e7a98SRuslan Bukin  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
248d7e7a98SRuslan Bukin  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
258d7e7a98SRuslan Bukin  */
268d7e7a98SRuslan Bukin 
278d7e7a98SRuslan Bukin #ifndef _MACHINE_MEMDEV_H_
288d7e7a98SRuslan Bukin #define	_MACHINE_MEMDEV_H_
298d7e7a98SRuslan Bukin 
308d7e7a98SRuslan Bukin #define	CDEV_MINOR_MEM	0
318d7e7a98SRuslan Bukin #define	CDEV_MINOR_KMEM	1
328d7e7a98SRuslan Bukin 
338d7e7a98SRuslan Bukin d_open_t	memopen;
348d7e7a98SRuslan Bukin d_read_t	memrw;
352d838cd8SMark Johnston d_ioctl_t	memioctl_md;
36*57712c0bSKristof Provost d_mmap_t	memmmap;
378d7e7a98SRuslan Bukin 
388d7e7a98SRuslan Bukin #endif /* _MACHINE_MEMDEV_H_ */
39