]> pd.if.org Git - zos/blob - ioport.h
add a readme with a public domain note
[zos] / ioport.h
1 #ifndef IOPORT_H_
2 #define IOPORT_H_
3
4 #include <stdint.h>
5
6 uint8_t outport8(uint16_t port, uint8_t value) ;
7 uint16_t outport16(uint16_t port, uint16_t value) ;
8 uint32_t outport32(uint16_t port, uint32_t value) ;
9 uint8_t inport8(uint16_t port) ;
10 uint16_t inport16(uint16_t port) ;
11 uint32_t inport32(uint16_t port) ;
12
13 /* TODO use int, uint32_t ? */
14 void outport_buf8(uint64_t bufelems, uint8_t *buf, uint16_t port);
15 void outport_buf16(uint64_t bufelems, uint16_t *buf, uint16_t port);
16 void outport_buf32(uint64_t bufelems, uint32_t *buf, uint16_t port);
17 void inport_buf8(uint64_t bufelems, uint8_t *buf, uint16_t port);
18 void inport_buf16(uint64_t bufelems, uint16_t *buf, uint16_t port);
19 void inport_buf32(uint64_t bufelems, uint32_t *buf, uint16_t port);
20
21 #endif