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