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.
This commit is contained in:
parent
344968933a
commit
483d6181f7
@ -177,7 +177,7 @@ adv_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*/ADV_EISA_MAX_DMA_COUNT,
|
||||
/*flags*/0,
|
||||
&adv_b->parent_dmat);
|
||||
@ -212,7 +212,7 @@ adv_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*/ADV_EISA_MAX_DMA_COUNT,
|
||||
/*flags*/0,
|
||||
&adv->parent_dmat);
|
||||
|
@ -191,7 +191,7 @@ adv_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*/ADV_PCI_MAX_DMA_COUNT,
|
||||
/*flags*/0,
|
||||
&adv->parent_dmat);
|
||||
|
@ -262,7 +262,7 @@ adw_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*/ADW_PCI_MAX_DMA_COUNT,
|
||||
/*flags*/0,
|
||||
&adw->parent_dmat);
|
||||
|
Loading…
Reference in New Issue
Block a user