diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
| commit | 5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c (patch) | |
| tree | 2f83dc6949763e77cf6422e696dc6146684dcf4e /include/linux/ipmi.h | |
| parent | f2c853bca542f5ac0b036377637192a74f2091c2 (diff) | |
| parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'include/linux/ipmi.h')
| -rw-r--r-- | include/linux/ipmi.h | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/include/linux/ipmi.h b/include/linux/ipmi.h index 596ca6130159..938d55b813a5 100644 --- a/include/linux/ipmi.h +++ b/include/linux/ipmi.h | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #define __LINUX_IPMI_H | 35 | #define __LINUX_IPMI_H |
| 36 | 36 | ||
| 37 | #include <linux/ipmi_msgdefs.h> | 37 | #include <linux/ipmi_msgdefs.h> |
| 38 | #include <linux/compiler.h> | ||
| 38 | 39 | ||
| 39 | /* | 40 | /* |
| 40 | * This file describes an interface to an IPMI driver. You have to | 41 | * This file describes an interface to an IPMI driver. You have to |
| @@ -241,7 +242,8 @@ struct ipmi_recv_msg | |||
| 241 | /* The user_msg_data is the data supplied when a message was | 242 | /* The user_msg_data is the data supplied when a message was |
| 242 | sent, if this is a response to a sent message. If this is | 243 | sent, if this is a response to a sent message. If this is |
| 243 | not a response to a sent message, then user_msg_data will | 244 | not a response to a sent message, then user_msg_data will |
| 244 | be NULL. */ | 245 | be NULL. If the user above is NULL, then this will be the |
| 246 | intf. */ | ||
| 245 | void *user_msg_data; | 247 | void *user_msg_data; |
| 246 | 248 | ||
| 247 | /* Call this when done with the message. It will presumably free | 249 | /* Call this when done with the message. It will presumably free |
| @@ -298,13 +300,19 @@ void ipmi_get_version(ipmi_user_t user, | |||
| 298 | this user, so it will affect all users of this interface. This is | 300 | this user, so it will affect all users of this interface. This is |
| 299 | so some initialization code can come in and do the OEM-specific | 301 | so some initialization code can come in and do the OEM-specific |
| 300 | things it takes to determine your address (if not the BMC) and set | 302 | things it takes to determine your address (if not the BMC) and set |
| 301 | it for everyone else. */ | 303 | it for everyone else. Note that each channel can have its own address. */ |
| 302 | void ipmi_set_my_address(ipmi_user_t user, | 304 | int ipmi_set_my_address(ipmi_user_t user, |
| 303 | unsigned char address); | 305 | unsigned int channel, |
| 304 | unsigned char ipmi_get_my_address(ipmi_user_t user); | 306 | unsigned char address); |
| 305 | void ipmi_set_my_LUN(ipmi_user_t user, | 307 | int ipmi_get_my_address(ipmi_user_t user, |
| 306 | unsigned char LUN); | 308 | unsigned int channel, |
| 307 | unsigned char ipmi_get_my_LUN(ipmi_user_t user); | 309 | unsigned char *address); |
| 310 | int ipmi_set_my_LUN(ipmi_user_t user, | ||
| 311 | unsigned int channel, | ||
| 312 | unsigned char LUN); | ||
| 313 | int ipmi_get_my_LUN(ipmi_user_t user, | ||
| 314 | unsigned int channel, | ||
| 315 | unsigned char *LUN); | ||
| 308 | 316 | ||
| 309 | /* | 317 | /* |
| 310 | * Like ipmi_request, but lets you specify the number of retries and | 318 | * Like ipmi_request, but lets you specify the number of retries and |
| @@ -585,6 +593,16 @@ struct ipmi_cmdspec | |||
| 585 | * things it takes to determine your address (if not the BMC) and set | 593 | * things it takes to determine your address (if not the BMC) and set |
| 586 | * it for everyone else. You should probably leave the LUN alone. | 594 | * it for everyone else. You should probably leave the LUN alone. |
| 587 | */ | 595 | */ |
| 596 | struct ipmi_channel_lun_address_set | ||
| 597 | { | ||
| 598 | unsigned short channel; | ||
| 599 | unsigned char value; | ||
| 600 | }; | ||
| 601 | #define IPMICTL_SET_MY_CHANNEL_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 24, struct ipmi_channel_lun_address_set) | ||
| 602 | #define IPMICTL_GET_MY_CHANNEL_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 25, struct ipmi_channel_lun_address_set) | ||
| 603 | #define IPMICTL_SET_MY_CHANNEL_LUN_CMD _IOR(IPMI_IOC_MAGIC, 26, struct ipmi_channel_lun_address_set) | ||
| 604 | #define IPMICTL_GET_MY_CHANNEL_LUN_CMD _IOR(IPMI_IOC_MAGIC, 27, struct ipmi_channel_lun_address_set) | ||
| 605 | /* Legacy interfaces, these only set IPMB 0. */ | ||
| 588 | #define IPMICTL_SET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 17, unsigned int) | 606 | #define IPMICTL_SET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 17, unsigned int) |
| 589 | #define IPMICTL_GET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 18, unsigned int) | 607 | #define IPMICTL_GET_MY_ADDRESS_CMD _IOR(IPMI_IOC_MAGIC, 18, unsigned int) |
| 590 | #define IPMICTL_SET_MY_LUN_CMD _IOR(IPMI_IOC_MAGIC, 19, unsigned int) | 608 | #define IPMICTL_SET_MY_LUN_CMD _IOR(IPMI_IOC_MAGIC, 19, unsigned int) |
