Deleted Added
sdiff udiff text old ( 111232 ) new ( 111815 )
full compact
1/*
2 * Copyright (c) 2003 Poul-Henning Kamp.
3 * Copyright (c) 1995 Jason R. Thorpe.
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 * All rights reserved.
7 * Copyright (c) 1988 University of Utah.
8 *

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

45 * Moffett Field, CA 94035
46 *
47 * from: Utah $Hdr: cd.c 1.6 90/11/28$
48 *
49 * @(#)cd.c 8.2 (Berkeley) 11/16/93
50 *
51 * $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $
52 *
53 * $FreeBSD: head/sys/geom/geom_ccd.c 111815 2003-03-03 12:15:54Z phk $
54 */
55
56#include <sys/param.h>
57#include <sys/systm.h>
58#include <sys/kernel.h>
59#include <sys/module.h>
60#include <sys/proc.h>
61#include <sys/bio.h>

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

110static disk_strategy_t ccdstrategy;
111static d_ioctl_t ccdctlioctl;
112
113#define NCCDFREEHIWAT 16
114
115#define CDEV_MAJOR 74
116
117static struct cdevsw ccdctl_cdevsw = {
118 .d_open = nullopen,
119 .d_close = nullclose,
120 .d_ioctl = ccdctlioctl,
121 .d_name = "ccdctl",
122 .d_maj = CDEV_MAJOR,
123};
124
125static LIST_HEAD(, ccd_s) ccd_softc_list =
126 LIST_HEAD_INITIALIZER(&ccd_softc_list);
127
128static struct ccd_s *ccdfind(int);
129static struct ccd_s *ccdnew(int);
130static int ccddestroy(struct ccd_s *);

--- 1139 unchanged lines hidden ---