summaryrefslogtreecommitdiffstats
path: root/src/query.h
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-04-25 21:47:53 +0200
committerpancake <pancake@dazo>2007-04-25 21:47:53 +0200
commit5b5425e0d06ac2a320ee182f2de9e805489e7e66 (patch)
tree0d7c263839a55013edfaaf2a9e4a9f558f427d80 /src/query.h
parent60f2337927efe4116a6675fccdf1021f51c86937 (diff)
download0xFFFF-5b5425e0d06ac2a320ee182f2de9e805489e7e66.tar.bz2
* import of the 'set-rd-flags+cleanups' patch from Robert Schuster
adds support for setting and clearing the rd flags (no-retu-watchdog, serial-console and the like). The interface to it is a bit cryptic (construct your own hex number) but it works like like 'chmod'.
Diffstat (limited to 'src/query.h')
-rw-r--r--src/query.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/query.h b/src/query.h
new file mode 100644
index 0000000..03ee963
--- /dev/null
+++ b/src/query.h
@@ -0,0 +1,28 @@
+#ifndef QUERY_H_
+#define QUERY_H_
+
+int boot_board(char *cmdline);
+
+int reboot_board();
+
+int get_status();
+
+int get_usb_mode();
+int set_usb_mode(unsigned int);
+
+int get_rd_mode();
+int set_rd_mode(unsigned short mode);
+
+int get_rd_flags();
+int set_rd_flags(unsigned short flags);
+
+int get_hw_revision();
+
+int get_root_device();
+int set_root_device(unsigned short);
+
+int get_nolo_version();
+
+int get_sw_version();
+
+#endif /*QUERY_H_*/