parport.h 798 B

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