comparison libdha/sysdep/AsmMacros_alpha.h @ 4164:2e3262002acb

Improved readability and new stuffs
author nick
date Tue, 15 Jan 2002 08:33:09 +0000
parents
children
comparison
equal deleted inserted replaced
4163:d0678176b98c 4164:2e3262002acb
1 /*
2 This file is based on:
3 $XFree86: xc/programs/Xserver/hw/xfree86/drivers/chips/util/AsmMacros.h,v 1.1 2001/11/16 21:13:34 tsi Exp $
4 Modified for readability by Nick Kurshev
5 */
6
7 #ifndef __ASM_MACROS_ALPHA_H
8 #define __ASM_MACROS_ALPHA_H
9 #if defined (linux)
10 #include <sys/io.h>
11 #elif defined (__FreeBSD__)
12 #include <sys/types.h>
13 extern void outb(u_int32_t port, u_int8_t val);
14 extern void outw(u_int32_t port, u_int16_t val);
15 extern void outl(u_int32_t port, u_int32_t val);
16 extern u_int8_t inb(u_int32_t port);
17 extern u_int16_t inw(u_int32_t port);
18 extern u_int32_t inl(u_int32_t port);
19 #else
20 #error This stuff is not ported on your system
21 #endif
22
23 #define intr_disable()
24 #define intr_enable()
25
26 #endif