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 634865Sbostic * provided that the above copyright notice and this paragraph are 734865Sbostic * duplicated in all such forms and that any documentation, 834865Sbostic * advertising materials, and other materials related to such 934865Sbostic * distribution and use acknowledge that the software was developed 1034865Sbostic * by the University of California, Berkeley. The name of the 1134865Sbostic * University may not be used to endorse or promote products derived 1234865Sbostic * from this software without specific prior written permission. 1334865Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1434865Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1534865Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 1633653Sbostic * 17*43457Sroot * @(#)conf.c 1.8 (Berkeley) 06/22/90 1833653Sbostic */ 1925866Ssam 20*43457Sroot #include "sys/param.h" 21*43457Sroot #include "sys/time.h" 22*43457Sroot #include "sys/vnode.h" 23*43457Sroot #include "ufs/inode.h" 24*43457Sroot #include "ufs/fs.h" 2525866Ssam #include "saio.h" 2625866Ssam 2733653Sbostic extern int nullsys(), nodev(), noioctl(); 2825866Ssam 2929566Ssam int vdstrategy(), vdopen(); 3032555Sbostic int hdstrategy(), hdopen(); 3129566Ssam int cystrategy(), cyopen(), cyclose(); 3225866Ssam 3325866Ssam struct devsw devsw[] = { 3433655Sbostic { "ud", nodev, nodev, nullsys, noioctl }, /* 0 = ud */ 3533653Sbostic { "dk", vdstrategy, vdopen, nullsys, noioctl }, /* 1 = ht */ 3633653Sbostic { "hd", hdstrategy, hdopen, nullsys, noioctl }, /* 2 = hd */ 3729566Ssam #ifdef notdef 3833653Sbostic { "xp", xpstrategy, xpopen, nullsys, noioctl }, /* 3 = xp */ 3929566Ssam #else 4033653Sbostic { "xp", nodev, nodev, nullsys, noioctl }, 4129566Ssam #endif 4233653Sbostic { "cy", cystrategy, cyopen, cyclose, noioctl }, /* 4 = cy */ 4329566Ssam { 0 } 4425866Ssam }; 4533653Sbostic int ndevs = (sizeof(devsw)/sizeof(devsw[0])); 46