home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-sh / hd64461 / io.h < prev   
Encoding:
C/C++ Source or Header  |  2006-08-11  |  1.6 KB  |  44 lines

  1. /*
  2.  * include/asm-sh/io_hd64461.h
  3.  *
  4.  * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
  5.  *
  6.  * May be copied or modified under the terms of the GNU General Public
  7.  * License.  See linux/COPYING for more information.
  8.  *
  9.  * IO functions for an HD64461
  10.  */
  11.  
  12. #ifndef _ASM_SH_IO_HD64461_H
  13. #define _ASM_SH_IO_HD64461_H
  14.  
  15. extern unsigned char hd64461_inb(unsigned long port);
  16. extern unsigned short hd64461_inw(unsigned long port);
  17. extern unsigned int hd64461_inl(unsigned long port);
  18.  
  19. extern void hd64461_outb(unsigned char value, unsigned long port);
  20. extern void hd64461_outw(unsigned short value, unsigned long port);
  21. extern void hd64461_outl(unsigned int value, unsigned long port);
  22.  
  23. extern unsigned char hd64461_inb_p(unsigned long port);
  24. extern void hd64461_outb_p(unsigned char value, unsigned long port);
  25.  
  26. extern void hd64461_insb(unsigned long port, void *addr, unsigned long count);
  27. extern void hd64461_insw(unsigned long port, void *addr, unsigned long count);
  28. extern void hd64461_insl(unsigned long port, void *addr, unsigned long count);
  29.  
  30. extern void hd64461_outsb(unsigned long port, const void *buffer, unsigned long count);
  31. extern void hd64461_outsw(unsigned long port, const void *buffer, unsigned long count);
  32. extern void hd64461_outsl(unsigned long port, const void *buffer, unsigned long count);
  33.  
  34. extern unsigned short hd64461_readw(unsigned long addr);
  35. extern void hd64461_writew(unsigned short b, unsigned long addr);
  36.  
  37.  
  38. extern int hd64461_irq_demux(int irq);
  39. extern void hd64461_register_irq_demux(int irq,
  40.         int (*demux)(int irq, void *dev), void *dev);
  41. extern void hd64461_unregister_irq_demux(int irq);
  42.  
  43. #endif /* _ASM_SH_IO_HD64461_H */
  44.