Rev 9 | Rev 43 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 9 | Rev 11 | ||
|---|---|---|---|
| Line 142... | Line 142... | ||
| 142 | 142 | ||
| 143 | static int request_io_memory(PCIConfig *pPch) |
143 | static int request_io_memory(PCIConfig *pPch) |
| 144 | { |
144 | { |
| 145 | if (check_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE)) |
145 | if (check_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE)) |
| 146 | { |
146 | { |
| 147 | PRINTK(KERN_DEBUG "%s : LCR 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 0)); |
147 | PRINTK(KERN_DEBUG "%s : LCR 0x%08lx\n", DEVICE_NAME, (long unsigned int) pci_resource_start(pPch->pciDev, 0)); |
| 148 | return -EBUSY; |
148 | return -EBUSY; |
| 149 | } |
149 | } |
| 150 | 150 | ||
| 151 | if (check_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE)) |
151 | if (check_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE)) |
| 152 | { |
152 | { |
| 153 | PRINTK(KERN_DEBUG "%s : CTL 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 2)); |
153 | PRINTK(KERN_DEBUG "%s : CTL 0x%08lx\n", DEVICE_NAME, (long unsigned int) pci_resource_start(pPch->pciDev, 2)); |
| 154 | return -EBUSY; |
154 | return -EBUSY; |
| 155 | } |
155 | } |
| 156 | 156 | ||
| 157 | if (check_mem_region(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE)) |
157 | if (check_mem_region(pci_resource_start(pPch->pciDev, 2) + CTL_SPACE, VME_SPACE)) |
| 158 | { |
158 | { |
| 159 | PRINTK(KERN_DEBUG "%s : VME 0x%08lx\n", DEVICE_NAME, pci_resource_start(pPch->pciDev, 2) + CTL_SPACE); |
159 | PRINTK(KERN_DEBUG "%s : VME 0x%08lx\n", DEVICE_NAME, (long unsigned int) pci_resource_start(pPch->pciDev, 2) + CTL_SPACE); |
| 160 | return -EBUSY; |
160 | return -EBUSY; |
| 161 | } |
161 | } |
| 162 | 162 | ||
| 163 | request_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE, DEVICE_NAME); |
163 | request_mem_region(pci_resource_start(pPch->pciDev, 0), LCR_SPACE, DEVICE_NAME); |
| 164 | request_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE, DEVICE_NAME); |
164 | request_mem_region(pci_resource_start(pPch->pciDev, 2), CTL_SPACE, DEVICE_NAME); |