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 /sys/dev/dpt | |
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.
Diffstat (limited to 'sys/dev/dpt')
-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 |
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) { |