1 /* SPDX-License-Identifier: GPL-2.0 */
3 * parport.h: platform-specific PC-style parport initialisation
5 * Copyright (C) 1999, 2000 Tim Waugh <tim@cyberelk.demon.co.uk>
7 * This file should only be included by drivers/parport/parport_pc.c.
10 #ifndef _ASM_POWERPC_PARPORT_H
11 #define _ASM_POWERPC_PARPORT_H
16 static int parport_pc_find_nonpci_ports (int autoirq
, int autodma
)
18 struct device_node
*np
;
25 for_each_compatible_node(np
, "parallel", "pnpPNP,400") {
26 prop
= of_get_property(np
, "reg", &propsize
);
27 if (!prop
|| propsize
> 6*sizeof(u32
))
29 io1
= prop
[1]; io2
= prop
[2];
31 virq
= irq_of_parse_and_map(np
, 0);
35 if (parport_pc_probe_port(io1
, io2
, virq
, autodma
, NULL
, 0)
42 #endif /* __KERNEL__ */
43 #endif /* !(_ASM_POWERPC_PARPORT_H) */