- The primary reason is that mkfs and installboot need to run natively during the cross compilation (host and target versions are compiled). There is a collision of include files though. E.g. a.out.h is very minix-specific. Therefore some files we moved and replaced by stubs that include the original file if compiling on or for Minix : include/a.out.h -> include/minix/a.out.h include/sys/dir.h -> include/minix/dir.h include/dirent.h -> include/minix/dirent.h include/sys/types.h -> include/minix/types.h - This does not break any native compilation on Minix. Other headers that were including the original files are changed according to include directly the new, minix specific location not to pick up the host system includes while cross-compiling. - role of this patch is to make rebasing of the build branch simpler until the new build system is merged
30 lines
729 B
C
Executable File
30 lines
729 B
C
Executable File
/*
|
|
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_ */
|