141488Smckusick /* 241488Smckusick * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. 341488Smckusick * All rights reserved. 441488Smckusick * 541488Smckusick * %sccs.include.redist.c% 641488Smckusick * 7*49159Sbostic * @(#)conf.c 7.3 (Berkeley) 05/05/91 841488Smckusick */ 941488Smckusick 10*49159Sbostic #include <sys/param.h> 1141488Smckusick #include "saio.h" 1241488Smckusick 13*49159Sbostic extern int nullsys(), nodev(), noioctl(); 1441488Smckusick 15*49159Sbostic #ifndef BOOT 16*49159Sbostic int ctstrategy(), ctopen(), ctclose(); 17*49159Sbostic #define ctioctl noioctl 18*49159Sbostic #endif 1941488Smckusick 20*49159Sbostic int rdstrategy(), rdopen(); 21*49159Sbostic #define rdioctl noioctl 2241488Smckusick 23*49159Sbostic int sdstrategy(), sdopen(); 24*49159Sbostic #define sdioctl noioctl 2541488Smckusick 2641488Smckusick 2741488Smckusick struct devsw devsw[] = { 28*49159Sbostic { "rd", rdstrategy, rdopen, nullsys, noioctl }, /* 0 = rd */ 29*49159Sbostic { "sd", sdstrategy, sdopen, nullsys, noioctl }, /* 1 = sd */ 3041488Smckusick #ifndef BOOT 31*49159Sbostic { "ct", ctstrategy, ctopen, ctclose, noioctl }, /* 2 = ct */ 3241488Smckusick #endif 33*49159Sbostic { NULL }, 3441488Smckusick }; 35*49159Sbostic 36*49159Sbostic int ndevs = (sizeof(devsw)/sizeof(devsw[0])); 37