Lines Matching refs:isa_br
75 struct isa_bridge *isa_br, in isa_dev_get_irq_using_imap() argument
82 hi = pregs->which_io & isa_br->isa_intmask.phys_hi; in isa_dev_get_irq_using_imap()
83 lo = pregs->phys_addr & isa_br->isa_intmask.phys_lo; in isa_dev_get_irq_using_imap()
84 irq = *interrupt & isa_br->isa_intmask.interrupt; in isa_dev_get_irq_using_imap()
85 for (i = 0; i < isa_br->num_isa_intmap; i++) { in isa_dev_get_irq_using_imap()
86 if ((isa_br->isa_intmap[i].phys_hi == hi) && in isa_dev_get_irq_using_imap()
87 (isa_br->isa_intmap[i].phys_lo == lo) && in isa_dev_get_irq_using_imap()
88 (isa_br->isa_intmap[i].interrupt == irq)) { in isa_dev_get_irq_using_imap()
89 *interrupt = isa_br->isa_intmap[i].cinterrupt; in isa_dev_get_irq_using_imap()
194 static void __init isa_fill_devices(struct isa_bridge *isa_br) in isa_fill_devices() argument
196 int node = prom_getchild(isa_br->prom_node); in isa_fill_devices()
213 if (isa_br->devices == NULL) { in isa_fill_devices()
214 isa_br->devices = isa_dev; in isa_fill_devices()
216 struct isa_device *tmp = isa_br->devices; in isa_fill_devices()
224 isa_dev->bus = isa_br; in isa_fill_devices()
268 struct isa_bridge *isa_br; in isa_init() local
279 isa_br = kmalloc(sizeof(*isa_br), GFP_KERNEL); in isa_init()
280 if (!isa_br) { in isa_init()
285 memset(isa_br, 0, sizeof(*isa_br)); in isa_init()
288 isa_br->next = isa_chain; in isa_init()
289 isa_chain = isa_br; in isa_init()
291 isa_br->parent = pbm; in isa_init()
292 isa_br->self = pdev; in isa_init()
293 isa_br->index = index++; in isa_init()
294 isa_br->prom_node = pdev_cookie->prom_node; in isa_init()
295 strncpy(isa_br->prom_name, pdev_cookie->prom_name, in isa_init()
296 sizeof(isa_br->prom_name)); in isa_init()
298 prop_len = prom_getproperty(isa_br->prom_node, in isa_init()
300 (char *) isa_br->isa_ranges, in isa_init()
301 sizeof(isa_br->isa_ranges)); in isa_init()
303 isa_br->num_isa_ranges = 0; in isa_init()
305 isa_br->num_isa_ranges = in isa_init()
308 prop_len = prom_getproperty(isa_br->prom_node, in isa_init()
310 (char *) isa_br->isa_intmap, in isa_init()
311 sizeof(isa_br->isa_intmap)); in isa_init()
313 isa_br->num_isa_intmap = 0; in isa_init()
315 isa_br->num_isa_intmap = in isa_init()
318 prop_len = prom_getproperty(isa_br->prom_node, in isa_init()
320 (char *) &(isa_br->isa_intmask), in isa_init()
321 sizeof(isa_br->isa_intmask)); in isa_init()
323 printk("isa%d:", isa_br->index); in isa_init()
325 isa_fill_devices(isa_br); in isa_init()