 |
Xyris
0.5
|
Go to the documentation of this file.
15 asm volatile(
"inb %1, %0" :
"=a" (result) :
"Nd" (port));
20 asm volatile(
"outb %0, %1" : :
"a" (data),
"Nd" (port));
24 asm volatile(
"outb %0, %1\njmp 1f\n1: jmp 1f\n1:" : :
"a" (data),
"Nd" (port));
29 asm volatile(
"inw %1, %0" :
"=a" (result) :
"Nd" (port));
34 asm volatile(
"outw %0, %1" : :
"a" (data),
"Nd" (port));
39 asm volatile(
"inl %1, %0" :
"=a" (result) :
"Nd" (port));
44 asm volatile(
"outl %0, %1" : :
"a"(data),
"Nd" (port));
Ports header file. Provides inline functions for getting and setting values at different ports....
uint32_t readLong(uint16_t port)
Reads a long (32 bits) off the CPU bus at a given port address.
uint16_t readWord(uint16_t port)
Reads a word (16 bits) off the CPU bus at a given port address.
void writeWord(uint16_t port, uint16_t data)
Writes a word (16 bits) to the CPU bus at a given port address.
void writeByteSlow(uint16_t port, uint8_t data)
Writes a byte (8 bits) slowly to the CPU bus at a given port address.
void writeByte(uint16_t port, uint8_t data)
Writes a byte (8 bits) to the CPU bus at a given port address.
uint8_t readByte(uint16_t port)
Reads a byte (8 bits) off the CPU bus at a given port address.
void writeLong(uint16_t port, uint32_t data)
Writes a long (32 bits) to the CPU bus at a given port address.