84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * CDDL HEADER START
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * The contents of this file are subject to the terms of the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * Common Development and Distribution License, Version 1.0 only
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * (the "License"). You may not use this file except in compliance
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * with the License.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * See the License for the specific language governing permissions
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * and limitations under the License.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * When distributing Covered Code, include this CDDL HEADER in each
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * If applicable, add the following below this CDDL HEADER, with the
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * fields enclosed by brackets "[]" replaced with your own identifying
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * information: Portions Copyright [yyyy] [name of copyright owner]
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * CDDL HEADER END
e4586ebf2f01666696316c178da243993b1a0c04mws * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * Use is subject to license terms.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * Platform-Specific SMBIOS Subroutines
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * The routines in this file form part of <sys/smbios_impl.h> and combine with
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * the usr/src/common/smbios code to form an in-kernel SMBIOS decoding service.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * The SMBIOS entry point is locating by scanning a range of physical memory
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws * assigned to BIOS as described in Section 2 of the DMTF SMBIOS specification.
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws cmn_err(CE_CONT, "?SMBIOS not loaded (%s)", smbios_errmsg(err));
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mwssmbios_open(const char *file, int version, int flags, int *errp)
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws bios = psm_map_phys(SMB_RANGE_START, bioslen, PSM_PROT_READ);
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws if (strncmp(p, SMB_ENTRY_EANCHOR, SMB_ENTRY_EANCHORLEN) == 0)
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws if (p >= q) {
e4586ebf2f01666696316c178da243993b1a0c04mws bios = psm_map_phys(ep->smbe_staddr, ep->smbe_stlen, PSM_PROT_READ);
e4586ebf2f01666696316c178da243993b1a0c04mws shp = smbios_bufopen(ep, stbuf, ep->smbe_stlen, version, flags, &err);
516627f338a630bcf9806a91aa873bbbae9a2facJonathan Matthew cmn_err(CE_CONT, "?SMBIOS table is truncated");
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws/*ARGSUSED*/
84ab085a13f931bc78e7415e7ce921dbaa14fcb3mws/*ARGSUSED*/