xref: /original-bsd/sys/news3400/fb/fb_conf.c (revision 3705696b)
1 /*
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
7  *
8  * %sccs.include.redist.c%
9  *
10  * from: $Hdr: fb_conf.c,v 4.300 91/06/09 06:32:46 root Rel41 $ SONY
11  *
12  *	@(#)fb_conf.c	8.1 (Berkeley) 06/10/93
13  */
14 
15 #include "nwb512.h"
16 #include "nwb514.h"
17 #include "nwb518.h"
18 #include "nwb225.h"
19 #include "nwb251.h"
20 #include "nwb252.h"
21 #include "nwb253.h"
22 #include "nwb254.h"
23 #include "nwb255.h"
24 #ifdef news3800
25 #include "nwb256.h"
26 #else
27 #define NNWB256 0
28 #endif
29 #include "nwb257.h"
30 #include "lfbm.h"
31 #include "pfbc.h"
32 #include "pfbm.h"
33 #include "slb101.h"
34 
35 #ifdef IPC_MRX
36 #include "../../iop/framebuf.h"
37 #else
38 #include <news3400/iop/framebuf.h>
39 #endif
40 
41 #include <news3400/fb/fbdefs.h>
42 
43 #define NFBDEV \
44 	NNWB225 + NNWB512 + NNWB518 + NPFBM + NPFBC + NNWB514 + NNWB251 + \
45 	NLFBM + NNWB252 + NNWB253 + NNWB254 + NNWB255 + NNWB256 + NNWB257 + \
46 	NSLB101
47 
48 #if NFBDEV > 0
49 struct fbdev	fbdev[NFBDEV];
50 #endif
51 
52 #if NNWB512 > 0
53 int	fb512_probe();
54 void	fb512_setup();
55 #endif
56 
57 #if NNWB225 > 0
58 int	fb225_probe();
59 void	fb225_setup();
60 #endif
61 
62 #if NPFBM > 0
63 int	fbpopm_probe();
64 void	fbpopm_setup();
65 #endif
66 
67 #if NNWB518 > 0
68 int	fb518_probe();
69 void	fb518_setup();
70 #endif
71 
72 #if NPFBC > 0
73 int	fbpopc_probe();
74 void	fbpopc_setup();
75 #endif
76 
77 #if NNWB514 > 0
78 int	fb514_probe();
79 void	fb514_setup();
80 #endif
81 
82 #if NNWB251 > 0
83 int	fb251_probe();
84 void	fb251_setup();
85 #endif
86 
87 #if NLFBM > 0
88 int	fblfbm_probe();
89 void	fblfbm_setup();
90 #endif
91 
92 #if NNWB252 > 0
93 int	fb252_probe();
94 void	fb252_setup();
95 #endif
96 
97 #if NNWB253 > 0
98 int	fb253_probe();
99 void	fb253_setup();
100 #endif
101 
102 #if NNWB254 > 0
103 int	fb254_probe8();
104 int	fb254_probe16();
105 void	fb254_setup8();
106 void	fb254_setup16();
107 #endif
108 
109 #if NNWB255 > 0
110 int	fb255_probe();
111 void	fb255_setup();
112 #endif
113 
114 #if NNWB256 > 0
115 int	fb256_probe();
116 void	fb256_setup();
117 #endif
118 
119 #if NNWB257 > 0
120 int	fb257_probe();
121 void	fb257_setup();
122 #endif
123 
124 #if NSLB101 > 0
125 int	fb101_probe8();
126 int	fb101_probe24();
127 void	fb101_setup8();
128 void	fb101_setup24();
129 #endif
130 
131 struct fbdevsw	fbdevsw[] = {
132 
133 #if NNWB512 > 0
134 	NNWB512,	fb512_probe,	fb512_setup,
135 #endif
136 
137 #if NNWB225 > 0
138 	NNWB225,	fb225_probe,	fb225_setup,
139 #endif
140 
141 #if NPFBM > 0
142 	NPFBM,		fbpopm_probe,	fbpopm_setup,
143 #endif
144 
145 #if NNWB518 > 0
146 	NNWB518,	fb518_probe,	fb518_setup,
147 #endif
148 
149 #if NPFBC > 0
150 	NPFBC,		fbpopc_probe,	fbpopc_setup,
151 #endif
152 
153 #if NNWB514 > 0
154 	NNWB514,	fb514_probe,	fb514_setup,
155 #endif
156 
157 #if NNWB251 > 0
158 	NNWB251,	fb251_probe,	fb251_setup,
159 #endif
160 
161 #if NLFBM > 0
162 	NLFBM,		fblfbm_probe,	fblfbm_setup,
163 #endif
164 
165 #if NNWB252 > 0
166 	NNWB252,	fb252_probe,	fb252_setup,
167 #endif
168 
169 #if NNWB253 > 0
170 	NNWB253,	fb253_probe,	fb253_setup,
171 #endif
172 
173 #if NNWB254 > 0
174 	NNWB254,	fb254_probe16,	fb254_setup16,
175 	NNWB254,	fb254_probe8,	fb254_setup8,
176 #endif
177 
178 #if NNWB255 > 0
179 	NNWB255,	fb255_probe,	fb255_setup,
180 #endif
181 
182 #if NNWB256 > 0
183 	NNWB256,	fb256_probe,	fb256_setup,
184 #endif
185 
186 #if NNWB257 > 0
187 	NNWB257,	fb257_probe,	fb257_setup,
188 #endif
189 
190 #if NSLB101 > 0
191 	NSLB101,	fb101_probe24,	fb101_setup24,
192 	NSLB101,	fb101_probe8,	fb101_setup8,
193 #endif
194 
195 	0,		(int(*)())(-1),	(void(*)())(-1),
196 };
197