(file) Return to compiler.h CVS log (file) (dir) Up to [XFree86 CVS] / xc / programs / Xserver / hw / xfree86 / common

Diff for /xc/programs/Xserver/hw/xfree86/common/compiler.h between version 3.95 and 3.96

version 3.95, 2002/10/29 23:19:11 version 3.96, 2002/11/25 14:04:55
Line 87 
Line 87 
  
 # if defined(NO_INLINE) || defined(DO_PROTOTYPES) # if defined(NO_INLINE) || defined(DO_PROTOTYPES)
  
 #  if !defined(__sparc__) && !defined(__arm32__)  #  if !defined(__sparc__) && !defined(__arm32__) \
         && !(defined(__alpha__) && defined(linux))
  
 extern void outb(unsigned short, unsigned char); extern void outb(unsigned short, unsigned char);
 extern void outw(unsigned short, unsigned short); extern void outw(unsigned short, unsigned short);
Line 96 
Line 97 
 extern unsigned int inw(unsigned short); extern unsigned int inw(unsigned short);
 extern unsigned int inl(unsigned short); extern unsigned int inl(unsigned short);
  
 #  else /* __sparc__ */  #  else /* __sparc__,  __arm32__, __alpha__*/
  
 extern void outb(unsigned long, unsigned char); extern void outb(unsigned long, unsigned char);
 extern void outw(unsigned long, unsigned short); extern void outw(unsigned long, unsigned short);
Line 105 
Line 106 
 extern unsigned int inw(unsigned long); extern unsigned int inw(unsigned long);
 extern unsigned int inl(unsigned long); extern unsigned int inl(unsigned long);
  
 #  endif /* __sparc__ */  #  endif /* __sparc__,  __arm32__, __alpha__ */
  
 extern unsigned long ldq_u(unsigned long *); extern unsigned long ldq_u(unsigned long *);
 extern unsigned long ldl_u(unsigned int *); extern unsigned long ldl_u(unsigned int *);
Line 131 
Line 132 
 /* note that the appropriate setup via "ioperm" needs to be done */ /* note that the appropriate setup via "ioperm" needs to be done */
 /*  *before* any inx/outx is done. */ /*  *before* any inx/outx is done. */
  
 extern void _outb(char val, unsigned short port);  extern void _alpha_outb(char val, unsigned long port);
 static __inline__ void static __inline__ void
 outb(unsigned short port, unsigned char val)  outb(unsigned long port, unsigned char val)
 { {
     _outb(val, port);      _alpha_outb(val, port);
 } }
  
 extern void _outw(short val, unsigned short port);  extern void _alpha_outw(short val, unsigned long port);
 static __inline__ void static __inline__ void
 outw(unsigned short port, unsigned short val)  outw(unsigned long port, unsigned short val)
 { {
     _outw(val, port);      _alpha_outw(val, port);
 } }
  
 extern void _outl(int val, unsigned short port);  extern void _alpha_outl(int val, unsigned long port);
 static __inline__ void static __inline__ void
 outl(unsigned short port, unsigned int val)  outl(unsigned long port, unsigned int val)
 { {
     _outl(val, port);      _alpha_outl(val, port);
 } }
  
 extern unsigned int _inb(unsigned short port);  extern unsigned int _alpha_inb(unsigned long port);
 static __inline__ unsigned int static __inline__ unsigned int
 inb(unsigned short port)  inb(unsigned long port)
 { {
   return _inb(port);   return _inb(port);
 } }
  
 extern unsigned int _inw(unsigned short port);  extern unsigned int _alpha_inw(unsigned long port);
 static __inline__ unsigned int static __inline__ unsigned int
 inw(unsigned short port)  inw(unsigned long port)
 { {
   return _inw(port);    return _alpha_inw(port);
 } }
  
 extern unsigned int _inl(unsigned short port);  extern unsigned int _alpha_inl(unsigned long port);
 static __inline__ unsigned int static __inline__ unsigned int
 inl(unsigned short port)  inl(unsigned long port)
 { {
   return _inl(port);    return _alpha_inl(port);
 } }
  
 #    endif /* linux */ #    endif /* linux */


Legend:
Removed from v.3.95  
changed lines
  Added in v.3.96

Powered by
ViewCVS 0.9.2