2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1996-1998 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * PROM access routines to get and set disabled lists 2N/A * 128 is the size of the largest (currently) property name 2N/A * 8192 - MAXPROPSIZE - sizeof (int) is the size of the largest 2N/A * (currently) property value, viz. nvramrc. 2N/A * the sizeof(u_int) is from struct openpromio 2N/A /* Not a failure - just not set to anything */ 2N/A /* Ignore bad characters. */ 2N/A /* TODO: maybe should set ret to 0? */ 2N/A /* Setup output buffer. */ 2N/A * First read the existing list, filtering out 'bd' if 'bit' 2N/A case '0':
case '1':
case '2':
case '3':
2N/A case '4':
case '5':
case '6':
case '7':
2N/A case 'a':
case 'b':
case 'c':
2N/A case 'd':
case 'e':
case 'f':
2N/A case 'A':
case 'B':
case 'C':
2N/A case 'D':
case 'E':
case 'F':
2N/A /* Ignore bad characters. */ 2N/A /* If enabling this board ... */ 2N/A * The PROM only has board-level disable of memory. If two banks are present 2N/A * on the board, both are either enabled or disabled at boot. 2N/A * The caller of this routine must set the PROM_MEMORY_PRESENT bits 2N/A * before calling this function.