Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/boot add a prom patch that creates a de...



details:   https://anonhg.NetBSD.org/src/rev/4249b3a2f64f
branches:  trunk
changeset: 583611:4249b3a2f64f
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sun Aug 14 16:05:56 2005 +0000

description:
add a prom patch that creates a device node for the Krups' audio chip
in case it's missing ( like with OF 3.11.10 ) - makes audiocs at ebus work
on these machines.

diffstat:

 sys/arch/sparc/stand/boot/prompatch.c |  25 ++++++++++++++++++++++++-
 sys/arch/sparc/stand/boot/version     |   3 ++-
 2 files changed, 26 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r 02bb2957d952 -r 4249b3a2f64f sys/arch/sparc/stand/boot/prompatch.c
--- a/sys/arch/sparc/stand/boot/prompatch.c     Sun Aug 14 12:04:23 2005 +0000
+++ b/sys/arch/sparc/stand/boot/prompatch.c     Sun Aug 14 16:05:56 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prompatch.c,v 1.9 2004/03/18 12:26:51 hannken Exp $ */
+/*     $NetBSD: prompatch.c,v 1.10 2005/08/14 16:05:56 macallan Exp $ */
 
 /*
  * Copyright (c) 2001 Valeriy E. Ushakov
@@ -188,10 +188,33 @@
 { NULL, NULL }
 }; /* patch_c5ip */
 
+static struct patch_entry patch_krups[] = {
+
+/*
+ * check if there's a node for the audio chip, if not create it
+ */
+{ "sound device node: ",
+       "\" /pci/ebus/sound\" ' find-device catch"
+       " 0= if"
+               " device-end"
+               " \" ok\""
+       " else"
+               " 0 0 0 0 \" /pci/ebus\" begin-package"
+                       " \" sound\" name" 
+                       " 200000 1 600 reg"
+               " end-package"
+               " \" created\""
+       " then type"
+},
+
+{ NULL, NULL }
+}; /* patch_krups */
+
 static struct prom_patch prom_patch_tab[] = {
        { "SUNW,JavaStation-1",  PROM_OBP_V3,   NULL,       patch_js1_obp },
        { "SUNW,JDM1",           PROM_OPENFIRM, NULL,       patch_js1_ofw },
        { "SUNW,SPARCstation-5", PROM_OBP_V3,   match_c5ip, patch_c5ip    },
+       { "SUNW,JSIIep",         PROM_OPENFIRM, NULL,       patch_krups   },
        { NULL, 0, NULL }
 };
 
diff -r 02bb2957d952 -r 4249b3a2f64f sys/arch/sparc/stand/boot/version
--- a/sys/arch/sparc/stand/boot/version Sun Aug 14 12:04:23 2005 +0000
+++ b/sys/arch/sparc/stand/boot/version Sun Aug 14 16:05:56 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: version,v 1.17 2003/03/01 13:01:56 pk Exp $
+$NetBSD: version,v 1.18 2005/08/14 16:05:56 macallan Exp $
 
 NOTE ANY CHANGES YOU MAKE TO THE BOOTBLOCKS HERE.  The format of this
 file is important - make sure the entries are appended on end, last item
@@ -17,3 +17,4 @@
 1.12:  add prom patches for JavaStation-1
 1.13:  add additional match function pointer and prom patch Cycle 5 IP
 1.14:  search for physical memory segment and map to kernel's link address
+1.15:  add prom patch for Krups to make sound work ( create missing node on buggy OF )



Home | Main Index | Thread Index | Old Index