ccio-dma.c (bdad1f836ab1ca2b18a625222f63f630cfd14e41) | ccio-dma.c (53f01bba49938f115237fe43a261c31ac13ae5c6) |
---|---|
1/* 2** ccio-dma.c: 3** DMA management routines for first generation cache-coherent machines. 4** Program U2/Uturn in "Virtual Mode" and use the I/O MMU. 5** 6** (c) Copyright 2000 Grant Grundler 7** (c) Copyright 2000 Ryan Bradetich 8** (c) Copyright 2000 Hewlett-Packard Company --- 1532 unchanged lines hidden (view full) --- 1541 if (ioc == NULL) { 1542 printk(KERN_ERR MODULE_NAME ": memory allocation failure\n"); 1543 return 1; 1544 } 1545 memset(ioc, 0, sizeof(struct ioc)); 1546 1547 ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn"; 1548 | 1/* 2** ccio-dma.c: 3** DMA management routines for first generation cache-coherent machines. 4** Program U2/Uturn in "Virtual Mode" and use the I/O MMU. 5** 6** (c) Copyright 2000 Grant Grundler 7** (c) Copyright 2000 Ryan Bradetich 8** (c) Copyright 2000 Hewlett-Packard Company --- 1532 unchanged lines hidden (view full) --- 1541 if (ioc == NULL) { 1542 printk(KERN_ERR MODULE_NAME ": memory allocation failure\n"); 1543 return 1; 1544 } 1545 memset(ioc, 0, sizeof(struct ioc)); 1546 1547 ioc->name = dev->id.hversion == U2_IOA_RUNWAY ? "U2" : "UTurn"; 1548 |
1549 printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name, dev->hpa); | 1549 printk(KERN_INFO "Found %s at 0x%lx\n", ioc->name, dev->hpa.start); |
1550 1551 for (i = 0; i < ioc_count; i++) { 1552 ioc_p = &(*ioc_p)->next; 1553 } 1554 *ioc_p = ioc; 1555 1556 ioc->hw_path = dev->hw_path; | 1550 1551 for (i = 0; i < ioc_count; i++) { 1552 ioc_p = &(*ioc_p)->next; 1553 } 1554 *ioc_p = ioc; 1555 1556 ioc->hw_path = dev->hw_path; |
1557 ioc->ioc_hpa = (struct ioa_registers *)dev->hpa; | 1557 ioc->ioc_regs = ioremap(dev->hpa.start, 4096); |
1558 ccio_ioc_init(ioc); 1559 ccio_init_resources(ioc); 1560 hppa_dma_ops = &ccio_ops; 1561 dev->dev.platform_data = kmalloc(sizeof(struct pci_hba_data), GFP_KERNEL); 1562 1563 /* if this fails, no I/O cards will work, so may as well bug */ 1564 BUG_ON(dev->dev.platform_data == NULL); 1565 HBA_DATA(dev->dev.platform_data)->iommu = ioc; --- 28 unchanged lines hidden --- | 1558 ccio_ioc_init(ioc); 1559 ccio_init_resources(ioc); 1560 hppa_dma_ops = &ccio_ops; 1561 dev->dev.platform_data = kmalloc(sizeof(struct pci_hba_data), GFP_KERNEL); 1562 1563 /* if this fails, no I/O cards will work, so may as well bug */ 1564 BUG_ON(dev->dev.platform_data == NULL); 1565 HBA_DATA(dev->dev.platform_data)->iommu = ioc; --- 28 unchanged lines hidden --- |