patch-2.4.23 linux-2.4.23/arch/ia64/sn/io/machvec/pci_dma.c
Next file: linux-2.4.23/arch/ia64/sn/io/platform_init/Makefile
Previous file: linux-2.4.23/arch/ia64/sn/io/machvec/pci_bus_cvlink.c
Back to the patch index
Back to the overall index
- Lines: 80
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/ia64/sn/io/machvec/pci_dma.c
- Orig date:
2003-08-25 04:44:39.000000000 -0700
diff -urN linux-2.4.22/arch/ia64/sn/io/machvec/pci_dma.c linux-2.4.23/arch/ia64/sn/io/machvec/pci_dma.c
@@ -182,7 +182,6 @@
* attributes or to a different memory region.
*/
*dma_handle = pciio_dmatrans_addr(vhdl, NULL, phys_addr, size,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
PCIIO_DMA_CMD);
/*
@@ -201,7 +200,6 @@
*/
if (!(*dma_handle)) {
dma_map = pciio_dmamap_alloc(vhdl, NULL, size,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
PCIIO_DMA_CMD);
if (!dma_map) {
printk(KERN_ERR "sn_pci_alloc_consistent: Unable to "
@@ -295,10 +293,7 @@
*/
if (IS_PCIA64(hwdev)) {
sg->dma_address = pciio_dmatrans_addr(vhdl, NULL, phys_addr,
- sg->length,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
- PCIIO_DMA_DATA |
- PCIIO_DMA_A64);
+ sg->length, PCIIO_DMA_DATA | PCIIO_DMA_A64);
sg->dma_length = sg->length;
continue;
}
@@ -308,9 +303,7 @@
*/
if (IS_PCI32G(hwdev)) {
sg->dma_address = pciio_dmatrans_addr(vhdl, NULL, phys_addr,
- sg->length,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
- PCIIO_DMA_DATA);
+ sg->length, PCIIO_DMA_DATA);
sg->dma_length = sg->length;
/*
* See if we got a direct map entry
@@ -325,9 +318,7 @@
* It is a 32 bit card and we cannot do direct mapping,
* so we use an ATE.
*/
- dma_map = pciio_dmamap_alloc(vhdl, NULL, sg->length,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
- PCIIO_DMA_DATA);
+ dma_map = pciio_dmamap_alloc(vhdl, NULL, sg->length, PCIIO_DMA_DATA);
if (!dma_map) {
printk(KERN_ERR "sn_pci_map_sg: Unable to allocate "
"anymore 32 bit page map entries.\n");
@@ -440,9 +431,7 @@
if (IS_PCIA64(hwdev)) {
/* This device supports 64 bit DMA addresses. */
dma_addr = pciio_dmatrans_addr(vhdl, NULL, phys_addr, size,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
- PCIIO_DMA_DATA |
- PCIIO_DMA_A64);
+ PCIIO_DMA_DATA | PCIIO_DMA_A64);
return dma_addr;
}
@@ -454,7 +443,6 @@
*/
if (IS_PCI32G(hwdev)) {
dma_addr = pciio_dmatrans_addr(vhdl, NULL, phys_addr, size,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
PCIIO_DMA_DATA);
if (dma_addr)
return dma_addr;
@@ -465,9 +453,7 @@
* let's use the PMU instead.
*/
dma_map = NULL;
- dma_map = pciio_dmamap_alloc(vhdl, NULL, size,
- ((IS_PIC_DEVICE(hwdev)) ? 0 : PCIIO_BYTE_STREAM) |
- PCIIO_DMA_DATA);
+ dma_map = pciio_dmamap_alloc(vhdl, NULL, size, PCIIO_DMA_DATA);
if (!dma_map) {
printk(KERN_ERR "pci_map_single: Unable to allocate anymore "
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)