wrsm_plat.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 2001-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _WRSM_PLAT_H
#define _WRSM_PLAT_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* WildCat RSM driver platform-specific module interface
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/wrsm_types.h>
#include <sys/wrsm_common.h>
/* Possible per-link LED states */
#define LEDBOTHOFF 0
#define LEDLOWERON 1
#define LEDUPPERON 2
#define LEDBOTHON 3
/* Possible values for link_state */
#define LINK_STATE_OFF 0
#define LINK_STATE_SEEK 2
#define LINK_STATE_IN_USE 3
#define LINK_STATE_NO_CHANGE 4
#define END_STATUS_NOT_READY 0
#define END_STATUS_NEAR_READY 1
#define END_STATUS_ALL_READY 3
/*
* remote wnode argument to _uplink and _downlink to indicate link
* should be in loopback mode
*/
/* I have no idea how big this should actually be */
#define WIB_SEPROM_MSG_SIZE 64
/* Typedefs for ncslice programming */
typedef enum {
WRSM_NCOWNER_NONE = 1,
WRSM_NCOWNER_WCI = 2,
typedef enum {
typedef union {
typedef struct {
typedef struct wrsm_plat_ops {
void (*sc_failed)();
/* The following callbacks are for testing purposes only */
wci_id);
/* Format of data for wrsmplat_set_seprom data */
typedef struct wrsm_wib_ecc_error {
#define WRSM_WIB_SEPROM_TYPE_ECCERR 1
typedef struct wrsm_seprom_data {
union {
} data;
int wrsmplat_unreg_callbacks(void);
length);
int wrsmplat_stripegroup_verify(const wrsm_stripe_group_t *);
void wrsmplat_ncslice_enter(void);
void wrsmplat_ncslice_exit(void);
void wrsmplat_xt_sync(int cpu_id);
void wrsmplat_set_asi_cesr_id(void);
void wrsmplat_clr_asi_cesr_id(void);
#ifdef __cplusplus
}
#endif
#endif /* _WRSM_PLAT_H */