/*
* 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>
/*
* This platmod is used by both SUNW,Sun-Fire-280R (a.k.a littleneck) and
* SUNW,Netra-T4 (a.k.a. lw2plus) platforms.
*/
void
startup_platform(void)
{
}
int
{
return (0);
}
void
set_platform_defaults(void)
{
}
void
load_platform_drivers(void)
{
char **drv;
static char *boot_time_drivers[] = {
"todds1287",
"pcf8574",
"mc-us3",
};
*drv);
}
/* hold modules for keyswitch polling and plat_get_mem_unum() */
/*
* For littleneck we figure out which pcf8584 dip is shared with
* OBP for the nvram device, so the lock can be acquired.
* If this fails see if we're running on a Netra 20.
* The Netra 20 nvram node is the SCC and is also shared by
* Solaris and OBP.
*/
else {
}
}
/*ARGSUSED*/
int
{
return (ENOTSUP); /* not supported on this platform */
}
/*ARGSUSED*/
int
{
return (ENOTSUP); /* not supported on this platform */
}
/*ARGSUSED*/
void
{
}
/*
* No platform drivers on this platform
*/
char *platform_module_list[] = {
(char *)0
};
/*ARGSUSED*/
void
{
}
/*ARGSUSED*/
int
{
else
return (ENOTSUP);
}
int
{
return (ENOSPC);
} else {
return (0);
}
}
/*
* Littleneck'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 (i2cnexus_dip == shared_pcf8584_dip) {
}
}
/*
* Called by pcf8584 driver
*/
void
{
if (i2cnexus_dip == shared_pcf8584_dip) {
}
}