|
|
1.1 ! root 1: /* ! 2: * Allow normal functions for i/o ops for debugging. ! 3: */ ! 4: ! 5: #define USE_COMPILED_IO DEBUG ! 6: ! 7: #if USE_COMPILED_IO ! 8: ! 9: #define inb _inb ! 10: #define inw _inw ! 11: #define inl _inl ! 12: #define outb _outb ! 13: #define outw _outw ! 14: #define outl _outl ! 15: ! 16: extern unsigned char _inb(unsigned short port); ! 17: extern unsigned short _inw(unsigned short port); ! 18: extern unsigned long _inl(unsigned short port); ! 19: extern void _outb(unsigned short port, unsigned char data); ! 20: extern void _outs(unsigned short port, unsigned short data); ! 21: extern void _outl(unsigned short port, unsigned long data); ! 22: ! 23: ! 24: /* ! 25: * Use ioPorts.c. ! 26: */ ! 27: ! 28: #else USE_COMPILED_IO ! 29: ! 30: #import <driverkit/i386/ioPorts.h> ! 31: ! 32: #endif USE_COMPILED_IO
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.