2023-02-05 09:45:17 +00:00
|
|
|
#ifndef ARCH_PORTS_H_
|
|
|
|
|
#define ARCH_PORTS_H_
|
2022-12-21 08:29:33 +00:00
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
2023-03-20 20:41:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-12-21 08:29:33 +00:00
|
|
|
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);
|
|
|
|
|
|
2023-03-20 20:41:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-12-21 08:29:33 +00:00
|
|
|
#endif
|