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