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