1/*	$OpenBSD: conf.h,v 1.12 2022/06/28 14:43:50 visa 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
51cdev_decl(mm);
52
53bdev_decl(wd);
54cdev_decl(wd);
55bdev_decl(fd);
56cdev_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, \
65	(dev_type_mmap((*))) enodev, 0, 0, dev_init(c,n,kqfilter) }
66
67cdev_decl(com);
68cdev_decl(lpt);
69cdev_decl(pci);
70cdev_decl(apm);
71cdev_decl(spkr);
72
73/* open, close, ioctl */
74#define cdev_openprom_init(c,n) { \
75	dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
76	(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
77	(dev_type_stop((*))) nullop, 0, \
78	(dev_type_mmap((*))) enodev }
79
80cdev_decl(openprom);
81
82#endif	/* _ARM_CONF_H__ */
83