133653Sbostic /* 233653Sbostic * Copyright (c) 1988 Regents of the University of California. 333653Sbostic * All rights reserved. 433653Sbostic * 533653Sbostic * Redistribution and use in source and binary forms are permitted 6*34865Sbostic * provided that the above copyright notice and this paragraph are 7*34865Sbostic * duplicated in all such forms and that any documentation, 8*34865Sbostic * advertising materials, and other materials related to such 9*34865Sbostic * distribution and use acknowledge that the software was developed 10*34865Sbostic * by the University of California, Berkeley. The name of the 11*34865Sbostic * University may not be used to endorse or promote products derived 12*34865Sbostic * from this software without specific prior written permission. 13*34865Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*34865Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*34865Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1633653Sbostic * 17*34865Sbostic * @(#)conf.c 1.7 (Berkeley) 06/29/88 1833653Sbostic */ 1925866Ssam 2025866Ssam #include "param.h" 2125866Ssam #include "inode.h" 2225866Ssam #include "fs.h" 2325866Ssam #include "saio.h" 2425866Ssam 2533653Sbostic extern int nullsys(), nodev(), noioctl(); 2625866Ssam 2729566Ssam int vdstrategy(), vdopen(); 2832555Sbostic int hdstrategy(), hdopen(); 2929566Ssam int cystrategy(), cyopen(), cyclose(); 3025866Ssam 3125866Ssam struct devsw devsw[] = { 3233655Sbostic { "ud", nodev, nodev, nullsys, noioctl }, /* 0 = ud */ 3333653Sbostic { "dk", vdstrategy, vdopen, nullsys, noioctl }, /* 1 = ht */ 3433653Sbostic { "hd", hdstrategy, hdopen, nullsys, noioctl }, /* 2 = hd */ 3529566Ssam #ifdef notdef 3633653Sbostic { "xp", xpstrategy, xpopen, nullsys, noioctl }, /* 3 = xp */ 3729566Ssam #else 3833653Sbostic { "xp", nodev, nodev, nullsys, noioctl }, 3929566Ssam #endif 4033653Sbostic { "cy", cystrategy, cyopen, cyclose, noioctl }, /* 4 = cy */ 4129566Ssam { 0 } 4225866Ssam }; 4333653Sbostic int ndevs = (sizeof(devsw)/sizeof(devsw[0])); 44