scd.c (106719) | scd.c (111815) |
---|---|
1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Portions of this file are copied from mcd.c 6 * which has the following copyrights: 7 * 8 * Copyright 1993 by Holger Veit (data part) --- 26 unchanged lines hidden (view full) --- 35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 */ 42 | 1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Portions of this file are copied from mcd.c 6 * which has the following copyrights: 7 * 8 * Copyright 1993 by Holger Veit (data part) --- 26 unchanged lines hidden (view full) --- 35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 */ 42 |
43/* $FreeBSD: head/sys/dev/scd/scd.c 106719 2002-11-10 03:45:49Z mdodd $ */ | 43/* $FreeBSD: head/sys/dev/scd/scd.c 111815 2003-03-03 12:15:54Z phk $ */ |
44 45#undef SCD_DEBUG 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/conf.h> 51#include <sys/fcntl.h> --- 89 unchanged lines hidden (view full) --- 141static d_open_t scdopen; 142static d_close_t scdclose; 143static d_ioctl_t scdioctl; 144static d_strategy_t scdstrategy; 145 146#define CDEV_MAJOR 45 147 148static struct cdevsw scd_cdevsw = { | 44 45#undef SCD_DEBUG 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> 50#include <sys/conf.h> 51#include <sys/fcntl.h> --- 89 unchanged lines hidden (view full) --- 141static d_open_t scdopen; 142static d_close_t scdclose; 143static d_ioctl_t scdioctl; 144static d_strategy_t scdstrategy; 145 146#define CDEV_MAJOR 45 147 148static struct cdevsw scd_cdevsw = { |
149 /* open */ scdopen, 150 /* close */ scdclose, 151 /* read */ physread, 152 /* write */ nowrite, 153 /* ioctl */ scdioctl, 154 /* poll */ nopoll, 155 /* mmap */ nommap, 156 /* strategy */ scdstrategy, 157 /* name */ "scd", 158 /* maj */ CDEV_MAJOR, 159 /* dump */ nodump, 160 /* psize */ nopsize, 161 /* flags */ D_DISK, | 149 .d_open = scdopen, 150 .d_close = scdclose, 151 .d_read = physread, 152 .d_ioctl = scdioctl, 153 .d_strategy = scdstrategy, 154 .d_name = "scd", 155 .d_maj = CDEV_MAJOR, 156 .d_flags = D_DISK, |
162}; 163 164int 165scd_attach(struct scd_softc *sc) 166{ 167 int unit; 168 169 unit = device_get_unit(sc->dev); --- 1257 unchanged lines hidden --- | 157}; 158 159int 160scd_attach(struct scd_softc *sc) 161{ 162 int unit; 163 164 unit = device_get_unit(sc->dev); --- 1257 unchanged lines hidden --- |