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.
This commit is contained in:
parent
167e93a527
commit
16c1138c89
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104710
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user