Lines Matching refs:port
333 extern _X_EXPORT void (*_alpha_outb)(char val, unsigned long port);
335 outb(unsigned long port, unsigned char val)
337 _alpha_outb(val, port);
340 extern _X_EXPORT void (*_alpha_outw)(short val, unsigned long port);
342 outw(unsigned long port, unsigned short val)
344 _alpha_outw(val, port);
347 extern _X_EXPORT void (*_alpha_outl)(int val, unsigned long port);
349 outl(unsigned long port, unsigned int val)
351 _alpha_outl(val, port);
354 extern _X_EXPORT unsigned int (*_alpha_inb)(unsigned long port);
356 inb(unsigned long port)
358 return _alpha_inb(port);
361 extern _X_EXPORT unsigned int (*_alpha_inw)(unsigned long port);
363 inw(unsigned long port)
365 return _alpha_inw(port);
368 extern _X_EXPORT unsigned int (*_alpha_inl)(unsigned long port);
370 inl(unsigned long port)
372 return _alpha_inl(port);
385 extern _X_EXPORT void outb(unsigned int port, unsigned char val);
386 extern _X_EXPORT void outw(unsigned int port, unsigned short val);
387 extern _X_EXPORT void outl(unsigned int port, unsigned int val);
388 extern _X_EXPORT unsigned char inb(unsigned int port);
389 extern _X_EXPORT unsigned short inw(unsigned int port);
390 extern _X_EXPORT unsigned int inl(unsigned int port);
411 extern _X_EXPORT void outb(unsigned long port, unsigned char val);
412 extern _X_EXPORT void outw(unsigned long port, unsigned short val);
413 extern _X_EXPORT void outl(unsigned long port, unsigned int val);
414 extern _X_EXPORT unsigned int inb(unsigned long port);
415 extern _X_EXPORT unsigned int inw(unsigned long port);
416 extern _X_EXPORT unsigned int inl(unsigned long port);
423 outb(unsigned short port, unsigned char val)
425 __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
430 outw(unsigned short port, unsigned short val)
432 __asm__ __volatile__("outw %0,%1" : :"a" (val), "d" (port));
436 outl(unsigned short port, unsigned int val)
438 __asm__ __volatile__("outl %0,%1" : :"a" (val), "d" (port));
442 inb(unsigned short port)
447 "d" (port));
452 inw(unsigned short port)
457 "d" (port));
462 inl(unsigned short port)
467 "d" (port));
478 outb(unsigned long port, unsigned char val)
482 : "r" (val), "r" (port), "i" (ASI_PL));
487 outw(unsigned long port, unsigned short val)
491 : "r" (val), "r" (port), "i" (ASI_PL));
496 outl(unsigned long port, unsigned int val)
500 : "r" (val), "r" (port), "i" (ASI_PL));
505 inb(unsigned long port)
510 : "r" (port), "i" (ASI_PL));
515 inw(unsigned long port)
520 : "r" (port), "i" (ASI_PL));
525 inl(unsigned long port)
530 : "r" (port), "i" (ASI_PL));
716 _X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */
719 outb(unsigned PORT_SIZE port, unsigned char val)
721 *(volatile unsigned char*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
725 outw(unsigned PORT_SIZE port, unsigned short val)
727 *(volatile unsigned short*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
731 outl(unsigned PORT_SIZE port, unsigned int val)
733 *(volatile unsigned int*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
737 inb(unsigned PORT_SIZE port)
739 return *(volatile unsigned char*)(((unsigned PORT_SIZE)(port))+IOPortBase);
743 inw(unsigned PORT_SIZE port)
745 return *(volatile unsigned short*)(((unsigned PORT_SIZE)(port))+IOPortBase);
749 inl(unsigned PORT_SIZE port)
751 return *(volatile unsigned int*)(((unsigned PORT_SIZE)(port))+IOPortBase);
949 outb(unsigned short port, unsigned char value)
952 xf86WriteMmio8((void *)ioBase, port, value);
956 outw(unsigned short port, unsigned short value)
959 xf86WriteMmio16Le((void *)ioBase, port, value);
963 outl(unsigned short port, unsigned int value)
966 xf86WriteMmio32Le((void *)ioBase, port, value);
970 inb(unsigned short port)
973 return xf86ReadMmio8((void *)ioBase, port);
977 inw(unsigned short port)
980 return xf86ReadMmio16Le((void *)ioBase, port);
984 inl(unsigned short port)
987 return xf86ReadMmio32Le((void *)ioBase, port);
999 xf_outb(unsigned short port, unsigned char val)
1001 outb(val, port);
1005 xf_outw(unsigned short port, unsigned short val)
1007 outw(val, port);
1011 xf_outl(unsigned short port, unsigned int val)
1013 outl(val, port);
1032 outb(unsigned short port, unsigned char val)
1034 __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
1039 outw(unsigned short port, unsigned short val)
1041 __asm__ __volatile__("outw %0,%1" : :"a" (val), "d" (port));
1045 outl(unsigned short port, unsigned int val)
1047 __asm__ __volatile__("outl %0,%1" : :"a" (val), "d" (port));
1051 inb(unsigned short port)
1056 "d" (port));
1061 inw(unsigned short port)
1066 "d" (port));
1071 inl(unsigned short port)
1076 "d" (port));
1083 outb(unsigned short port, unsigned char val)
1085 __asm__ __volatile__("out%B0 (%1)" : :"a" (val), "d" (port));
1089 outw(unsigned short port, unsigned short val)
1091 __asm__ __volatile__("out%W0 (%1)" : :"a" (val), "d" (port));
1095 outl(unsigned short port, unsigned int val)
1097 __asm__ __volatile__("out%L0 (%1)" : :"a" (val), "d" (port));
1101 inb(unsigned short port)
1106 "d" (port));
1111 inw(unsigned short port)
1116 "d" (port));
1121 inl(unsigned short port)
1126 "d" (port));
1135 outb(unsigned short port, unsigned char val)
1140 outw(unsigned short port, unsigned short val)
1145 outl(unsigned short port, unsigned int val)
1150 inb(unsigned short port)
1156 inw(unsigned short port)
1162 inl(unsigned short port)
1364 * This avoids port I/O during the copy (which causes problems with