2 * parport.h: platform-specific PC-style parport initialisation
4 * Copyright (C) 1999, 2000 Tim Waugh <tim@cyberelk.demon.co.uk>
6 * This file should only be included by drivers/parport/parport_pc.c.
9 #ifndef _ASM_POWERPC_PARPORT_H
10 #define _ASM_POWERPC_PARPORT_H
15 extern struct parport
*parport_pc_probe_port (unsigned long int base
,
16 unsigned long int base_hi
,
20 static int __devinit
parport_pc_find_nonpci_ports (int autoirq
, int autodma
)
22 struct device_node
*np
;
27 for (np
= NULL
; (np
= of_find_compatible_node(np
,
29 "pnpPNP,400")) != NULL
;) {
30 prop
= of_get_property(np
, "reg", &propsize
);
31 if (!prop
|| propsize
> 6*sizeof(u32
))
33 io1
= prop
[1]; io2
= prop
[2];
34 prop
= of_get_property(np
, "interrupts", NULL
);
37 if (parport_pc_probe_port(io1
, io2
, prop
[0], autodma
, NULL
) != NULL
)
43 #endif /* __KERNEL__ */
44 #endif /* !(_ASM_POWERPC_PARPORT_H) */