Dan Williams | 14e865b | 2007-12-10 15:11:23 -0500 | [diff] [blame] | 1 | /* Copyright (C) 2007, Red Hat, Inc. */ |
| 2 | |
| 3 | #ifndef _LBS_CMD_H_ |
| 4 | #define _LBS_CMD_H_ |
| 5 | |
| 6 | #include "hostcmd.h" |
| 7 | #include "dev.h" |
| 8 | |
| 9 | #define lbs_cmd(priv, cmdnr, cmd, callback, callback_arg) \ |
Dan Williams | 7ad994d | 2007-12-11 12:33:30 -0500 | [diff] [blame^] | 10 | __lbs_cmd(priv, cmdnr, (struct cmd_header *) &cmd, sizeof(cmd), \ |
| 11 | callback, callback_arg) |
Dan Williams | 14e865b | 2007-12-10 15:11:23 -0500 | [diff] [blame] | 12 | |
Dan Williams | 7ad994d | 2007-12-11 12:33:30 -0500 | [diff] [blame^] | 13 | int __lbs_cmd(struct lbs_private *priv, uint16_t command, |
| 14 | struct cmd_header *in_cmd, int in_cmd_size, |
| 15 | int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *), |
Dan Williams | 14e865b | 2007-12-10 15:11:23 -0500 | [diff] [blame] | 16 | unsigned long callback_arg); |
| 17 | |
| 18 | #endif /* _LBS_CMD_H */ |