diff options
author | peter <peter@FreeBSD.org> | 2002-10-09 08:54:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-10-09 08:54:32 +0000 |
commit | 9a5a0eace469d8dfc930727142fecf4d13009558 (patch) | |
tree | 1258a45d825402feb4dc26895b1b7c942627c4de | |
parent | b1adf94578d5029984e57d6efb037d8aa50970e8 (diff) | |
download | FreeBSD-src-9a5a0eace469d8dfc930727142fecf4d13009558.zip FreeBSD-src-9a5a0eace469d8dfc930727142fecf4d13009558.tar.gz |
Change BUS_SPACE_UNRESTRICTED (~0ul) to plain ~0 when used in the
'int nsegments' argument to bus_dma_tag_create(). ~0ul does not fit in
an int on machines with 64 bit longs.
-rw-r--r-- | sys/dev/aha/aha_isa.c | 2 | ||||
-rw-r--r-- | sys/dev/aha/aha_mca.c | 2 | ||||
-rw-r--r-- | sys/dev/buslogic/bt_eisa.c | 2 | ||||
-rw-r--r-- | sys/dev/buslogic/bt_isa.c | 2 | ||||
-rw-r--r-- | sys/dev/buslogic/bt_mca.c | 2 | ||||
-rw-r--r-- | sys/dev/buslogic/bt_pci.c | 2 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_eisa.c | 2 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_isa.c | 2 | ||||
-rw-r--r-- | sys/dev/dpt/dpt_pci.c | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/aha/aha_isa.c b/sys/dev/aha/aha_isa.c index 4faad2a..4703246 100644 --- a/sys/dev/aha/aha_isa.c +++ b/sys/dev/aha/aha_isa.c @@ -248,7 +248,7 @@ aha_isa_attach(device_t dev) lowaddr, /*highaddr*/BUS_SPACE_MAXADDR, filter, filter_arg, /*maxsize*/BUS_SPACE_MAXSIZE_24BIT, - /*nsegments*/BUS_SPACE_UNRESTRICTED, + /*nsegments*/~0, /*maxsegsz*/BUS_SPACE_MAXSIZE_24BIT, /*flags*/0, &aha->parent_dmat) != 0) { aha_free(aha); diff --git a/sys/dev/aha/aha_mca.c b/sys/dev/aha/aha_mca.c index 70b422c..ed1aea0 100644 --- a/sys/dev/aha/aha_mca.c +++ b/sys/dev/aha/aha_mca.c @@ -180,7 +180,7 @@ aha_mca_attach (device_t dev) NULL, NULL, /* maxsize */ BUS_SPACE_MAXSIZE_24BIT, - /* nsegments */ BUS_SPACE_UNRESTRICTED, + /* nsegments */ ~0, /* maxsegsz */ BUS_SPACE_MAXSIZE_24BIT, /* flags */ 0, &sc->parent_dmat); diff --git a/sys/dev/buslogic/bt_eisa.c b/sys/dev/buslogic/bt_eisa.c index dc4d651..a034a5b 100644 --- a/sys/dev/buslogic/bt_eisa.c +++ b/sys/dev/buslogic/bt_eisa.c @@ -314,7 +314,7 @@ bt_eisa_attach(device_t dev) /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, - /*nsegments*/BUS_SPACE_UNRESTRICTED, + /*nsegments*/~0, /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, /*flags*/0, &bt->parent_dmat) != 0) { bt_eisa_release_resources(dev); diff --git a/sys/dev/buslogic/bt_isa.c b/sys/dev/buslogic/bt_isa.c index 9377be9..f977beb 100644 --- a/sys/dev/buslogic/bt_isa.c +++ b/sys/dev/buslogic/bt_isa.c @@ -236,7 +236,7 @@ bt_isa_attach(device_t dev) lowaddr, /*highaddr*/BUS_SPACE_MAXADDR, filter, filter_arg, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, - /*nsegments*/BUS_SPACE_UNRESTRICTED, + /*nsegments*/~0, /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, /*flags*/0, &bt->parent_dmat) != 0) { bt_isa_release_resources(dev); diff --git a/sys/dev/buslogic/bt_mca.c b/sys/dev/buslogic/bt_mca.c index 08ac9ed..d419690 100644 --- a/sys/dev/buslogic/bt_mca.c +++ b/sys/dev/buslogic/bt_mca.c @@ -223,7 +223,7 @@ bt_mca_attach (device_t dev) /*filter*/btvlbouncefilter, /*filterarg*/bt, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, - /*nsegments*/BUS_SPACE_UNRESTRICTED, + /*nsegments*/~0, /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, /*flags*/0, &bt->parent_dmat) != 0) { bt_mca_release_resources(dev); diff --git a/sys/dev/buslogic/bt_pci.c b/sys/dev/buslogic/bt_pci.c index 6c5d159..d3deb70 100644 --- a/sys/dev/buslogic/bt_pci.c +++ b/sys/dev/buslogic/bt_pci.c @@ -178,7 +178,7 @@ bt_pci_attach(device_t dev) /*highaddr*/BUS_SPACE_MAXADDR, /*filter*/NULL, /*filterarg*/NULL, /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, - /*nsegments*/BUS_SPACE_UNRESTRICTED, + /*nsegments*/~0, /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, /*flags*/0, &bt->parent_dmat) != 0) { bt_pci_release_resources(dev); diff --git a/sys/dev/dpt/dpt_eisa.c b/sys/dev/dpt/dpt_eisa.c index bdb53e7..fb2a7fd 100644 --- a/sys/dev/dpt/dpt_eisa.c +++ b/sys/dev/dpt/dpt_eisa.c @@ -139,7 +139,7 @@ dpt_eisa_attach (device_t dev) /* filter */ NULL, /* filterarg */ NULL, /* maxsize */ BUS_SPACE_MAXSIZE_32BIT, - /* nsegments */ BUS_SPACE_UNRESTRICTED, + /* nsegments */ ~0, /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, /* flags */0, &dpt->parent_dmat) != 0) { diff --git a/sys/dev/dpt/dpt_isa.c b/sys/dev/dpt/dpt_isa.c index dad354a..6032ca5 100644 --- a/sys/dev/dpt/dpt_isa.c +++ b/sys/dev/dpt/dpt_isa.c @@ -125,7 +125,7 @@ dpt_isa_attach (device_t dev) /* filter */ NULL, /* filterarg */ NULL, /* maxsize */ BUS_SPACE_MAXSIZE_32BIT, - /* nsegments */ BUS_SPACE_UNRESTRICTED, + /* nsegments */ ~0, /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, /* flags */ 0, &dpt->parent_dmat) != 0) { diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c index 1077437..90b62fe 100644 --- a/sys/dev/dpt/dpt_pci.c +++ b/sys/dev/dpt/dpt_pci.c @@ -144,7 +144,7 @@ dpt_pci_attach (device_t dev) /* filter */ NULL, /* filterarg */ NULL, /* maxsize */ BUS_SPACE_MAXSIZE_32BIT, - /* nsegments */ BUS_SPACE_UNRESTRICTED, + /* nsegments */ ~0, /* maxsegsz */ BUS_SPACE_MAXSIZE_32BIT, /* flags */ 0, &dpt->parent_dmat) != 0) { |