platform_module.h revision d58fda4376e4bf67072ce2e69f6f47036f9dbb68
/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PLATFORM_MODULE_H
#define _SYS_PLATFORM_MODULE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/*
* The functions that are expected of the platform modules.
*/
#pragma weak startup_platform
#pragma weak set_platform_tsb_spares
#pragma weak set_platform_defaults
#pragma weak load_platform_drivers
#pragma weak plat_cpu_poweron
#pragma weak plat_cpu_poweroff
#pragma weak plat_freelist_process
#pragma weak plat_lpkmem_is_supported
extern void startup_platform(void);
extern int set_platform_tsb_spares(void);
extern void set_platform_defaults(void);
extern void load_platform_drivers(void);
extern void load_platform_modules(void);
extern void plat_freelist_process(int mnode);
extern int plat_lpkmem_is_supported(void);
/*
* Data structures expected of the platform modules.
*/
extern char *platform_module_list[];
#pragma weak plat_get_cpu_unum
#pragma weak plat_get_mem_unum
#pragma weak plat_log_fruid_error
#pragma weak plat_log_fruid_error2
struct plat_ecc_ch_async_flt;
struct rmc_comm_msg;
#pragma weak plat_ecc_capability_sc_get
extern int plat_ecc_capability_sc_get(int type);
#pragma weak plat_blacklist
const char *class);
extern int starcat_dr_name(char *name);
#pragma weak plat_setprop_enter
#pragma weak plat_setprop_exit
#pragma weak plat_shared_i2c_enter
#pragma weak plat_shared_i2c_exit
#pragma weak plat_fan_blast
#pragma weak plat_rmc_comm_req
extern void plat_setprop_enter(void);
extern void plat_setprop_exit(void);
extern void plat_shared_i2c_enter(dev_info_t *);
extern void plat_shared_i2c_exit(dev_info_t *);
extern void plat_fan_blast(void);
extern void plat_rmc_comm_req(struct rmc_comm_msg *);
/*
* Used to communicate DR updates to platform lgroup framework
*/
typedef struct {
int u_board;
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PLATFORM_MODULE_H */