diff options
Diffstat (limited to 'arch/mn10300/unit-asb2305/pci-asb2305.c')
-rw-r--r-- | arch/mn10300/unit-asb2305/pci-asb2305.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/mn10300/unit-asb2305/pci-asb2305.c b/arch/mn10300/unit-asb2305/pci-asb2305.c index 8e6763e6f250..c4e2e79281e8 100644 --- a/arch/mn10300/unit-asb2305/pci-asb2305.c +++ b/arch/mn10300/unit-asb2305/pci-asb2305.c | |||
@@ -213,28 +213,6 @@ void __init pcibios_resource_survey(void) | |||
213 | pcibios_allocate_resources(1); | 213 | pcibios_allocate_resources(1); |
214 | } | 214 | } |
215 | 215 | ||
216 | /* | ||
217 | * If we set up a device for bus mastering, we need to check the latency | ||
218 | * timer as certain crappy BIOSes forget to set it properly. | ||
219 | */ | ||
220 | unsigned int pcibios_max_latency = 255; | ||
221 | |||
222 | void pcibios_set_master(struct pci_dev *dev) | ||
223 | { | ||
224 | u8 lat; | ||
225 | |||
226 | pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); | ||
227 | |||
228 | if (lat < 16) | ||
229 | lat = (64 <= pcibios_max_latency) ? 64 : pcibios_max_latency; | ||
230 | else if (lat > pcibios_max_latency) | ||
231 | lat = pcibios_max_latency; | ||
232 | else | ||
233 | return; | ||
234 | |||
235 | pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat); | ||
236 | } | ||
237 | |||
238 | int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | 216 | int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, |
239 | enum pci_mmap_state mmap_state, int write_combine) | 217 | enum pci_mmap_state mmap_state, int write_combine) |
240 | { | 218 | { |