aboutsummaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test69.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test69.c')
-rw-r--r--util/romcc/tests/simple_test69.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test69.c b/util/romcc/tests/simple_test69.c
new file mode 100644
index 0000000000..c01338fc62
--- /dev/null
+++ b/util/romcc/tests/simple_test69.c
@@ -0,0 +1,22 @@
+static void outb(unsigned char value, unsigned short port)
+{
+ __builtin_outb(value, port);
+}
+
+static void pnp_write_config(void)
+{
+ unsigned char port;
+ unsigned char value;
+ unsigned char reg;
+ port = 0x2e;
+ value = 0x03;
+ reg = 0x07;
+ outb(reg, port);
+ outb(value, port +1);
+ outb(value -1, port +2);
+}
+
+static void main(void)
+{
+ pnp_write_config();
+}