Lines Matching refs:router
45 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
46 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq,
52 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
177 static unsigned int read_config_nybble(struct pci_dev *router, unsigned offset, unsigned nr) in read_config_nybble() argument
182 pci_read_config_byte(router, reg, &x); in read_config_nybble()
186 static void write_config_nybble(struct pci_dev *router, unsigned offset, in write_config_nybble() argument
192 pci_read_config_byte(router, reg, &x); in write_config_nybble()
194 pci_write_config_byte(router, reg, x); in write_config_nybble()
202 static int pirq_ali_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ali_get() argument
207 return irqmap[read_config_nybble(router, 0x48, pirq-1)]; in pirq_ali_get()
210 static int pirq_ali_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_ali_set() argument
217 write_config_nybble(router, 0x48, pirq-1, val); in pirq_ali_set()
227 static int pirq_piix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_piix_get() argument
231 pci_read_config_byte(router, pirq, &x); in pirq_piix_get()
235 static int pirq_piix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_piix_set() argument
237 pci_write_config_byte(router, pirq, irq); in pirq_piix_set()
246 static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_via_get() argument
248 return read_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq); in pirq_via_get()
251 static int pirq_via_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_via_set() argument
253 write_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq, irq); in pirq_via_set()
262 static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_via586_get() argument
267 return read_config_nybble(router, 0x55, pirqmap[pirq-1]); in pirq_via586_get()
270 static int pirq_via586_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_via586_set() argument
275 write_config_nybble(router, 0x55, pirqmap[pirq-1], irq); in pirq_via586_set()
284 static int pirq_ite_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ite_get() argument
289 return read_config_nybble(router, 0x43, pirqmap[pirq-1]); in pirq_ite_get()
292 static int pirq_ite_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_ite_set() argument
297 write_config_nybble(router, 0x43, pirqmap[pirq-1], irq); in pirq_ite_set()
305 static int pirq_opti_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_opti_get() argument
307 return read_config_nybble(router, 0xb8, pirq >> 4); in pirq_opti_get()
310 static int pirq_opti_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_opti_set() argument
312 write_config_nybble(router, 0xb8, pirq >> 4, irq); in pirq_opti_set()
321 static int pirq_cyrix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_cyrix_get() argument
323 return read_config_nybble(router, 0x5C, (pirq-1)^1); in pirq_cyrix_get()
326 static int pirq_cyrix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_cyrix_set() argument
328 write_config_nybble(router, 0x5C, (pirq-1)^1, irq); in pirq_cyrix_set()
397 static int pirq_sis_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_sis_get() argument
405 pci_read_config_byte(router, reg, &x); in pirq_sis_get()
409 static int pirq_sis_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_sis_set() argument
417 pci_read_config_byte(router, reg, &x); in pirq_sis_set()
420 pci_write_config_byte(router, reg, x); in pirq_sis_set()
433 static int pirq_vlsi_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_vlsi_get() argument
440 return read_config_nybble(router, 0x74, pirq-1); in pirq_vlsi_get()
443 static int pirq_vlsi_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_vlsi_set() argument
450 write_config_nybble(router, 0x74, pirq-1, irq); in pirq_vlsi_set()
465 static int pirq_serverworks_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_serverworks_get() argument
471 static int pirq_serverworks_set(struct pci_dev *router, struct pci_dev *dev, in pirq_serverworks_set() argument
487 static int pirq_amd756_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_amd756_get() argument
492 irq = read_config_nybble(router, 0x56, pirq - 1); in pirq_amd756_get()
499 static int pirq_amd756_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_amd756_set() argument
505 write_config_nybble(router, 0x56, pirq - 1, irq); in pirq_amd756_set()
512 static int pirq_pico_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_pico_get() argument
518 static int pirq_pico_set(struct pci_dev *router, struct pci_dev *dev, int pirq, in pirq_pico_set() argument
531 static int pirq_bios_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_bios_set() argument
540 static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in intel_router_probe() argument
618 struct pci_dev *router, u16 device) in via_router_probe() argument
626 switch (router->device) { in via_router_probe()
672 static __init int vlsi_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in vlsi_router_probe() argument
686 struct pci_dev *router, u16 device) in serverworks_router_probe() argument
699 static __init int sis_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in sis_router_probe() argument
710 static __init int cyrix_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in cyrix_router_probe() argument
722 static __init int opti_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in opti_router_probe() argument
734 static __init int ite_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in ite_router_probe() argument
746 static __init int ali_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in ali_router_probe() argument
759 static __init int amd_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in amd_router_probe() argument
779 static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in pico_router_probe() argument