1 /* 2 * Copyright (c) 1988 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * @(#)conf.c 1.8 (Berkeley) 06/22/90 18 */ 19 20 #include "sys/param.h" 21 #include "sys/time.h" 22 #include "sys/vnode.h" 23 #include "ufs/inode.h" 24 #include "ufs/fs.h" 25 #include "saio.h" 26 27 extern int nullsys(), nodev(), noioctl(); 28 29 int vdstrategy(), vdopen(); 30 int hdstrategy(), hdopen(); 31 int cystrategy(), cyopen(), cyclose(); 32 33 struct devsw devsw[] = { 34 { "ud", nodev, nodev, nullsys, noioctl }, /* 0 = ud */ 35 { "dk", vdstrategy, vdopen, nullsys, noioctl }, /* 1 = ht */ 36 { "hd", hdstrategy, hdopen, nullsys, noioctl }, /* 2 = hd */ 37 #ifdef notdef 38 { "xp", xpstrategy, xpopen, nullsys, noioctl }, /* 3 = xp */ 39 #else 40 { "xp", nodev, nodev, nullsys, noioctl }, 41 #endif 42 { "cy", cystrategy, cyopen, cyclose, noioctl }, /* 4 = cy */ 43 { 0 } 44 }; 45 int ndevs = (sizeof(devsw)/sizeof(devsw[0])); 46