xref: /f-stack/freebsd/arm64/include/memdev.h (revision 22ce4aff)
1a9643ea8Slogwang /*-
2a9643ea8Slogwang  * Copyright (c) 2004 Mark R V Murray
3a9643ea8Slogwang  * All rights reserved.
4a9643ea8Slogwang  *
5a9643ea8Slogwang  * Redistribution and use in source and binary forms, with or without
6a9643ea8Slogwang  * modification, are permitted provided that the following conditions
7a9643ea8Slogwang  * are met:
8a9643ea8Slogwang  * 1. Redistributions of source code must retain the above copyright
9a9643ea8Slogwang  *    notice, this list of conditions and the following disclaimer
10a9643ea8Slogwang  *    in this position and unchanged.
11a9643ea8Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
12a9643ea8Slogwang  *    notice, this list of conditions and the following disclaimer in the
13a9643ea8Slogwang  *    documentation and/or other materials provided with the distribution.
14a9643ea8Slogwang  *
15a9643ea8Slogwang  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16a9643ea8Slogwang  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17a9643ea8Slogwang  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18a9643ea8Slogwang  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19a9643ea8Slogwang  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20a9643ea8Slogwang  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21a9643ea8Slogwang  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22a9643ea8Slogwang  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23a9643ea8Slogwang  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24a9643ea8Slogwang  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25a9643ea8Slogwang  *
26a9643ea8Slogwang  * $FreeBSD$
27a9643ea8Slogwang  */
28a9643ea8Slogwang 
29a9643ea8Slogwang #ifndef _MACHINE_MEMDEV_H_
30a9643ea8Slogwang #define	_MACHINE_MEMDEV_H_
31a9643ea8Slogwang 
32a9643ea8Slogwang #define	CDEV_MINOR_MEM	0
33a9643ea8Slogwang #define	CDEV_MINOR_KMEM	1
34a9643ea8Slogwang 
35a9643ea8Slogwang d_open_t	memopen;
36a9643ea8Slogwang d_read_t	memrw;
37*22ce4affSfengbojiang d_ioctl_t	memioctl_md;
38*22ce4affSfengbojiang d_mmap_t	memmmap;
39a9643ea8Slogwang 
40a9643ea8Slogwang #endif /* _MACHINE_MEMDEV_H_ */
41