summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-09 08:54:32 +0000
committerpeter <peter@FreeBSD.org>2002-10-09 08:54:32 +0000
commit9a5a0eace469d8dfc930727142fecf4d13009558 (patch)
tree1258a45d825402feb4dc26895b1b7c942627c4de /sys/dev/dpt
parentb1adf94578d5029984e57d6efb037d8aa50970e8 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_eisa.c2
-rw-r--r--sys/dev/dpt/dpt_isa.c2
-rw-r--r--sys/dev/dpt/dpt_pci.c2
3 files changed, 3 insertions, 3 deletions
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) {
OpenPOWER on IntegriCloud