summaryrefslogtreecommitdiffstats
path: root/private/ntos/nthals/halppc/ppc/fwnvr.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/nthals/halppc/ppc/fwnvr.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/ntos/nthals/halppc/ppc/fwnvr.h')
-rw-r--r--private/ntos/nthals/halppc/ppc/fwnvr.h313
1 files changed, 313 insertions, 0 deletions
diff --git a/private/ntos/nthals/halppc/ppc/fwnvr.h b/private/ntos/nthals/halppc/ppc/fwnvr.h
new file mode 100644
index 000000000..c326bc596
--- /dev/null
+++ b/private/ntos/nthals/halppc/ppc/fwnvr.h
@@ -0,0 +1,313 @@
+//
+// FWNVR.H
+//
+// Prototypes for FWNVR.C
+// (automatically generated by CPROTO)
+//
+
+#ifndef _CPROTO_FWNVR_
+#define _CPROTO_FWNVR_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+PNVR_OBJECT
+nvr_alloc (
+ ULONG size
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_free (
+ PVOID p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+BOOLEAN
+NvrSetSize (
+ LONG NvramSize // size of NVRAM in bytes if non-zero
+);
+
+
+BOOLEAN
+NvrSetMethod (
+ LONG ForcedValue // if Non-zero, set to this value regardless
+);
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+UCHAR
+nvr_read (
+ ULONG addr
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_write (
+ ULONG addr,
+ UCHAR data
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_swap_Header (
+ HEADER* dest,
+ HEADER* src
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_headb2l (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_headl2b (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_default_nvram (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+BOOLEAN
+nvr_read_nvram (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_read_GEArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_read_OSArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_read_CFArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_write_Header (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_write_GEArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_write_OSArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_write_CFArea (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+VOID
+nvr_delete_object (
+ VOID
+);
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+PNVR_OBJECT
+nvr_create_object (
+ VOID
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+STATUS_TYPE
+nvr_initialize_object (
+ LONG AccessMethod,
+ ULONG Size // NVR size in bytes
+);
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+VOID
+nvr_clear_nvram (
+ VOID
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+VOID
+nvr_destroy (
+ LONG AccessMethod,
+ ULONG Size // size of NVRAM
+);
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+ULONG
+nvr_computecrc (
+ ULONG oldcrc,
+ UCHAR data
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+USHORT
+nvr_calc1crc (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+#ifdef _CPROTO_FWNVR_STATICS_
+USHORT
+nvr_calc2crc (
+ PNVR_OBJECT p
+);
+#endif // _CPROTO_FWNVR_STATICS_
+
+
+VOID
+nvr_print_object (
+ VOID
+);
+
+
+STATUS_TYPE
+nvr_find_variable (
+ PUCHAR VarName, // name of variable to find
+ PUCHAR ArrayAddr, // address of variable array
+ ULONG ArraySize, // max size of variable array
+ PULONG ni,
+ PULONG vi
+);
+
+
+STATUS_TYPE
+nvr_set_variable (
+ PUCHAR VarName, // name of variable to add/change
+ PUCHAR VarValue, // value to be set into variable
+ PUCHAR ArrayAddr, // address of variable array
+ ULONG ArraySize // max size of variable array
+);
+
+
+STATUS_TYPE
+nvr_find_OS_variable (
+ PUCHAR var,
+ PULONG ni,
+ PULONG vi
+);
+
+
+STATUS_TYPE
+nvr_find_GE_variable (
+ PUCHAR var,
+ PULONG ni,
+ PULONG vi
+);
+
+
+PUCHAR
+nvr_get_OS_variable (
+ PUCHAR vname
+);
+
+
+PUCHAR
+nvr_get_GE_variable (
+ PUCHAR vname
+);
+
+
+STATUS_TYPE
+nvr_set_OS_variable (
+ PUCHAR vname,
+ PUCHAR value
+);
+
+
+STATUS_TYPE
+nvr_set_GE_variable (
+ PUCHAR vname,
+ PUCHAR value
+);
+
+
+PUCHAR
+nvr_fetch_GE (
+ VOID
+);
+
+
+ULONG
+nvr_stat_GE (
+ PULONG size
+);
+
+
+PUCHAR
+nvr_fetch_OS (
+ VOID
+);
+
+
+PUCHAR
+nvr_fetch_CF (
+ VOID
+);
+
+
+VOID
+NvrCopyFill (
+ PVOID src,
+ ULONG srclen
+);
+
+
+#endif // _CPROTO_FWNVR_