1 1.1 simonb /* ********************************************************************* 2 1.1 simonb * Broadcom Common Firmware Environment (CFE) 3 1.1 simonb * 4 1.1 simonb * Misc. utility routines for Big Sur File: bigsur_utils.h 5 1.1 simonb * 6 1.1 simonb * Random stuff we use on this board package. 7 1.1 simonb * 8 1.1 simonb * Author: Mitch Lichtenberg 9 1.1 simonb * 10 1.1 simonb ********************************************************************* 11 1.1 simonb * 12 1.1 simonb * Copyright 2000,2001,2002,2003 13 1.1 simonb * Broadcom Corporation. All rights reserved. 14 1.1 simonb * 15 1.1 simonb * This software is furnished under license and may be used and 16 1.1 simonb * copied only in accordance with the following terms and 17 1.1 simonb * conditions. Subject to these conditions, you may download, 18 1.1 simonb * copy, install, use, modify and distribute modified or unmodified 19 1.1 simonb * copies of this software in source and/or binary form. No title 20 1.1 simonb * or ownership is transferred hereby. 21 1.1 simonb * 22 1.1 simonb * 1) Any source code used, modified or distributed must reproduce 23 1.1 simonb * and retain this copyright notice and list of conditions 24 1.1 simonb * as they appear in the source file. 25 1.1 simonb * 26 1.1 simonb * 2) No right is granted to use any trade name, trademark, or 27 1.1 simonb * logo of Broadcom Corporation. The "Broadcom Corporation" 28 1.1 simonb * name may not be used to endorse or promote products derived 29 1.1 simonb * from this software without the prior written permission of 30 1.1 simonb * Broadcom Corporation. 31 1.1 simonb * 32 1.1 simonb * 3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR 33 1.1 simonb * IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED 34 1.1 simonb * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 35 1.1 simonb * PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT 36 1.1 simonb * SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN 37 1.1 simonb * PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT, 38 1.1 simonb * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 39 1.1 simonb * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 40 1.1 simonb * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 41 1.1 simonb * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 42 1.1 simonb * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 43 1.1 simonb * TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF 44 1.1 simonb * THE POSSIBILITY OF SUCH DAMAGE. 45 1.1 simonb ********************************************************************* */ 46 1.1 simonb 47 1.1 simonb 48 1.1 simonb typedef struct bitfield_s { 49 1.1 simonb uint64_t field; 50 1.1 simonb char *name; 51 1.1 simonb } bitfield_t; 52 1.1 simonb 53 1.1 simonb char *showfields(bitfield_t *fields,uint64_t val); 54