2021-05-10 20:33:25 +00:00
|
|
|
#include "io.h"
|
|
|
|
|
|
|
|
unsigned char inb_p(unsigned short ){
|
2021-11-02 20:03:11 +00:00
|
|
|
// TODO: implement me!
|
|
|
|
return 0;
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
|
|
|
unsigned short inw(unsigned short ){
|
2021-11-02 20:03:11 +00:00
|
|
|
// TODO: implement me!
|
|
|
|
return 0;
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
|
|
|
unsigned short inw_p(unsigned short ){
|
2021-11-02 20:03:11 +00:00
|
|
|
// TODO: implement me!
|
|
|
|
return 0;
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
|
|
|
unsigned int inl(unsigned short ){
|
2021-11-02 20:03:11 +00:00
|
|
|
// TODO: implement me!
|
|
|
|
return 0;
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
|
|
|
unsigned int inl_p(unsigned short ){
|
2021-11-02 20:03:11 +00:00
|
|
|
// TODO: implement me!
|
|
|
|
return 0;
|
2021-05-10 20:33:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-12-20 20:53:57 +00:00
|
|
|
void b_p(unsigned char , unsigned short ){
|
2021-05-10 20:33:25 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
void outw(unsigned short , unsigned short ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outw_p(unsigned short , unsigned short ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outl(unsigned int , unsigned short ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outl_p(unsigned int , unsigned short ){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void insb(unsigned short , void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void insw(unsigned short , void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void insl(unsigned short , void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outsb(unsigned short , const void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outsw(unsigned short , const void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
|
|
|
}
|
|
|
|
void outsl(unsigned short , const void *,
|
|
|
|
unsigned long ){
|
|
|
|
|
2021-05-12 22:48:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void io_wait(void)
|
|
|
|
{
|
|
|
|
/* TODO: This is probably fragile. */
|
|
|
|
asm volatile ( "jmp 1f\n\t"
|
|
|
|
"1:jmp 2f\n\t"
|
|
|
|
"2:" );
|
|
|
|
}
|