diff options
Diffstat (limited to 'arch/sparc64/kernel/pci.c')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 9a549547cb2b..a72a3c312d33 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -190,6 +190,7 @@ extern void schizo_init(struct device_node *, const char *); | |||
190 | extern void schizo_plus_init(struct device_node *, const char *); | 190 | extern void schizo_plus_init(struct device_node *, const char *); |
191 | extern void tomatillo_init(struct device_node *, const char *); | 191 | extern void tomatillo_init(struct device_node *, const char *); |
192 | extern void sun4v_pci_init(struct device_node *, const char *); | 192 | extern void sun4v_pci_init(struct device_node *, const char *); |
193 | extern void fire_pci_init(struct device_node *, const char *); | ||
193 | 194 | ||
194 | static struct { | 195 | static struct { |
195 | char *model_name; | 196 | char *model_name; |
@@ -207,6 +208,7 @@ static struct { | |||
207 | { "SUNW,tomatillo", tomatillo_init }, | 208 | { "SUNW,tomatillo", tomatillo_init }, |
208 | { "pci108e,a801", tomatillo_init }, | 209 | { "pci108e,a801", tomatillo_init }, |
209 | { "SUNW,sun4v-pci", sun4v_pci_init }, | 210 | { "SUNW,sun4v-pci", sun4v_pci_init }, |
211 | { "pciex108e,80f0", fire_pci_init }, | ||
210 | }; | 212 | }; |
211 | #define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \ | 213 | #define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \ |
212 | sizeof(pci_controller_table[0])) | 214 | sizeof(pci_controller_table[0])) |
@@ -436,6 +438,13 @@ struct pci_dev *of_create_pci_dev(struct pci_pbm_info *pbm, | |||
436 | printk(" class: 0x%x device name: %s\n", | 438 | printk(" class: 0x%x device name: %s\n", |
437 | dev->class, pci_name(dev)); | 439 | dev->class, pci_name(dev)); |
438 | 440 | ||
441 | /* I have seen IDE devices which will not respond to | ||
442 | * the bmdma simplex check reads if bus mastering is | ||
443 | * disabled. | ||
444 | */ | ||
445 | if ((dev->class >> 8) == PCI_CLASS_STORAGE_IDE) | ||
446 | pci_set_master(dev); | ||
447 | |||
439 | dev->current_state = 4; /* unknown power state */ | 448 | dev->current_state = 4; /* unknown power state */ |
440 | dev->error_state = pci_channel_io_normal; | 449 | dev->error_state = pci_channel_io_normal; |
441 | 450 | ||