Lines Matching refs:port
333 extern _X_EXPORT void _outb(unsigned char val, unsigned long port);
334 extern _X_EXPORT void _outw(unsigned short val, unsigned long port);
335 extern _X_EXPORT void _outl(unsigned int val, unsigned long port);
336 extern _X_EXPORT unsigned int _inb(unsigned long port);
337 extern _X_EXPORT unsigned int _inw(unsigned long port);
338 extern _X_EXPORT unsigned int _inl(unsigned long port);
341 outb(unsigned long port, unsigned char val)
343 _outb(val, port);
347 outw(unsigned long port, unsigned short val)
349 _outw(val, port);
353 outl(unsigned long port, unsigned int val)
355 _outl(val, port);
359 inb(unsigned long port)
361 return _inb(port);
365 inw(unsigned long port)
367 return _inw(port);
371 inl(unsigned long port)
373 return _inl(port);
386 extern _X_EXPORT void outb(unsigned int port, unsigned char val);
387 extern _X_EXPORT void outw(unsigned int port, unsigned short val);
388 extern _X_EXPORT void outl(unsigned int port, unsigned int val);
389 extern _X_EXPORT unsigned char inb(unsigned int port);
390 extern _X_EXPORT unsigned short inw(unsigned int port);
391 extern _X_EXPORT unsigned int inl(unsigned int port);
412 extern _X_EXPORT void outb(unsigned long port, unsigned char val);
413 extern _X_EXPORT void outw(unsigned long port, unsigned short val);
414 extern _X_EXPORT void outl(unsigned long port, unsigned int val);
415 extern _X_EXPORT unsigned int inb(unsigned long port);
416 extern _X_EXPORT unsigned int inw(unsigned long port);
417 extern _X_EXPORT unsigned int inl(unsigned long port);
424 outb(unsigned short port, unsigned char val)
426 __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
431 outw(unsigned short port, unsigned short val)
433 __asm__ __volatile__("outw %0,%1" : :"a" (val), "d" (port));
437 outl(unsigned short port, unsigned int val)
439 __asm__ __volatile__("outl %0,%1" : :"a" (val), "d" (port));
443 inb(unsigned short port)
448 "d" (port));
453 inw(unsigned short port)
458 "d" (port));
463 inl(unsigned short port)
468 "d" (port));
479 outb(unsigned long port, unsigned char val)
483 : "r" (val), "r" (port), "i" (ASI_PL));
488 outw(unsigned long port, unsigned short val)
492 : "r" (val), "r" (port), "i" (ASI_PL));
497 outl(unsigned long port, unsigned int val)
501 : "r" (val), "r" (port), "i" (ASI_PL));
506 inb(unsigned long port)
511 : "r" (port), "i" (ASI_PL));
516 inw(unsigned long port)
521 : "r" (port), "i" (ASI_PL));
526 inl(unsigned long port)
531 : "r" (port), "i" (ASI_PL));
717 _X_EXPORT unsigned int IOPortBase; /* Memory mapped I/O port area */
720 outb(unsigned PORT_SIZE port, unsigned char val)
722 *(volatile unsigned char*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
726 outw(unsigned PORT_SIZE port, unsigned short val)
728 *(volatile unsigned short*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
732 outl(unsigned PORT_SIZE port, unsigned int val)
734 *(volatile unsigned int*)(((unsigned PORT_SIZE)(port))+IOPortBase) = val;
738 inb(unsigned PORT_SIZE port)
740 return *(volatile unsigned char*)(((unsigned PORT_SIZE)(port))+IOPortBase);
744 inw(unsigned PORT_SIZE port)
746 return *(volatile unsigned short*)(((unsigned PORT_SIZE)(port))+IOPortBase);
750 inl(unsigned PORT_SIZE port)
752 return *(volatile unsigned int*)(((unsigned PORT_SIZE)(port))+IOPortBase);
950 outb(unsigned short port, unsigned char value)
953 xf86WriteMmio8((void *)ioBase, port, value);
957 outw(unsigned short port, unsigned short value)
960 xf86WriteMmio16Le((void *)ioBase, port, value);
964 outl(unsigned short port, unsigned int value)
967 xf86WriteMmio32Le((void *)ioBase, port, value);
971 inb(unsigned short port)
974 return xf86ReadMmio8((void *)ioBase, port);
978 inw(unsigned short port)
981 return xf86ReadMmio16Le((void *)ioBase, port);
985 inl(unsigned short port)
988 return xf86ReadMmio32Le((void *)ioBase, port);
1000 xf_outb(unsigned short port, unsigned char val)
1002 outb(val, port);
1006 xf_outw(unsigned short port, unsigned short val)
1008 outw(val, port);
1012 xf_outl(unsigned short port, unsigned int val)
1014 outl(val, port);
1033 outb(unsigned short port, unsigned char val)
1035 __asm__ __volatile__("outb %0,%1" : :"a" (val), "d" (port));
1040 outw(unsigned short port, unsigned short val)
1042 __asm__ __volatile__("outw %0,%1" : :"a" (val), "d" (port));
1046 outl(unsigned short port, unsigned int val)
1048 __asm__ __volatile__("outl %0,%1" : :"a" (val), "d" (port));
1052 inb(unsigned short port)
1057 "d" (port));
1062 inw(unsigned short port)
1067 "d" (port));
1072 inl(unsigned short port)
1077 "d" (port));
1084 outb(unsigned short port, unsigned char val)
1086 __asm__ __volatile__("out%B0 (%1)" : :"a" (val), "d" (port));
1090 outw(unsigned short port, unsigned short val)
1092 __asm__ __volatile__("out%W0 (%1)" : :"a" (val), "d" (port));
1096 outl(unsigned short port, unsigned int val)
1098 __asm__ __volatile__("out%L0 (%1)" : :"a" (val), "d" (port));
1102 inb(unsigned short port)
1107 "d" (port));
1112 inw(unsigned short port)
1117 "d" (port));
1122 inl(unsigned short port)
1127 "d" (port));
1136 outb(unsigned short port, unsigned char val)
1141 outw(unsigned short port, unsigned short val)
1146 outl(unsigned short port, unsigned int val)
1151 inb(unsigned short port)
1157 inw(unsigned short port)
1163 inl(unsigned short port)
1365 * This avoids port I/O during the copy (which causes problems with