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