Module Name: src Committed By: thorpej Date: Sat Feb 6 16:07:14 UTC 2021
Modified Files: src/sys/dev/ofw: openfirm.h Log Message: Wrap some definite-only-in-kernel-environment prototypees in _KERNEL. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ofw/openfirm.h diff -u src/sys/dev/ofw/openfirm.h:1.45 src/sys/dev/ofw/openfirm.h:1.46 --- src/sys/dev/ofw/openfirm.h:1.45 Fri Feb 5 17:17:59 2021 +++ src/sys/dev/ofw/openfirm.h Sat Feb 6 16:07:13 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: openfirm.h,v 1.45 2021/02/05 17:17:59 thorpej Exp $ */ +/* $NetBSD: openfirm.h,v 1.46 2021/02/06 16:07:13 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -104,6 +104,7 @@ int openfirmware(void *); /* * Functions and variables provided by machine-independent code. */ +#ifdef _KERNEL struct device_compatible_entry; devhandle_t devhandle_from_of(int); @@ -131,6 +132,7 @@ char *of_get_mode_string(char *, int); void of_enter_i2c_devs(prop_dictionary_t, int, size_t, int); void of_enter_spi_devs(prop_dictionary_t, int, size_t); +#endif /* _KERNEL */ bool of_hasprop(int, const char *); #define of_getprop_bool of_hasprop