xref: /netbsd-src/sys/arch/hp300/stand/common/conf.h (revision 27f0c681499e80e47617c3d2f851ec260fd1cf5a)
1*27f0c681Stsutsui /*	$NetBSD: conf.h,v 1.4 2024/05/09 15:11:11 tsutsui Exp $	*/
2212f884fStsutsui 
3212f884fStsutsui /*
4212f884fStsutsui  * Copyright (c) 1982, 1990, 1993
5212f884fStsutsui  *	The Regents of the University of California.  All rights reserved.
6212f884fStsutsui  *
7212f884fStsutsui  * Redistribution and use in source and binary forms, with or without
8212f884fStsutsui  * modification, are permitted provided that the following conditions
9212f884fStsutsui  * are met:
10212f884fStsutsui  * 1. Redistributions of source code must retain the above copyright
11212f884fStsutsui  *    notice, this list of conditions and the following disclaimer.
12212f884fStsutsui  * 2. Redistributions in binary form must reproduce the above copyright
13212f884fStsutsui  *    notice, this list of conditions and the following disclaimer in the
14212f884fStsutsui  *    documentation and/or other materials provided with the distribution.
15212f884fStsutsui  * 3. Neither the name of the University nor the names of its contributors
16212f884fStsutsui  *    may be used to endorse or promote products derived from this software
17212f884fStsutsui  *    without specific prior written permission.
18212f884fStsutsui  *
19212f884fStsutsui  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20212f884fStsutsui  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21212f884fStsutsui  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22212f884fStsutsui  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23212f884fStsutsui  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24212f884fStsutsui  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25212f884fStsutsui  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26212f884fStsutsui  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27212f884fStsutsui  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28212f884fStsutsui  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29212f884fStsutsui  * SUCH DAMAGE.
30212f884fStsutsui  *
31212f884fStsutsui  */
32212f884fStsutsui 
33212f884fStsutsui #ifdef SUPPORT_ETHERNET
34212f884fStsutsui int netstrategy(void *, int, daddr_t, size_t, void *, size_t *);
35212f884fStsutsui int netopen(struct open_file *, ...);
36212f884fStsutsui int netclose(struct open_file *);
37212f884fStsutsui #endif
38212f884fStsutsui 
39212f884fStsutsui #ifdef SUPPORT_TAPE
40212f884fStsutsui int ctstrategy(void *, int, daddr_t, size_t, void *, size_t *);
41212f884fStsutsui int ctopen(struct open_file *, ...);
42212f884fStsutsui int ctclose(struct open_file *);
43212f884fStsutsui int ctpunit(int, int, int *);
44212f884fStsutsui #endif
45212f884fStsutsui 
46212f884fStsutsui #ifdef SUPPORT_DISK
47212f884fStsutsui int rdstrategy(void *, int, daddr_t, size_t, void *, size_t *);
48212f884fStsutsui int rdopen(struct open_file *, ...);
49212f884fStsutsui int rdclose(struct open_file *);
50212f884fStsutsui 
51212f884fStsutsui int sdstrategy(void *, int, daddr_t, size_t, void *, size_t *);
52212f884fStsutsui int sdopen(struct open_file *, ...);
53212f884fStsutsui int sdclose(struct open_file *);
54212f884fStsutsui #endif
5506f7440eStsutsui #ifdef SUPPORT_UFS2
56*27f0c681Stsutsui #define NFSYS_UFS2	1
5706f7440eStsutsui #else
58*27f0c681Stsutsui #define NFSYS_UFS2	0
5906f7440eStsutsui #endif
60*27f0c681Stsutsui #ifdef SUPPORT_CD
61*27f0c681Stsutsui #define NFSYS_CD9660	1
62*27f0c681Stsutsui #else
63*27f0c681Stsutsui #define NFSYS_CD9660	0
64*27f0c681Stsutsui #endif
65*27f0c681Stsutsui #define NFSYS_FS	(1 + NFSYS_UFS2 + NFSYS_CD9660)
66212f884fStsutsui 
67212f884fStsutsui #ifdef SUPPORT_ETHERNET
68212f884fStsutsui extern struct netif_driver le_driver;
69212f884fStsutsui #endif
7006f7440eStsutsui 
7106f7440eStsutsui /*
7206f7440eStsutsui  * Switch we use to set punit in devopen.
7306f7440eStsutsui  */
7406f7440eStsutsui struct punitsw {
7506f7440eStsutsui 	int	(*p_punit)(int, int, int *);
7606f7440eStsutsui };
7706f7440eStsutsui extern	struct punitsw punitsw[];
7806f7440eStsutsui extern	int npunit;
7906f7440eStsutsui 
8006f7440eStsutsui extern	struct fs_ops file_system_rawfs[1];
81*27f0c681Stsutsui extern	struct fs_ops file_system_ufs[NFSYS_FS];
8206f7440eStsutsui extern	struct fs_ops file_system_nfs[1];
83