aboutsummaryrefslogtreecommitdiffstats
path: root/core/io.inc
blob: 71613463c28b2cbe6d068e565acd7cce6afce4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;; -----------------------------------------------------------------------
;;
;;   Copyright 1994-2009 H. Peter Anvin - All Rights Reserved
;;   Copyright 2009 Intel Corporation; author: H. Peter Anvin
;;
;;   This program is free software; you can redistribute it and/or modify
;;   it under the terms of the GNU General Public License as published by
;;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
;;   Boston MA 02111-1307, USA; either version 2 of the License, or
;;   (at your option) any later version; incorporated herein by reference.
;;
;; -----------------------------------------------------------------------

;;
;; io.inc
;;
;; I/O related macros
;;

%ifndef _IO_INC
%define _IO_INC

%define IO_DELAY_PORT	80h		; Invalid port (we hope!)

%macro io_delay 0.nolist
		out IO_DELAY_PORT,al
		out IO_DELAY_PORT,al
%endmacro

%macro slow_out 2.nolist
		out %1,%2
		io_delay
%endmacro

%endif ; _IO_INC