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.
This commit is contained in:
macallan 2005-08-14 16:05:56 +00:00
parent 5585c58579
commit ff06d987cb
2 changed files with 26 additions and 2 deletions

View File

@ -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 @@ static struct patch_entry patch_c5ip[] = {
{ 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 }
};

View File

@ -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 @@ is taken as the current.
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 )