summaryrefslogtreecommitdiff
path: root/usr/src/lib/efcode
diff options
context:
space:
mode:
authorPeter Tribble <peter.tribble@gmail.com>2019-01-28 12:15:59 +0000
committerDan McDonald <danmcd@joyent.com>2019-02-07 21:46:57 -0500
commit2a1fd0ffe121888d44fdec321c25b53dcfaa9118 (patch)
tree6b545d7ee224e6bc3f0fe80f3b231fa325f06368 /usr/src/lib/efcode
parent84a8796cdac4378079f720e0ca4d2ff15eb1b8b7 (diff)
downloadillumos-joyent-2a1fd0ffe121888d44fdec321c25b53dcfaa9118.tar.gz
10318 Remove starfire support
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Andy Fiddaman <af@citrus-it.net> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/efcode')
-rw-r--r--usr/src/lib/efcode/engine/package.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/usr/src/lib/efcode/engine/package.c b/usr/src/lib/efcode/engine/package.c
index be241d01ac..54a75dfe88 100644
--- a/usr/src/lib/efcode/engine/package.c
+++ b/usr/src/lib/efcode/engine/package.c
@@ -22,8 +22,9 @@
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright 2019 Peter Tribble.
+ */
#include <stdio.h>
#include <stdlib.h>
@@ -165,28 +166,11 @@ deactivate_device(fcode_env_t *env, device_t *d)
do_definitions(env);
}
-/*
- * Starfire hack to set '/' device_type to 'upa'
- */
-#include <sys/systeminfo.h>
-static void
-starfire_hack(fcode_env_t *env)
-{
- char platform[100];
-
- sysinfo(SI_PLATFORM, platform, sizeof (platform));
- if (strcmp(platform, "SUNW,Ultra-Enterprise-10000") == 0 &&
- find_property(env->root_node, "device_type") == NULL) {
- create_string_prop(env, "device_type", "upa");
- }
-}
-
void
root_node(fcode_env_t *env)
{
do_also(env);
activate_device(env, env->root_node);
- starfire_hack(env);
}
void