diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 9 | ||||
| -rw-r--r-- | include/linux/rio.h | 35 |
2 files changed, 9 insertions, 35 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 8f7c89b20639..ef779c6fc3d7 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -248,12 +248,9 @@ | |||
| 248 | \ | 248 | \ |
| 249 | /* RapidIO route ops */ \ | 249 | /* RapidIO route ops */ \ |
| 250 | .rio_ops : AT(ADDR(.rio_ops) - LOAD_OFFSET) { \ | 250 | .rio_ops : AT(ADDR(.rio_ops) - LOAD_OFFSET) { \ |
| 251 | VMLINUX_SYMBOL(__start_rio_route_ops) = .; \ | 251 | VMLINUX_SYMBOL(__start_rio_switch_ops) = .; \ |
| 252 | *(.rio_route_ops) \ | 252 | *(.rio_switch_ops) \ |
| 253 | VMLINUX_SYMBOL(__end_rio_route_ops) = .; \ | 253 | VMLINUX_SYMBOL(__end_rio_switch_ops) = .; \ |
| 254 | VMLINUX_SYMBOL(__start_rio_em_ops) = .; \ | ||
| 255 | *(.rio_em_ops) \ | ||
| 256 | VMLINUX_SYMBOL(__end_rio_em_ops) = .; \ | ||
| 257 | } \ | 254 | } \ |
| 258 | \ | 255 | \ |
| 259 | TRACEDATA \ | 256 | TRACEDATA \ |
diff --git a/include/linux/rio.h b/include/linux/rio.h index 4ec31f44f406..3d0ac930cbea 100644 --- a/include/linux/rio.h +++ b/include/linux/rio.h | |||
| @@ -320,40 +320,17 @@ struct rio_device_id { | |||
| 320 | }; | 320 | }; |
| 321 | 321 | ||
| 322 | /** | 322 | /** |
| 323 | * struct rio_route_ops - Per-switch route operations | 323 | * struct rio_switch_ops - Per-switch operations |
| 324 | * @vid: RIO vendor ID | 324 | * @vid: RIO vendor ID |
| 325 | * @did: RIO device ID | 325 | * @did: RIO device ID |
| 326 | * @add_hook: Callback that adds a route entry | 326 | * @init_hook: Callback that performs switch device initialization |
| 327 | * @get_hook: Callback that gets a route entry | ||
| 328 | * @clr_hook: Callback that clears a switch route table (may be NULL) | ||
| 329 | * | 327 | * |
| 330 | * Defines the operations that are necessary to manipulate the route | 328 | * Defines the operations that are necessary to initialize/control |
| 331 | * tables for a particular RIO switch device. | 329 | * a particular RIO switch device. |
| 332 | */ | 330 | */ |
| 333 | struct rio_route_ops { | 331 | struct rio_switch_ops { |
| 334 | u16 vid, did; | 332 | u16 vid, did; |
| 335 | int (*add_hook) (struct rio_mport * mport, u16 destid, u8 hopcount, | 333 | int (*init_hook) (struct rio_dev *rdev, int do_enum); |
| 336 | u16 table, u16 route_destid, u8 route_port); | ||
| 337 | int (*get_hook) (struct rio_mport * mport, u16 destid, u8 hopcount, | ||
| 338 | u16 table, u16 route_destid, u8 * route_port); | ||
| 339 | int (*clr_hook) (struct rio_mport *mport, u16 destid, u8 hopcount, | ||
| 340 | u16 table); | ||
| 341 | }; | ||
| 342 | |||
| 343 | /** | ||
| 344 | * struct rio_em_ops - Per-switch error management operations | ||
| 345 | * @vid: RIO vendor ID | ||
| 346 | * @did: RIO device ID | ||
| 347 | * @init_hook: Switch specific error management initialization (may be NULL) | ||
| 348 | * @handler_hook: Switch specific error management handler (may be NULL) | ||
| 349 | * | ||
| 350 | * Defines the operations that are necessary to initialize and handle | ||
| 351 | * error management events for a particular RIO switch device. | ||
| 352 | */ | ||
| 353 | struct rio_em_ops { | ||
| 354 | u16 vid, did; | ||
| 355 | int (*init_hook) (struct rio_dev *dev); | ||
| 356 | int (*handler_hook) (struct rio_dev *dev, u8 swport); | ||
| 357 | }; | 334 | }; |
| 358 | 335 | ||
| 359 | union rio_pw_msg { | 336 | union rio_pw_msg { |
