10 #include <linux/pci.h>
12 #include <linux/export.h>
13 #include <linux/slab.h>
42 pci_write_config_byte(cfg->
dev, cfg->
pos + 2, cfg->
idx);
46 pci_write_config_byte(cfg->
dev, cfg->
pos + 2, cfg->
idx + 1);
51 spin_unlock_irqrestore(&ht_irq_lock, flags);
103 pci_write_config_byte(dev, pos + 2, 1);
104 pci_read_config_dword(dev, pos + 4, &data);
105 spin_unlock_irqrestore(&ht_irq_lock, flags);
107 max_irq = (data >> 16) & 0xff;
118 cfg->
idx = 0x10 + (idx * 2);
120 cfg->
msg.address_lo = 0xffffffff;
121 cfg->
msg.address_hi = 0xffffffff;
123 node = dev_to_node(&dev->
dev);
166 cfg = irq_get_handler_data(irq);