xref: /openbsd/sys/arch/arm/include/conf.h (revision 7f1d8547)
1 /*	$OpenBSD: conf.h,v 1.8 2010/11/28 20:48:46 miod Exp $	*/
2 /*	$NetBSD: conf.h,v 1.7 2002/04/19 01:04:39 wiz Exp $	*/
3 
4 /*
5  * Copyright (c) 1997 Mark Brinicombe.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. All advertising materials mentioning features or use of this software
17  *    must display the following acknowledgement:
18  *	This product includes software developed by Mark Brinicombe
19  *	for the NetBSD Project.
20  * 4. The name of the company nor the name of the author may be used to
21  *    endorse or promote products derived from this software without specific
22  *    prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
25  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
28  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34  * SUCH DAMAGE.
35  *
36  * RiscBSD kernel project
37  *
38  * conf.h
39  *
40  * Prototypes for device driver functions
41  */
42 
43 #ifndef _ARM_CONF_H
44 #define	_ARM_CONF_H
45 
46 
47 #include <sys/conf.h>
48 
49 #define mmread  mmrw
50 #define mmwrite mmrw
51 cdev_decl(mm);
52 
53 bdev_decl(wd);
54 cdev_decl(wd);
55 bdev_decl(fd);
56 cdev_decl(fd);
57 
58 /* Character device declarations */
59 
60 /* open, close, ioctl, kqueue */
61 #define cdev_apm_init(c,n) { \
62         dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
63         (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
64 	(dev_type_stop((*))) enodev, 0, selfalse, \
65 	(dev_type_mmap((*))) enodev, 0, D_KQFILTER, dev_init(c,n,kqfilter) }
66 
67 cdev_decl(com);
68 cdev_decl(lpt);
69 cdev_decl(pci);
70 cdev_decl(apm);
71 cdev_decl(spkr);
72 
73 #endif	/* _ARM_CONF_H_ */
74