From c08200d93dc8cc18ac1458c8487c71f54df2f686 Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Wed, 19 Oct 2005 23:35:54 +0000 Subject: Oops.. part of ipmi_thread fixes ok marco@ --- sys/dev/ipmivar.h | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'sys/dev/ipmivar.h') diff --git a/sys/dev/ipmivar.h b/sys/dev/ipmivar.h index c2d5d3a8e53..376ffdd0dd6 100644 --- a/sys/dev/ipmivar.h +++ b/sys/dev/ipmivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmivar.h,v 1.3 2005/10/18 23:08:23 marco Exp $ */ +/* $OpenBSD: ipmivar.h,v 1.4 2005/10/19 23:35:53 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -38,6 +38,7 @@ #define IPMI_IF_SMIC_NREGS 3 #define IPMI_IF_BT_NREGS 3 +struct ipmi_thread; struct ipmi_softc; struct ipmi_attach_args { @@ -66,19 +67,29 @@ struct ipmi_if { }; struct ipmi_softc { - struct device sc_dev; + struct device sc_dev; - struct ipmi_if *sc_if; /* Interface layer */ - int sc_if_iospacing; /* Spacing of I/O ports */ - int sc_if_rev; /* IPMI Revision */ + struct ipmi_if *sc_if; /* Interface layer */ + int sc_if_iospacing; /* Spacing of I/O ports */ + int sc_if_rev; /* IPMI Revision */ - void *sc_ih; /* Interrupt/IO handles */ - bus_space_tag_t sc_iot; - bus_space_handle_t sc_ioh; + void *sc_ih; /* Interrupt/IO handles */ + bus_space_tag_t sc_iot; + bus_space_handle_t sc_ioh; - int sc_btseq; + int sc_btseq; + + struct ipmi_thread *sc_thread; +}; + +struct ipmi_thread { + struct ipmi_softc *sc; + volatile int running; }; +void ipmi_create_thread(void *); +void ipmi_poll_thread(void *); + int kcs_probe(struct ipmi_softc *); int kcs_reset(struct ipmi_softc *); int kcs_sendmsg(struct ipmi_softc *, int, const u_int8_t *); -- cgit v1.2.3