1 /* Copyright 2003 Tyan */
13 #include <console/console.h>
14 #include <device/device.h>
15 #include <device/pci.h>
16 #include <device/pci_ids.h>
17 #include <device/pci_ops.h>
20 static void ti_firewire_init(struct device *dev)
24 word = pci_read_config16(dev, 0x4);
25 word |= ((1 << 2) |(1<<4)); // Command: 3--> 17
26 pci_write_config16(dev, 0x4, word);
30 static struct device_operations ti_firewire_ops = {
31 .read_resources = pci_dev_read_resources,
32 .set_resources = pci_dev_set_resources,
33 .enable_resources = pci_dev_enable_resources,
34 .init = ti_firewire_init,
38 static struct pci_driver ti_firewire_driver __pci_driver = {
39 .ops = &ti_firewire_ops,