Deleted Added
full compact
ipmivars.h (162562) ipmivars.h (182322)
1/*-
2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2006 IronPort Systems Inc. <ambrisko@ironport.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/ipmi/ipmivars.h 162562 2006-09-22 22:11:29Z jhb $
26 * $FreeBSD: head/sys/dev/ipmi/ipmivars.h 182322 2008-08-28 02:13:53Z jhb $
27 */
28
29#ifndef __IPMIVARS_H__
30#define __IPMIVARS_H__
31
32struct ipmi_get_info {
33 int iface_type;
34 uint64_t address;

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

58#define KCS_DATA 0
59#define KCS_CTL_STS 1
60#define SMIC_DATA 0
61#define SMIC_CTL_STS 1
62#define SMIC_FLAGS 2
63
64struct ipmi_softc;
65
27 */
28
29#ifndef __IPMIVARS_H__
30#define __IPMIVARS_H__
31
32struct ipmi_get_info {
33 int iface_type;
34 uint64_t address;

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

58#define KCS_DATA 0
59#define KCS_CTL_STS 1
60#define SMIC_DATA 0
61#define SMIC_CTL_STS 1
62#define SMIC_FLAGS 2
63
64struct ipmi_softc;
65
66/* Per struct cdev data. */
66/* Per file descriptor data. */
67struct ipmi_device {
68 TAILQ_ENTRY(ipmi_device) ipmi_link;
69 TAILQ_HEAD(,ipmi_request) ipmi_completed_requests;
70 struct selinfo ipmi_select;
71 struct ipmi_softc *ipmi_softc;
67struct ipmi_device {
68 TAILQ_ENTRY(ipmi_device) ipmi_link;
69 TAILQ_HEAD(,ipmi_request) ipmi_completed_requests;
70 struct selinfo ipmi_select;
71 struct ipmi_softc *ipmi_softc;
72 struct cdev *ipmi_cdev;
73 int ipmi_open;
74 int ipmi_closing;
75 int ipmi_requests;
76 u_char ipmi_address; /* IPMB address. */
77 u_char ipmi_lun;
78};
79
80struct ipmi_kcs {
81};

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

98 int ipmi_io_rid;
99 int ipmi_io_type;
100 struct resource *ipmi_io_res[MAX_RES];
101 int ipmi_io_spacing;
102 int ipmi_irq_rid;
103 struct resource *ipmi_irq_res;
104 void *ipmi_irq;
105 int ipmi_detaching;
72 int ipmi_closing;
73 int ipmi_requests;
74 u_char ipmi_address; /* IPMB address. */
75 u_char ipmi_lun;
76};
77
78struct ipmi_kcs {
79};

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

96 int ipmi_io_rid;
97 int ipmi_io_type;
98 struct resource *ipmi_io_res[MAX_RES];
99 int ipmi_io_spacing;
100 int ipmi_irq_rid;
101 struct resource *ipmi_irq_res;
102 void *ipmi_irq;
103 int ipmi_detaching;
106#ifdef CLONING
107 int ipmi_cloning;
108 u_int ipmi_cdev_mask;
109 TAILQ_HEAD(,ipmi_device) ipmi_cdevs;
110#else
111 struct ipmi_device ipmi_idev;
112#endif
104 int ipmi_opened;
105 struct cdev *ipmi_cdev;
113 TAILQ_HEAD(,ipmi_request) ipmi_pending_requests;
106 TAILQ_HEAD(,ipmi_request) ipmi_pending_requests;
114#ifdef CLONING
115 eventhandler_tag ipmi_clone_tag;
116#endif
117 eventhandler_tag ipmi_watchdog_tag;
118 struct intr_config_hook ipmi_ich;
119 struct mtx ipmi_lock;
120 struct cv ipmi_request_added;
121 struct proc *ipmi_kthread;
122 driver_intr_t *ipmi_intr;
123 int (*ipmi_startup)(struct ipmi_softc *);
124 int (*ipmi_enqueue_request)(struct ipmi_softc *, struct ipmi_request *);

--- 142 unchanged lines hidden ---
107 eventhandler_tag ipmi_watchdog_tag;
108 struct intr_config_hook ipmi_ich;
109 struct mtx ipmi_lock;
110 struct cv ipmi_request_added;
111 struct proc *ipmi_kthread;
112 driver_intr_t *ipmi_intr;
113 int (*ipmi_startup)(struct ipmi_softc *);
114 int (*ipmi_enqueue_request)(struct ipmi_softc *, struct ipmi_request *);

--- 142 unchanged lines hidden ---