18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * parport.h: platform-specific PC-style parport initialisation
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 1999, 2000  Tim Waugh <tim@cyberelk.demon.co.uk>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * This file should only be included by drivers/parport/parport_pc.c.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * RZ: for use with Q40 and other ISA machines
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef _ASM_M68K_PARPORT_H
138c2ecf20Sopenharmony_ci#define _ASM_M68K_PARPORT_H 1
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#undef insl
168c2ecf20Sopenharmony_ci#undef outsl
178c2ecf20Sopenharmony_ci#define insl(port,buf,len)   isa_insb(port,buf,(len)<<2)
188c2ecf20Sopenharmony_ci#define outsl(port,buf,len)  isa_outsb(port,buf,(len)<<2)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci/* no dma, or IRQ autoprobing */
218c2ecf20Sopenharmony_cistatic int parport_pc_find_isa_ports (int autoirq, int autodma);
228c2ecf20Sopenharmony_cistatic int parport_pc_find_nonpci_ports (int autoirq, int autodma)
238c2ecf20Sopenharmony_ci{
248c2ecf20Sopenharmony_ci        if (! (MACH_IS_Q40))
258c2ecf20Sopenharmony_ci	  return 0; /* count=0 */
268c2ecf20Sopenharmony_ci	return parport_pc_find_isa_ports (PARPORT_IRQ_NONE, PARPORT_DMA_NONE);
278c2ecf20Sopenharmony_ci}
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif /* !(_ASM_M68K_PARPORT_H) */
30