Deleted Added
full compact
conf.h (46792) conf.h (47028)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)conf.h 8.5 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)conf.h 8.5 (Berkeley) 1/9/95
39 * $Id: conf.h,v 1.53 1999/05/09 08:58:44 phk Exp $
39 * $Id: conf.h,v 1.54 1999/05/09 13:00:50 phk Exp $
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45/*
46 * Definitions of device driver entry switches
47 */

--- 89 unchanged lines hidden (view full) ---

137{
138 return(cdevsw[major(dev)]);
139}
140
141static __inline
142struct cdevsw *
143bdevsw(dev_t dev)
144{
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45/*
46 * Definitions of device driver entry switches
47 */

--- 89 unchanged lines hidden (view full) ---

137{
138 return(cdevsw[major(dev)]);
139}
140
141static __inline
142struct cdevsw *
143bdevsw(dev_t dev)
144{
145 struct cdevsw *c = cdevsw[bmaj2cmaj[major(dev)]];
145 struct cdevsw *c;
146 int i = major(dev);
147
148 if (bmaj2cmaj[i] == 254)
149 return 0;
150
151 c = cdevsw[bmaj2cmaj[major(dev)]];
152 if (!c) {
153 printf("bogus bdev dev_t %x, no cdev\n", dev);
154 Debugger("Bummer");
155 return 0;
156 }
146 /* CMAJ zero is the console, which has no strategy so this works */
147 if (c->d_strategy)
148 return (c);
149 return (0);
150}
151#endif
152
153/*

--- 108 unchanged lines hidden ---
157 /* CMAJ zero is the console, which has no strategy so this works */
158 if (c->d_strategy)
159 return (c);
160 return (0);
161}
162#endif
163
164/*

--- 108 unchanged lines hidden ---