aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rio.h')
-rw-r--r--include/linux/rio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rio.h b/include/linux/rio.h
index 8d9e66dc7969..4fa5e3d2b117 100644
--- a/include/linux/rio.h
+++ b/include/linux/rio.h
@@ -218,6 +218,10 @@ struct rio_net {
218 unsigned char id; /* RIO network ID */ 218 unsigned char id; /* RIO network ID */
219}; 219};
220 220
221/* Definitions used by switch sysfs initialization callback */
222#define RIO_SW_SYSFS_CREATE 1 /* Create switch attributes */
223#define RIO_SW_SYSFS_REMOVE 0 /* Remove switch attributes */
224
221/** 225/**
222 * struct rio_switch - RIO switch info 226 * struct rio_switch - RIO switch info
223 * @node: Node in global list of switches 227 * @node: Node in global list of switches
@@ -234,6 +238,7 @@ struct rio_net {
234 * @get_domain: Callback for switch-specific domain get function 238 * @get_domain: Callback for switch-specific domain get function
235 * @em_init: Callback for switch-specific error management initialization function 239 * @em_init: Callback for switch-specific error management initialization function
236 * @em_handle: Callback for switch-specific error management handler function 240 * @em_handle: Callback for switch-specific error management handler function
241 * @sw_sysfs: Callback that initializes switch-specific sysfs attributes
237 * @nextdev: Array of per-port pointers to the next attached device 242 * @nextdev: Array of per-port pointers to the next attached device
238 */ 243 */
239struct rio_switch { 244struct rio_switch {
@@ -256,6 +261,7 @@ struct rio_switch {
256 u8 *sw_domain); 261 u8 *sw_domain);
257 int (*em_init) (struct rio_dev *dev); 262 int (*em_init) (struct rio_dev *dev);
258 int (*em_handle) (struct rio_dev *dev, u8 swport); 263 int (*em_handle) (struct rio_dev *dev, u8 swport);
264 int (*sw_sysfs) (struct rio_dev *dev, int create);
259 struct rio_dev *nextdev[0]; 265 struct rio_dev *nextdev[0];
260}; 266};
261 267