/*
* 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 2008 NetXen, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _UNM_NIC_HW_
#define _UNM_NIC_HW_
#ifdef __cplusplus
extern "C" {
#endif
#include "unm_inc.h"
/* Hardware memory size of 128 meg */
/*
* It can be calculated by looking at the first 1 bit of the BAR0 addr after
* bit 4 For us lets assume that BAR0 is D8000008, then the size is 0x8000000,
* 8 represents first bit containing 1. FSL temp notes....pg 162 of PCI
* systems arch...
*/
{ \
int i; \
for (i = 0; i < (NUM_WORDS); i++, a++, b++) { \
tmp = UNM_NIC_PCI_READ_64(a); \
UNM_NIC_PCI_WRITE_64(tmp, b); \
} \
}
{ \
int i; \
for (i = 0; i < (NUM_WORDS); i++, a++, b++) { \
tmp = UNM_NIC_PCI_READ_64(b); \
UNM_NIC_PCI_WRITE_64(tmp, a); \
} \
}
#define UNM_NIC_LOCKED_READ_REG(X, Y) \
#define UNM_NIC_LOCKED_WRITE_REG(X, Y) \
/* For Multicard support */
{ \
}
{ \
(struct unm_adapter_s *)ADAPTER, \
}
struct unm_adapter_s;
typedef struct {
unsigned valid;
unsigned start_128M;
unsigned end_128M;
unsigned start_2M;
typedef struct {
#ifdef __cplusplus
}
#endif
#endif /* _UNM_NIC_HW_ */