px_lib4v.h (0114761d) px_lib4v.h (b1593d50)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 5 unchanged lines hidden (view full) ---

14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26#ifndef _SYS_PX_LIB4V_H
27#define _SYS_PX_LIB4V_H
28
29#ifdef __cplusplus
30extern "C" {

--- 61 unchanged lines hidden (view full) ---

92 *
93 * Currently PX nexus driver supports VPCI API version 1.1
94 */
95#define PX_VPCI_MAJOR_VER_1 0x1ull
96#define PX_VPCI_MAJOR_VER PX_VPCI_MAJOR_VER_1
97
98#define PX_VPCI_MINOR_VER_0 0x0ull
99#define PX_VPCI_MINOR_VER_1 0x1ull
23 * Use is subject to license terms.
24 */
25
26#ifndef _SYS_PX_LIB4V_H
27#define _SYS_PX_LIB4V_H
28
29#ifdef __cplusplus
30extern "C" {

--- 61 unchanged lines hidden (view full) ---

92 *
93 * Currently PX nexus driver supports VPCI API version 1.1
94 */
95#define PX_VPCI_MAJOR_VER_1 0x1ull
96#define PX_VPCI_MAJOR_VER PX_VPCI_MAJOR_VER_1
97
98#define PX_VPCI_MINOR_VER_0 0x0ull
99#define PX_VPCI_MINOR_VER_1 0x1ull
100#define PX_VPCI_MINOR_VER PX_VPCI_MINOR_VER_1
100#define PX_VPCI_MINOR_VER_2 0x2ull
101#define PX_VPCI_MINOR_VER PX_VPCI_MINOR_VER_2
101
102extern uint64_t hvio_config_get(devhandle_t dev_hdl, pci_device_t bdf,
103 pci_config_offset_t off, pci_config_size_t size, pci_cfg_data_t *data_p);
104extern uint64_t hvio_config_put(devhandle_t dev_hdl, pci_device_t bdf,
105 pci_config_offset_t off, pci_config_size_t size, pci_cfg_data_t data);
106
107extern uint64_t hvio_iommu_map(devhandle_t dev_hdl, tsbid_t tsbid,
108 pages_t pages, io_attributes_t attr, io_page_list_t *io_page_list_p,

--- 95 unchanged lines hidden ---
102
103extern uint64_t hvio_config_get(devhandle_t dev_hdl, pci_device_t bdf,
104 pci_config_offset_t off, pci_config_size_t size, pci_cfg_data_t *data_p);
105extern uint64_t hvio_config_put(devhandle_t dev_hdl, pci_device_t bdf,
106 pci_config_offset_t off, pci_config_size_t size, pci_cfg_data_t data);
107
108extern uint64_t hvio_iommu_map(devhandle_t dev_hdl, tsbid_t tsbid,
109 pages_t pages, io_attributes_t attr, io_page_list_t *io_page_list_p,

--- 95 unchanged lines hidden ---