Lines Matching refs:router
46 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
47 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq,
53 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
175 static unsigned int read_config_nybble(struct pci_dev *router, unsigned offset, unsigned nr) in read_config_nybble() argument
180 pci_read_config_byte(router, reg, &x); in read_config_nybble()
184 static void write_config_nybble(struct pci_dev *router, unsigned offset, in write_config_nybble() argument
190 pci_read_config_byte(router, reg, &x); in write_config_nybble()
192 pci_write_config_byte(router, reg, x); in write_config_nybble()
200 static int pirq_ali_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ali_get() argument
205 return irqmap[read_config_nybble(router, 0x48, pirq-1)]; in pirq_ali_get()
208 static int pirq_ali_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_ali_set() argument
215 write_config_nybble(router, 0x48, pirq-1, val); in pirq_ali_set()
225 static int pirq_piix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_piix_get() argument
229 pci_read_config_byte(router, pirq, &x); in pirq_piix_get()
233 static int pirq_piix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_piix_set() argument
235 pci_write_config_byte(router, pirq, irq); in pirq_piix_set()
244 static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_via_get() argument
246 return read_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq); in pirq_via_get()
249 static int pirq_via_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_via_set() argument
251 write_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq, irq); in pirq_via_set()
260 static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_via586_get() argument
265 return read_config_nybble(router, 0x55, pirqmap[pirq-1]); in pirq_via586_get()
268 static int pirq_via586_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_via586_set() argument
273 write_config_nybble(router, 0x55, pirqmap[pirq-1], irq); in pirq_via586_set()
282 static int pirq_ite_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_ite_get() argument
287 return read_config_nybble(router, 0x43, pirqmap[pirq-1]); in pirq_ite_get()
290 static int pirq_ite_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_ite_set() argument
295 write_config_nybble(router, 0x43, pirqmap[pirq-1], irq); in pirq_ite_set()
303 static int pirq_opti_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_opti_get() argument
305 return read_config_nybble(router, 0xb8, pirq >> 4); in pirq_opti_get()
308 static int pirq_opti_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_opti_set() argument
310 write_config_nybble(router, 0xb8, pirq >> 4, irq); in pirq_opti_set()
319 static int pirq_cyrix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_cyrix_get() argument
321 return read_config_nybble(router, 0x5C, (pirq-1)^1); in pirq_cyrix_get()
324 static int pirq_cyrix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_cyrix_set() argument
326 write_config_nybble(router, 0x5C, (pirq-1)^1, irq); in pirq_cyrix_set()
395 static int pirq_sis_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_sis_get() argument
403 pci_read_config_byte(router, reg, &x); in pirq_sis_get()
407 static int pirq_sis_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_sis_set() argument
415 pci_read_config_byte(router, reg, &x); in pirq_sis_set()
418 pci_write_config_byte(router, reg, x); in pirq_sis_set()
431 static int pirq_vlsi_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_vlsi_get() argument
438 return read_config_nybble(router, 0x74, pirq-1); in pirq_vlsi_get()
441 static int pirq_vlsi_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_vlsi_set() argument
448 write_config_nybble(router, 0x74, pirq-1, irq); in pirq_vlsi_set()
463 static int pirq_serverworks_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_serverworks_get() argument
469 static int pirq_serverworks_set(struct pci_dev *router, struct pci_dev *dev, in pirq_serverworks_set() argument
485 static int pirq_amd756_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_amd756_get() argument
490 irq = read_config_nybble(router, 0x56, pirq - 1); in pirq_amd756_get()
497 static int pirq_amd756_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_amd756_set() argument
503 write_config_nybble(router, 0x56, pirq - 1, irq); in pirq_amd756_set()
510 static int pirq_pico_get(struct pci_dev *router, struct pci_dev *dev, int pirq) in pirq_pico_get() argument
516 static int pirq_pico_set(struct pci_dev *router, struct pci_dev *dev, int pirq, in pirq_pico_set() argument
529 static int pirq_bios_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) in pirq_bios_set() argument
538 static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in intel_router_probe() argument
616 struct pci_dev *router, u16 device) in via_router_probe() argument
624 switch (router->device) { in via_router_probe()
670 static __init int vlsi_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in vlsi_router_probe() argument
684 struct pci_dev *router, u16 device) in serverworks_router_probe() argument
697 static __init int sis_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in sis_router_probe() argument
708 static __init int cyrix_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in cyrix_router_probe() argument
720 static __init int opti_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in opti_router_probe() argument
732 static __init int ite_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in ite_router_probe() argument
744 static __init int ali_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in ali_router_probe() argument
757 static __init int amd_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in amd_router_probe() argument
777 static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) in pico_router_probe() argument