Deleted Added
full compact
ipmi_kcs.c (162562) ipmi_kcs.c (172836)
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_kcs.c 162562 2006-09-22 22:11:29Z jhb $");
28__FBSDID("$FreeBSD: head/sys/dev/ipmi/ipmi_kcs.c 172836 2007-10-20 23:23:23Z julian $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/condvar.h>
34#include <sys/eventhandler.h>
35#include <sys/kernel.h>
36#include <sys/kthread.h>

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

461 ok = kcs_polled_request(sc, req);
462 if (ok)
463 req->ir_error = 0;
464 else
465 req->ir_error = EIO;
466 ipmi_complete_request(sc, req);
467 }
468 IPMI_UNLOCK(sc);
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/condvar.h>
34#include <sys/eventhandler.h>
35#include <sys/kernel.h>
36#include <sys/kthread.h>

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

461 ok = kcs_polled_request(sc, req);
462 if (ok)
463 req->ir_error = 0;
464 else
465 req->ir_error = EIO;
466 ipmi_complete_request(sc, req);
467 }
468 IPMI_UNLOCK(sc);
469 kthread_exit(0);
469 kproc_exit(0);
470}
471
472static int
473kcs_startup(struct ipmi_softc *sc)
474{
475
470}
471
472static int
473kcs_startup(struct ipmi_softc *sc)
474{
475
476 return (kthread_create(kcs_loop, sc, &sc->ipmi_kthread, 0, 0, "%s: kcs",
476 return (kproc_create(kcs_loop, sc, &sc->ipmi_kthread, 0, 0, "%s: kcs",
477 device_get_nameunit(sc->ipmi_dev)));
478}
479
480int
481ipmi_kcs_attach(struct ipmi_softc *sc)
482{
483 int status;
484

--- 123 unchanged lines hidden ---
477 device_get_nameunit(sc->ipmi_dev)));
478}
479
480int
481ipmi_kcs_attach(struct ipmi_softc *sc)
482{
483 int status;
484

--- 123 unchanged lines hidden ---