1*2449e17fSsherrym /* 2*2449e17fSsherrym * CDDL HEADER START 3*2449e17fSsherrym * 4*2449e17fSsherrym * The contents of this file are subject to the terms of the 5*2449e17fSsherrym * Common Development and Distribution License (the "License"). 6*2449e17fSsherrym * You may not use this file except in compliance with the License. 7*2449e17fSsherrym * 8*2449e17fSsherrym * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2449e17fSsherrym * or http://www.opensolaris.org/os/licensing. 10*2449e17fSsherrym * See the License for the specific language governing permissions 11*2449e17fSsherrym * and limitations under the License. 12*2449e17fSsherrym * 13*2449e17fSsherrym * When distributing Covered Code, include this CDDL HEADER in each 14*2449e17fSsherrym * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2449e17fSsherrym * If applicable, add the following below this CDDL HEADER, with the 16*2449e17fSsherrym * fields enclosed by brackets "[]" replaced with your own identifying 17*2449e17fSsherrym * information: Portions Copyright [yyyy] [name of copyright owner] 18*2449e17fSsherrym * 19*2449e17fSsherrym * CDDL HEADER END 20*2449e17fSsherrym */ 21*2449e17fSsherrym 22*2449e17fSsherrym /* 23*2449e17fSsherrym * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*2449e17fSsherrym * Use is subject to license terms. 25*2449e17fSsherrym */ 26*2449e17fSsherrym 27*2449e17fSsherrym #ifndef _UCODE_ERRNO_H 28*2449e17fSsherrym #define _UCODE_ERRNO_H 29*2449e17fSsherrym 30*2449e17fSsherrym #pragma ident "%Z%%M% %I% %E% SMI" 31*2449e17fSsherrym 32*2449e17fSsherrym #ifdef __cplusplus 33*2449e17fSsherrym extern "C" { 34*2449e17fSsherrym #endif 35*2449e17fSsherrym 36*2449e17fSsherrym typedef enum ucode_errno { 37*2449e17fSsherrym EM_OK, /* No error */ 38*2449e17fSsherrym EM_FILESIZE, /* File size is invalid */ 39*2449e17fSsherrym EM_OPENFILE, /* Failed to open file */ 40*2449e17fSsherrym EM_FILEFORMAT, /* Not a valid microcode file */ 41*2449e17fSsherrym EM_HEADER, /* File header is invalid */ 42*2449e17fSsherrym EM_CHECKSUM, /* Checksum is invalid */ 43*2449e17fSsherrym EM_INVALIDARG, /* Invalid argument(s) */ 44*2449e17fSsherrym EM_NOMATCH, /* No matching microcode found */ 45*2449e17fSsherrym EM_HIGHERREV, /* File does not contain higher revision microcode */ 46*2449e17fSsherrym EM_NOTSUP, /* Processor does not support microcode operations */ 47*2449e17fSsherrym EM_UPDATE, /* Failed to update to the latest revision */ 48*2449e17fSsherrym EM_SYS, /* System call failed. See errno */ 49*2449e17fSsherrym EM_NOVENDOR, /* File must start with vendor string */ 50*2449e17fSsherrym EM_NOMEM /* Not enough memory */ 51*2449e17fSsherrym } ucode_errno_t; 52*2449e17fSsherrym 53*2449e17fSsherrym extern const char *ucode_strerror(ucode_errno_t); 54*2449e17fSsherrym extern const char *ucode_errname(ucode_errno_t); 55*2449e17fSsherrym 56*2449e17fSsherrym #ifdef __cplusplus 57*2449e17fSsherrym } 58*2449e17fSsherrym #endif 59*2449e17fSsherrym 60*2449e17fSsherrym #endif /* _UCODE_ERRNO_H */ 61