annotate libdha/sysdep/AsmMacros_alpha.h @ 6069:8e88e92fe331

Initial support for dxr2. Based on patch from Tobias Diedrich <ranma@gmx.at>.
author albeu
date Mon, 13 May 2002 13:15:40 +0000
parents 2e3262002acb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4164
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
1 /*
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
2 This file is based on:
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
3 $XFree86: xc/programs/Xserver/hw/xfree86/drivers/chips/util/AsmMacros.h,v 1.1 2001/11/16 21:13:34 tsi Exp $
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
4 Modified for readability by Nick Kurshev
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
5 */
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
6
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
7 #ifndef __ASM_MACROS_ALPHA_H
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
8 #define __ASM_MACROS_ALPHA_H
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
9 #if defined (linux)
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
10 #include <sys/io.h>
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
11 #elif defined (__FreeBSD__)
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
12 #include <sys/types.h>
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
13 extern void outb(u_int32_t port, u_int8_t val);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
14 extern void outw(u_int32_t port, u_int16_t val);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
15 extern void outl(u_int32_t port, u_int32_t val);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
16 extern u_int8_t inb(u_int32_t port);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
17 extern u_int16_t inw(u_int32_t port);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
18 extern u_int32_t inl(u_int32_t port);
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
19 #else
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
20 #error This stuff is not ported on your system
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
21 #endif
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
22
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
23 #define intr_disable()
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
24 #define intr_enable()
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
25
2e3262002acb Improved readability and new stuffs
nick
parents:
diff changeset
26 #endif