30 lines
729 B
C
30 lines
729 B
C
/*
|
|
minix/portio.h
|
|
|
|
Created: Jan 15, 1992 by Philip Homburg
|
|
*/
|
|
|
|
#ifndef _PORTIO_H_
|
|
#define _PORTIO_H_
|
|
|
|
#ifndef _TYPES_H
|
|
#include <minix/types.h>
|
|
#endif
|
|
|
|
unsigned inb(u16_t _port);
|
|
unsigned inw(u16_t _port);
|
|
unsigned inl(u32_t _port);
|
|
void outb(u16_t _port, u8_t _value);
|
|
void outw(u16_t _port, u16_t _value);
|
|
void outl(u16_t _port, u32_t _value);
|
|
void insb(u16_t _port, void *_buf, size_t _count);
|
|
void insw(u16_t _port, void *_buf, size_t _count);
|
|
void insl(u16_t _port, void *_buf, size_t _count);
|
|
void outsb(u16_t _port, void *_buf, size_t _count);
|
|
void outsw(u16_t _port, void *_buf, size_t _count);
|
|
void outsl(u16_t _port, void *_buf, size_t _count);
|
|
void intr_disable(void);
|
|
void intr_enable(void);
|
|
|
|
#endif /* _PORTIO_H_ */
|