summaryrefslogtreecommitdiff
path: root/sys/dev/ipmivar.h
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2016-01-11 14:29:41 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2016-01-11 14:29:41 +0000
commit39b295d59bf805f6eb1d63e272e364feb1e5c450 (patch)
treef15058354797b4da61d08b3a11abd01653e0e48f /sys/dev/ipmivar.h
parent87879808a606e25d49964357b9e85b8dc4d188b5 (diff)
Allocate command data buffer on softc and use it from both ipmi_sendcmd()
and ipmi_recvcmd(). No functional changes.
Diffstat (limited to 'sys/dev/ipmivar.h')
-rw-r--r--sys/dev/ipmivar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ipmivar.h b/sys/dev/ipmivar.h
index fd57af76363..e1bc7a5afeb 100644
--- a/sys/dev/ipmivar.h
+++ b/sys/dev/ipmivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmivar.h,v 1.23 2016/01/11 14:08:58 uebayasi Exp $ */
+/* $OpenBSD: ipmivar.h,v 1.24 2016/01/11 14:29:40 uebayasi Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -42,6 +42,8 @@
#define IPMI_IF_SMIC_NREGS 3
#define IPMI_IF_BT_NREGS 3
+#define IPMI_MAX_RX 1024 /* XXX ipmi_linux.h */
+
struct ipmi_thread;
struct ipmi_softc;
struct ipmi_cmd;
@@ -70,7 +72,7 @@ struct ipmi_attach_args {
struct ipmi_if {
const char *name;
int nregs;
- void *(*buildmsg)(struct ipmi_cmd *);
+ void (*buildmsg)(struct ipmi_cmd *);
int (*sendmsg)(struct ipmi_softc *, int, const u_int8_t *);
int (*recvmsg)(struct ipmi_softc *, int, int *, u_int8_t *);
int (*reset)(struct ipmi_softc *);
@@ -105,6 +107,7 @@ struct ipmi_softc {
bus_space_handle_t sc_ioh;
int sc_btseq;
+ u_int8_t sc_buf[IPMI_MAX_RX + 16];
struct ipmi_cmd *sc_cmd;
int sc_wdog_period;