Deleted Added
full compact
osm.h (256281) osm.h (284935)
1/* $Id: osm.h,v 1.10 2010/05/11 10:30:33 lcn Exp $ */
2/*-
3 * Copyright (C) 2005-2011 HighPoint Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/* $Id: osm.h,v 1.10 2010/05/11 10:30:33 lcn Exp $ */
2/*-
3 * Copyright (C) 2005-2011 HighPoint Technologies, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: stable/10/sys/dev/hptnr/osm.h 252867 2013-07-06 07:49:41Z delphij $
27 * $FreeBSD: stable/10/sys/dev/hptnr/osm.h 284935 2015-06-29 18:34:30Z delphij $
28 */
29#include <dev/hptnr/hptnr_config.h>
30#ifndef _HPT_OSM_H_
31#define _HPT_OSM_H_
32
33#define VERMAGIC_OSM 6
34
35

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

148void os_pci_writeb(void *osext, HPT_U8 offset, HPT_U8 value);
149void os_pci_writew(void *osext, HPT_U8 offset, HPT_U16 value);
150void os_pci_writel(void *osext, HPT_U8 offset, HPT_U32 value);
151
152/* obsolute interface */
153#define MAX_PCI_BUS_NUMBER 0xff
154#define MAX_PCI_DEVICE_NUMBER 32
155#define MAX_PCI_FUNC_NUMBER 1
28 */
29#include <dev/hptnr/hptnr_config.h>
30#ifndef _HPT_OSM_H_
31#define _HPT_OSM_H_
32
33#define VERMAGIC_OSM 6
34
35

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

148void os_pci_writeb(void *osext, HPT_U8 offset, HPT_U8 value);
149void os_pci_writew(void *osext, HPT_U8 offset, HPT_U16 value);
150void os_pci_writel(void *osext, HPT_U8 offset, HPT_U32 value);
151
152/* obsolute interface */
153#define MAX_PCI_BUS_NUMBER 0xff
154#define MAX_PCI_DEVICE_NUMBER 32
155#define MAX_PCI_FUNC_NUMBER 1
156HPT_U8 pcicfg_read_byte (HPT_U8 bus, HPT_U8 dev, HPT_U8 func, HPT_U8 reg);
156HPT_U32 pcicfg_read_dword(HPT_U8 bus, HPT_U8 dev, HPT_U8 func, HPT_U8 reg);
157HPT_U32 pcicfg_read_dword(HPT_U8 bus, HPT_U8 dev, HPT_U8 func, HPT_U8 reg);
158void pcicfg_write_byte (HPT_U8 bus, HPT_U8 dev, HPT_U8 func, HPT_U8 reg, HPT_U8 v);
159void pcicfg_write_dword(HPT_U8 bus, HPT_U8 dev, HPT_U8 func, HPT_U8 reg, HPT_U32 v);
157
158
159void *os_map_pci_bar(
160 void *osext,
161 int index,
162 HPT_U32 offset,
163 HPT_U32 length
164);

--- 72 unchanged lines hidden ---
160
161
162void *os_map_pci_bar(
163 void *osext,
164 int index,
165 HPT_U32 offset,
166 HPT_U32 length
167);

--- 72 unchanged lines hidden ---