px_mmu.h revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PX_MMU_H
#define _SYS_PX_MMU_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef uint64_t px_dvma_addr_t;
typedef uint64_t px_dma_bypass_addr_t;
typedef uint64_t px_dma_peer_addr_t;
typedef uint16_t px_dvma_context_t;
typedef uint64_t px_window_t;
/*
* boiler plate for tte (everything except the pfn)
*/
/*
* mmu block soft state structure:
*
* Each px node may share an mmu block structure with its peer
* node of have its own private mmu block structure.
*/
typedef struct px_mmu {
int mmu_inst;
/*
* address ranges of dvma space:
*/
/*
* virtual memory map and callback id for dvma space:
*/
/*
* fields for fast dvma interfaces:
*/
/*
* dvma fast track page cache byte map
*/
/* dvma debug */
struct px_dvma_rec *dvma_alloc_rec;
struct px_dvma_rec *dvma_free_rec;
struct px_dvma_rec *dvma_active_list;
} px_mmu_t;
typedef struct px_dvma_range_prop {
/* dvma debug */
#define PX_DVMA_DBG_ON(mmu_p) \
#define PX_DVMA_DBG_OFF(mmu_p) \
ddi_dma_impl_t *mp);
ddi_dma_impl_t *mp);
/* DVMA routines */
/* MMU initialization routines */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PX_MMU_H */