io.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * include/asm-sh/bigsur/io.h
  3. *
  4. * By Dustin McIntire (dustin@sensoria.com) (c)2001
  5. * Derived from io_hd64465.h, which bore the message:
  6. * By Greg Banks <gbanks@pocketpenguins.com>
  7. * (c) 2000 PocketPenguins Inc.
  8. * and from io_hd64461.h, which bore the message:
  9. * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
  10. *
  11. * May be copied or modified under the terms of the GNU General Public
  12. * License. See linux/COPYING for more information.
  13. *
  14. * IO functions for a Hitachi Big Sur Evaluation Board.
  15. */
  16. #ifndef _ASM_SH_IO_BIGSUR_H
  17. #define _ASM_SH_IO_BIGSUR_H
  18. #include <linux/types.h>
  19. extern unsigned long bigsur_isa_port2addr(unsigned long offset);
  20. extern int bigsur_irq_demux(int irq);
  21. /* Provision for generic secondary demux step -- used by PCMCIA code */
  22. extern void bigsur_register_irq_demux(int irq,
  23. int (*demux)(int irq, void *dev), void *dev);
  24. extern void bigsur_unregister_irq_demux(int irq);
  25. /* Set this variable to 1 to see port traffic */
  26. extern int bigsur_io_debug;
  27. /* Map a range of ports to a range of kernel virtual memory. */
  28. extern void bigsur_port_map(u32 baseport, u32 nports, u32 addr, u8 shift);
  29. extern void bigsur_port_unmap(u32 baseport, u32 nports);
  30. #endif /* _ASM_SH_IO_BIGSUR_H */