xref: /openbmc/linux/arch/m68k/include/asm/parport.h (revision 2a598d0b)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * parport.h: platform-specific PC-style parport initialisation
4  *
5  * Copyright (C) 1999, 2000  Tim Waugh <tim@cyberelk.demon.co.uk>
6  *
7  * This file should only be included by drivers/parport/parport_pc.c.
8  *
9  * RZ: for use with Q40 and other ISA machines
10  */
11 
12 #ifndef _ASM_M68K_PARPORT_H
13 #define _ASM_M68K_PARPORT_H 1
14 
15 #undef insl
16 #undef outsl
17 #define insl(port,buf,len)   isa_insb(port,buf,(len)<<2)
18 #define outsl(port,buf,len)  isa_outsb(port,buf,(len)<<2)
19 
20 /* no dma, or IRQ autoprobing */
21 static int parport_pc_find_isa_ports (int autoirq, int autodma);
22 static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
23 {
24         if (! (MACH_IS_Q40))
25 	  return 0; /* count=0 */
26 	return parport_pc_find_isa_ports (PARPORT_IRQ_NONE, PARPORT_DMA_NONE);
27 }
28 
29 #endif /* !(_ASM_M68K_PARPORT_H) */
30