diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-25 05:19:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-10-25 05:19:56 +0000 |
commit | 5eb6c1d31d9ae99c3a273c38fa757a7dce7729cf (patch) | |
tree | 4f28ebff9575d921c650485cc043173223a62a2c | |
parent | 9b97efbfff76a3ed901670517eeac6e92bbbbe40 (diff) |
another case of product encoding is "Sun (TM) modelname", on the E250
-rw-r--r-- | sys/arch/sparc64/sparc64/autoconf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index 772465ae151..3e55335ed91 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.71 2007/10/17 21:23:28 kettenis Exp $ */ +/* $OpenBSD: autoconf.c,v 1.72 2007/10/25 05:19:55 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -692,6 +692,9 @@ extern bus_space_tag_t mainbus_space_tag; if ((strncmp(hw_vendor, "SUNW,", 5)) == 0) { p = hw_prod = hw_vendor + 5; hw_vendor = "Sun"; + } else if ((strncmp(hw_vendor, "Sun (TM) ", 9)) == 0) { + p = hw_prod = hw_vendor + 9; + hw_vendor = "Sun"; } else if ((p = memchr(hw_vendor, ' ', len)) != NULL) { *p = '\0'; hw_prod = ++p; |