source: branches/minix3-book/include/ibm/portio.h@ 25

Last change on this file since 25 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 725 bytes
RevLine 
[4]1/*
2ibm/portio.h
3
4Created: Jan 15, 1992 by Philip Homburg
5*/
6
7#ifndef _PORTIO_H_
8#define _PORTIO_H_
9
10#ifndef _TYPES_H
11#include <sys/types.h>
12#endif
13
14unsigned inb(U16_t _port);
15unsigned inw(U16_t _port);
16unsigned inl(U32_t _port);
17void outb(U16_t _port, U8_t _value);
18void outw(U16_t _port, U16_t _value);
19void outl(U16_t _port, U32_t _value);
20void insb(U16_t _port, void *_buf, size_t _count);
21void insw(U16_t _port, void *_buf, size_t _count);
22void insl(U16_t _port, void *_buf, size_t _count);
23void outsb(U16_t _port, void *_buf, size_t _count);
24void outsw(U16_t _port, void *_buf, size_t _count);
25void outsl(U16_t _port, void *_buf, size_t _count);
26void intr_disable(void);
27void intr_enable(void);
28
29#endif /* _PORTIO_H_ */
Note: See TracBrowser for help on using the repository browser.