• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;; -----------------------------------------------------------------------
2;;
3;;   Copyright 1994-2009 H. Peter Anvin - All Rights Reserved
4;;   Copyright 2009 Intel Corporation; author: H. Peter Anvin
5;;
6;;   This program is free software; you can redistribute it and/or modify
7;;   it under the terms of the GNU General Public License as published by
8;;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9;;   Boston MA 02111-1307, USA; either version 2 of the License, or
10;;   (at your option) any later version; incorporated herein by reference.
11;;
12;; -----------------------------------------------------------------------
13
14;;
15;; io.inc
16;;
17;; I/O related macros
18;;
19
20%ifndef _IO_INC
21%define _IO_INC
22
23%define IO_DELAY_PORT	80h		; Invalid port (we hope!)
24
25%macro io_delay 0.nolist
26		out IO_DELAY_PORT,al
27		out IO_DELAY_PORT,al
28%endmacro
29
30%macro slow_out 2.nolist
31		out %1,%2
32		io_delay
33%endmacro
34
35%endif ; _IO_INC
36