|
@@ -166,3 +166,78 @@ struct linux_bigint {
|
|
#ifdef __MIPSEL__
|
|
#ifdef __MIPSEL__
|
|
u32 lo;
|
|
u32 lo;
|
|
s32 hi;
|
|
s32 hi;
|
|
|
|
+#else /* !(__MIPSEL__) */
|
|
|
|
+ s32 hi;
|
|
|
|
+ u32 lo;
|
|
|
|
+#endif
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+struct linux_finfo {
|
|
|
|
+ struct linux_bigint begin;
|
|
|
|
+ struct linux_bigint end;
|
|
|
|
+ struct linux_bigint cur;
|
|
|
|
+ enum linux_devtypes dtype;
|
|
|
|
+ unsigned long namelen;
|
|
|
|
+ unsigned char attr;
|
|
|
|
+ char name[32]; /* XXX imperical, should be define */
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* This describes the vector containing function pointers to the ARC
|
|
|
|
+ firmware functions. */
|
|
|
|
+struct linux_romvec {
|
|
|
|
+ LONG load; /* Load an executable image. */
|
|
|
|
+ LONG invoke; /* Invoke a standalong image. */
|
|
|
|
+ LONG exec; /* Load and begin execution of a
|
|
|
|
+ standalone image. */
|
|
|
|
+ LONG halt; /* Halt the machine. */
|
|
|
|
+ LONG pdown; /* Power down the machine. */
|
|
|
|
+ LONG restart; /* XXX soft reset??? */
|
|
|
|
+ LONG reboot; /* Reboot the machine. */
|
|
|
|
+ LONG imode; /* Enter PROM interactive mode. */
|
|
|
|
+ LONG _unused1; /* Was ReturnFromMain(). */
|
|
|
|
+
|
|
|
|
+ /* PROM device tree interface. */
|
|
|
|
+ LONG next_component;
|
|
|
|
+ LONG child_component;
|
|
|
|
+ LONG parent_component;
|
|
|
|
+ LONG component_data;
|
|
|
|
+ LONG child_add;
|
|
|
|
+ LONG comp_del;
|
|
|
|
+ LONG component_by_path;
|
|
|
|
+
|
|
|
|
+ /* Misc. stuff. */
|
|
|
|
+ LONG cfg_save;
|
|
|
|
+ LONG get_sysid;
|
|
|
|
+
|
|
|
|
+ /* Probing for memory. */
|
|
|
|
+ LONG get_mdesc;
|
|
|
|
+ LONG _unused2; /* was Signal() */
|
|
|
|
+
|
|
|
|
+ LONG get_tinfo;
|
|
|
|
+ LONG get_rtime;
|
|
|
|
+
|
|
|
|
+ /* File type operations. */
|
|
|
|
+ LONG get_vdirent;
|
|
|
|
+ LONG open;
|
|
|
|
+ LONG close;
|
|
|
|
+ LONG read;
|
|
|
|
+ LONG get_rstatus;
|
|
|
|
+ LONG write;
|
|
|
|
+ LONG seek;
|
|
|
|
+ LONG mount;
|
|
|
|
+
|
|
|
|
+ /* Dealing with firmware environment variables. */
|
|
|
|
+ LONG get_evar;
|
|
|
|
+ LONG set_evar;
|
|
|
|
+
|
|
|
|
+ LONG get_finfo;
|
|
|
|
+ LONG set_finfo;
|
|
|
|
+
|
|
|
|
+ /* Miscellaneous. */
|
|
|
|
+ LONG cache_flush;
|
|
|
|
+ LONG TestUnicodeCharacter; /* ARC; not sure if ARCS too */
|
|
|
|
+ LONG GetDisplayStatus;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+/* The SGI ARCS parameter block is in a fixed location for standalone
|
|
|
|
+ * programs to access PROM facilities easily.
|