parport.h 837 B

1234567891011121314151617181920212223242526272829
  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 <[email protected]>
  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. #ifndef _ASM_M68K_PARPORT_H
  12. #define _ASM_M68K_PARPORT_H 1
  13. #undef insl
  14. #undef outsl
  15. #define insl(port,buf,len) isa_insb(port,buf,(len)<<2)
  16. #define outsl(port,buf,len) isa_outsb(port,buf,(len)<<2)
  17. /* no dma, or IRQ autoprobing */
  18. static int parport_pc_find_isa_ports (int autoirq, int autodma);
  19. static int parport_pc_find_nonpci_ports (int autoirq, int autodma)
  20. {
  21. if (! (MACH_IS_Q40))
  22. return 0; /* count=0 */
  23. return parport_pc_find_isa_ports (PARPORT_IRQ_NONE, PARPORT_DMA_NONE);
  24. }
  25. #endif /* !(_ASM_M68K_PARPORT_H) */