summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-11-07 15:40:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-11-07 15:40:03 +0000
commite7c26a4a77613e771d66ec11fdea4e1a0d25a572 (patch)
tree9eadfe7f7f244e34578e4c17f9db42bf6412b50e /sys
parent1af85c2acb49b0d70ca8c4aa3e92913c6744ec03 (diff)
Remove OF_package_to_path(). This routine used to be needed by the OFW
devices (ofnet, etc) for the VI board in the before-macppc days which nobody remembers, and has never been needed for anything on macs.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/opendev.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/sys/arch/macppc/macppc/opendev.c b/sys/arch/macppc/macppc/opendev.c
index f05aa76580e..9cb9afee2b6 100644
--- a/sys/arch/macppc/macppc/opendev.c
+++ b/sys/arch/macppc/macppc/opendev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: opendev.c,v 1.10 2020/04/02 19:27:51 gkoehler Exp $ */
+/* $OpenBSD: opendev.c,v 1.11 2024/11/07 15:40:02 miod Exp $ */
/* $NetBSD: openfirm.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */
/*
@@ -70,43 +70,6 @@ OF_instance_to_package(int ihandle)
}
int
-OF_package_to_path(int phandle, char *buf, int buflen)
-{
- static struct {
- char *name;
- int nargs;
- int nreturns;
- int phandle;
- char *buf;
- int buflen;
- int length;
- } args = {
- "package-to-path",
- 3,
- 1,
- };
- uint32_t s;
- int ret;
-
- if (buflen > PAGE_SIZE)
- return -1;
- s = ofw_msr();
- args.phandle = phandle;
- args.buf = OF_buf;
- args.buflen = buflen;
- if (openfirmware(&args) < 0)
- ret = -1;
- else {
- if (args.length > 0)
- ofbcopy(OF_buf, buf, args.length);
- ret = args.length;
- }
- ppc_mtmsr(s);
- return ret;
-}
-
-
-int
OF_call_method(char *method, int ihandle, int nargs, int nreturns, ...)
{
va_list ap;