/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/platform_module.h>
/*
* Excalibur fan information
*/
typedef struct xcalfan_info {
char *pathname;
};
void
startup_platform(void)
{
}
int
{
return (0);
}
void
set_platform_defaults(void)
{
}
void
load_platform_drivers(void)
{
char **drv;
int i, err;
static char *boot_time_drivers[] = {
"todds1287",
"us",
"mc-us3",
"bbc_beep",
"max1617",
"tda8444",
"seeprom",
};
/*
* It is OK if 'us' driver doesn't load. It's
* not available in Core cluster.
*/
*drv);
}
/*
* mc-us3 must stay loaded for plat_get_mem_unum()
*/
/*
* Figure out which pcf8584_dip is shared with OBP for the nvram
* device, so the lock can be acquired.
*
* This should really be done elsewhere, like startup_platform, but
* that runs before the devinfo tree is setup with configure().
* So it is here until there is a better place.
*/
li = ldi_ident_from_anon();
for (i = 0; i < NFANS; ++i) {
if (err != 0) {
"Failed to get fan device handle for %s",
continue;
}
}
}
/*ARGSUSED*/
int
{
return (ENOTSUP); /* not supported on this platform */
}
/*ARGSUSED*/
int
{
return (ENOTSUP); /* not supported on this platform */
}
/*ARGSUSED*/
void
{
}
char *platform_module_list[] = {
"schppm", /* must attach before xcalppm */
"xcalppm",
(char *)0
};
/*ARGSUSED*/
void
{
}
/*ARGSUSED*/
int
{
else
return (ENOTSUP);
}
int
{
return (ENOSPC);
} else {
return (0);
}
}
/*
* Unfortunately, excal's BBC pcf8584 controller is used by both OBP
* and the OS's i2c drivers. The 'eeprom' command executes
* OBP code to handle property requests. If eeprom didn't do this, or if the
* controllers were partitioned so that all devices on a given controller were
* driven by either OBP or the OS, this wouldn't be necessary.
*
* Note that getprop doesn't have the same issue as it reads from cached
* memory in OBP.
*/
/*
* Common locking enter code
*/
void
plat_setprop_enter(void)
{
}
/*
* Common locking exit code
*/
void
plat_setprop_exit(void)
{
}
/*
* Called by pcf8584 driver
*/
void
{
if (dip == shared_pcf8584_dip) {
}
}
/*
* Called by pcf8584 driver
*/
void
{
if (dip == shared_pcf8584_dip) {
}
}
/*
* Set platform fans to maximum speed
*/
void
plat_fan_blast(void)
{
int err;
int i;
for (i = 0; i < NFANS; ++i) {
uio.uio_loffset = 0;
if (err != 0) {
"write %d to %s now, try again later.",
} else {
"Error %d while writing %d to %s.", err,
}
}
}
}