Deleted Added
full compact
ata-dma.c (45116) ata-dma.c (45150)
1/*-
2 * Copyright (c) 1998,1999 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 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 * $Id: ata-dma.c,v 1.1 1999/03/28 18:57:19 sos Exp $
28 * $Id: ata-dma.c,v 1.2 1999/03/29 14:24:42 sos Exp $
29 */
30
31#include "ata.h"
29 */
30
31#include "ata.h"
32#if NATA > 0
33#include "pci.h"
32#include "pci.h"
34#if NPCI > 0
33#if NATA > 0
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>
38#include <sys/buf.h>
39#include <sys/malloc.h>
40#include <vm/vm.h>
41#include <vm/pmap.h>
42#include <pci/pcivar.h>
43#include <pci/pcireg.h>
44#include <dev/ata/ata-all.h>
45
46/* misc defines */
47#define MIN(a,b) ((a)>(b)?(b):(a))
48
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/buf.h>
38#include <sys/malloc.h>
39#include <vm/vm.h>
40#include <vm/pmap.h>
41#include <pci/pcivar.h>
42#include <pci/pcireg.h>
43#include <dev/ata/ata-all.h>
44
45/* misc defines */
46#define MIN(a,b) ((a)>(b)?(b):(a))
47
48#if NPCI > 0
49
49int32_t
50ata_dmainit(struct ata_softc *scp, int32_t device,
51 int32_t apiomode, int32_t wdmamode, int32_t udmamode)
52{
53 int32_t type, devno, error;
54 void *dmatab;
55
56 if (!scp->bmaddr)

--- 311 unchanged lines hidden ---
50int32_t
51ata_dmainit(struct ata_softc *scp, int32_t device,
52 int32_t apiomode, int32_t wdmamode, int32_t udmamode)
53{
54 int32_t type, devno, error;
55 void *dmatab;
56
57 if (!scp->bmaddr)

--- 311 unchanged lines hidden ---