/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SOCALREG_H
#define _SYS_SOCALREG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* socalreg.h:
*
* SOC+ Register Definitions, Interface Adaptor to Fiber Channel
*/
/*
* Define the SOC+ configuration register bits.
*/
typedef union socal_cr_register {
struct cr {
} reg;
uint32_t w;
/*
* Define Configuration register bits.
*/
#define SOCAL_CR_SBUS_BURST_SIZE_64BIT(a) \
(((a) & SOCAL_CR_SBUS_BURST_SIZE_64BIT_MASK) >> 8)
#define SOCAL_CR_EXTERNAL_RAM_BANK(a) \
(((a) & SOCAL_CR_EXTERNAL_RAM_BANK_MASK) >> 24)
/*
* Define SOC+ Slave Access Register.
*/
typedef union socal_sae_register {
struct sae {
} reg;
uint32_t w;
/*
* Define the Slave Access Regsiter Bits.
*/
/*
* Define SOC+ Command and Status Register.
*/
typedef union socal_csr_register {
struct csr {
} reg;
uint32_t w;
/*
* Define SOC+ CSR Register Macros.
*/
/*
* Define SOC Interrupt Mask Register Bits.
*/
/*
* Define SOC+ Request Queue Index Register
*/
typedef union socal_reqp_register {
struct reqp {
} reg;
uint32_t w;
/*
* Define SOC+ Response Queue Index Register
*/
typedef union socal_rspp_register {
struct rspp {
} reg;
uint32_t w;
typedef struct _socalreg_ {
} socal_reg_t;
/*
* Device Address Space Offsets.
*/
(((csr) & SOCAL_CSR_SOCAL_TO_HOST) | \
/*
* Bus dma burst sizes
*/
#ifndef BURSTSIZE
#define BURSTSIZE
#endif /* BURSTSIZE */
#ifdef __cplusplus
}
#endif
#endif /* !_SYS_SOCALREG_H */