Deleted Added
full compact
ata-all.c (82729) ata-all.c (83366)
1/*-
2 * Copyright (c) 1998,1999,2000,2001 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1998,1999,2000,2001 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/dev/ata/ata-all.c 82729 2001-09-01 08:47:11Z sos $
28 * $FreeBSD: head/sys/dev/ata/ata-all.c 83366 2001-09-12 08:38:13Z julian $
29 */
30
31#include "pci.h"
32#include "opt_ata.h"
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/ata.h>
36#include <sys/kernel.h>

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

280{
281 struct ata_softc *scp = device_get_softc(dev);
282
283 ata_reinit(scp);
284 return 0;
285}
286
287static int
29 */
30
31#include "pci.h"
32#include "opt_ata.h"
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/ata.h>
36#include <sys/kernel.h>

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

280{
281 struct ata_softc *scp = device_get_softc(dev);
282
283 ata_reinit(scp);
284 return 0;
285}
286
287static int
288ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
288ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td)
289{
290 struct ata_cmd *iocmd = (struct ata_cmd *)addr;
291 device_t device;
292 int error;
293
294 if (cmd != IOCATA)
295 return ENOTTY;
296

--- 1020 unchanged lines hidden ---
289{
290 struct ata_cmd *iocmd = (struct ata_cmd *)addr;
291 device_t device;
292 int error;
293
294 if (cmd != IOCATA)
295 return ENOTTY;
296

--- 1020 unchanged lines hidden ---