Implemented some basic libc functions and a text console
This commit is contained in:
17
arch/x86_64/include/socks/machine/ports.h
Normal file
17
arch/x86_64/include/socks/machine/ports.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef SOCKS_X86_64_PORTS_H_
|
||||
#define SOCKS_X86_64_PORTS_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define PF_IOPORT_COUNT (65536)
|
||||
|
||||
extern uint8_t inportb(uint16_t port);
|
||||
extern uint16_t inportw(uint16_t port);
|
||||
extern uint32_t inportl(uint16_t port);
|
||||
extern void outportb(uint16_t port, uint8_t data);
|
||||
extern void outportw(uint16_t port, uint16_t data);
|
||||
extern void outportl(uint16_t port, uint32_t data);
|
||||
extern void outportsw(uint16_t port, void *data, uint32_t size);
|
||||
extern void inportsw(uint16_t port, unsigned char *data, unsigned long size);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user