Deleted Added
full compact
ipmi.c (200666) ipmi.c (220614)
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

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

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
27#include <sys/cdefs.h>
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi.c 200666 2009-12-18 12:10:42Z ru $");
28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi.c 220614 2011-04-14 07:14:22Z ru $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/condvar.h>
34#include <sys/conf.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

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

708 return;
709 } else if (req->ir_replylen < 5) {
710 device_printf(dev, "Short reply for GET_DEVICE_ID: %d\n",
711 req->ir_replylen);
712 ipmi_free_request(req);
713 return;
714 }
715
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/condvar.h>
34#include <sys/conf.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>

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

708 return;
709 } else if (req->ir_replylen < 5) {
710 device_printf(dev, "Short reply for GET_DEVICE_ID: %d\n",
711 req->ir_replylen);
712 ipmi_free_request(req);
713 return;
714 }
715
716 device_printf(dev, "IPMI device rev. %d, firmware rev. %d.%d, "
716 device_printf(dev, "IPMI device rev. %d, firmware rev. %d.%d%d, "
717 "version %d.%d\n",
718 req->ir_reply[1] & 0x0f,
717 "version %d.%d\n",
718 req->ir_reply[1] & 0x0f,
719 req->ir_reply[2] & 0x0f, req->ir_reply[4],
719 req->ir_reply[2] & 0x7f, req->ir_reply[3] >> 4, req->ir_reply[3] & 0x0f,
720 req->ir_reply[4] & 0x0f, req->ir_reply[4] >> 4);
721
722 ipmi_free_request(req);
723
724 req = ipmi_alloc_driver_request(IPMI_ADDR(IPMI_APP_REQUEST, 0),
725 IPMI_CLEAR_FLAGS, 1, 0);
726
727 ipmi_submit_driver_request(sc, req, 0);

--- 190 unchanged lines hidden ---
720 req->ir_reply[4] & 0x0f, req->ir_reply[4] >> 4);
721
722 ipmi_free_request(req);
723
724 req = ipmi_alloc_driver_request(IPMI_ADDR(IPMI_APP_REQUEST, 0),
725 IPMI_CLEAR_FLAGS, 1, 0);
726
727 ipmi_submit_driver_request(sc, req, 0);

--- 190 unchanged lines hidden ---