Module Name:    src
Committed By:   riastradh
Date:           Wed Dec  4 15:25:30 UTC 2024

Modified Files:
        src/sys/sys: ipmi.h

Log Message:
sys/ipmi.h: Tidy header file.

Need <sys/ioccom.h> for _IOWR/_IOW/_IOR.  Nix trailing whitespace.

Cleanup in preparation for:

PR kern/58869: ipmi(4) holds sc_cmd_mtx across copyout, needed for
wdog tickle


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/sys/ipmi.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/ipmi.h
diff -u src/sys/sys/ipmi.h:1.1 src/sys/sys/ipmi.h:1.2
--- src/sys/sys/ipmi.h:1.1	Sat May 18 08:38:00 2019
+++ src/sys/sys/ipmi.h	Wed Dec  4 15:25:30 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipmi.h,v 1.1 2019/05/18 08:38:00 mlelstv Exp $	*/
+/*	$NetBSD: ipmi.h,v 1.2 2024/12/04 15:25:30 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -32,6 +32,8 @@
 #ifndef _SYS_IPMI_H_
 #define	_SYS_IPMI_H_
 
+#include <sys/ioccom.h>
+
 #define	IPMI_MAX_ADDR_SIZE		0x20
 #define IPMI_MAX_RX			1024
 #define	IPMI_BMC_SLAVE_ADDR		0x20
@@ -99,7 +101,7 @@ struct ipmi_ipmb_addr {
 #define IPMICTL_SET_GETS_EVENTS_CMD     _IOW('i', 16, int)
 #define IPMICTL_SET_MY_ADDRESS_CMD      _IOW('i', 17, unsigned int)
 #define IPMICTL_GET_MY_ADDRESS_CMD      _IOR('i', 18, unsigned int)
-#define IPMICTL_SET_MY_LUN_CMD          _IOW('i', 19, unsigned int) 
+#define IPMICTL_SET_MY_LUN_CMD          _IOW('i', 19, unsigned int)
 #define IPMICTL_GET_MY_LUN_CMD          _IOR('i', 20, unsigned int)
 
 #endif /* !_SYS_IPMI_H_ */

Reply via email to