summaryrefslogtreecommitdiff
path: root/src/ast_vgatool.h
diff options
context:
space:
mode:
authorY.C. Chen <yc_chen@aspeedtech.com>2014-03-14 22:52:11 +0800
committerY.C. Chen <yc_chen@aspeedtech.com>2014-03-14 22:52:11 +0800
commit2a2ecb551781d89e8e2a3123bb7d5b20ee807953 (patch)
treec789afa710a2be1dae6377e4b860b6f830b0cc7e /src/ast_vgatool.h
parent7f24775a468066601a79beaffb4efa5a36c5ed59 (diff)
Support DP501 Output
Diffstat (limited to 'src/ast_vgatool.h')
-rw-r--r--src/ast_vgatool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ast_vgatool.h b/src/ast_vgatool.h
index 275369b..6d24263 100644
--- a/src/ast_vgatool.h
+++ b/src/ast_vgatool.h
@@ -166,3 +166,7 @@
*(ULONG *) (pAST->MMIOVirtualAddr + 0xF000) = 0x1; \
*(ULONG *) (pAST->MMIOVirtualAddr + 0x10000 + ((addr) & 0x0000FFFF)) = (data); \
}
+
+/* Delay */
+#define DelayUS(x) usleep(x)
+#define DelayMS(x) DelayUS(1000*x)