Deleted Added
full compact
ig4_var.h (302408) ig4_var.h (310072)
1/*
2 * Copyright (c) 2014 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Matthew Dillon <dillon@backplane.com> and was subsequently ported
6 * to FreeBSD by Michael Gmelin <freebsd@grem.de>
7 *
8 * Redistribution and use in source and binary forms, with or without

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

27 * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
28 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
1/*
2 * Copyright (c) 2014 The DragonFly Project. All rights reserved.
3 *
4 * This code is derived from software contributed to The DragonFly Project
5 * by Matthew Dillon <dillon@backplane.com> and was subsequently ported
6 * to FreeBSD by Michael Gmelin <freebsd@grem.de>
7 *
8 * Redistribution and use in source and binary forms, with or without

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

27 * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
28 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * $FreeBSD: stable/11/sys/dev/ichiic/ig4_var.h 284803 2015-06-25 07:52:51Z grembo $
35 * $FreeBSD: stable/11/sys/dev/ichiic/ig4_var.h 310072 2016-12-14 16:27:28Z avg $
36 */
37
38#ifndef _BUS_SMBUS_INTELGEN4_IG4_VAR_H_
39#define _BUS_SMBUS_INTELGEN4_IG4_VAR_H_
40
41#include "bus_if.h"
42#include "device_if.h"
43#include "pci_if.h"
44#include "smbus_if.h"
36 */
37
38#ifndef _BUS_SMBUS_INTELGEN4_IG4_VAR_H_
39#define _BUS_SMBUS_INTELGEN4_IG4_VAR_H_
40
41#include "bus_if.h"
42#include "device_if.h"
43#include "pci_if.h"
44#include "smbus_if.h"
45#include "iicbus_if.h"
45
46#define IG4_RBUFSIZE 128
47#define IG4_RBUFMASK (IG4_RBUFSIZE - 1)
48
49enum ig4_op { IG4_IDLE, IG4_READ, IG4_WRITE };
50
51struct ig4iic_softc {
52 device_t dev;
53 struct intr_config_hook enum_hook;
46
47#define IG4_RBUFSIZE 128
48#define IG4_RBUFMASK (IG4_RBUFSIZE - 1)
49
50enum ig4_op { IG4_IDLE, IG4_READ, IG4_WRITE };
51
52struct ig4iic_softc {
53 device_t dev;
54 struct intr_config_hook enum_hook;
54 device_t smb;
55 device_t iicbus;
55 struct resource *regs_res;
56 int regs_rid;
57 struct resource *intr_res;
58 int intr_rid;
59 void *intr_handle;
60 int intr_type;
61 enum ig4_op op;
62 int cmd;

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

110extern smbus_writeb_t ig4iic_smb_writeb;
111extern smbus_writew_t ig4iic_smb_writew;
112extern smbus_readb_t ig4iic_smb_readb;
113extern smbus_readw_t ig4iic_smb_readw;
114extern smbus_pcall_t ig4iic_smb_pcall;
115extern smbus_bwrite_t ig4iic_smb_bwrite;
116extern smbus_bread_t ig4iic_smb_bread;
117extern smbus_trans_t ig4iic_smb_trans;
56 struct resource *regs_res;
57 int regs_rid;
58 struct resource *intr_res;
59 int intr_rid;
60 void *intr_handle;
61 int intr_type;
62 enum ig4_op op;
63 int cmd;

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

111extern smbus_writeb_t ig4iic_smb_writeb;
112extern smbus_writew_t ig4iic_smb_writew;
113extern smbus_readb_t ig4iic_smb_readb;
114extern smbus_readw_t ig4iic_smb_readw;
115extern smbus_pcall_t ig4iic_smb_pcall;
116extern smbus_bwrite_t ig4iic_smb_bwrite;
117extern smbus_bread_t ig4iic_smb_bread;
118extern smbus_trans_t ig4iic_smb_trans;
119extern iicbus_transfer_t ig4iic_transfer;
120extern iicbus_reset_t ig4iic_reset;
118
119#endif
121
122#endif