115 |
typedef int (*c7200_pa_unset_nio_fn)(c7200_t *router,u_int pa_bay, |
typedef int (*c7200_pa_unset_nio_fn)(c7200_t *router,u_int pa_bay, |
116 |
u_int port_id); |
u_int port_id); |
117 |
|
|
118 |
|
/* Prototype of NM NIO show info function */ |
119 |
|
typedef int (*c7200_pa_show_info_fn)(c7200_t *router,u_int pa_bay); |
120 |
|
|
121 |
/* C7200 Port Adapter Driver */ |
/* C7200 Port Adapter Driver */ |
122 |
struct c7200_pa_driver { |
struct c7200_pa_driver { |
123 |
char *dev_type; |
char *dev_type; |
126 |
c7200_pa_shutdown_fn pa_shutdown; |
c7200_pa_shutdown_fn pa_shutdown; |
127 |
c7200_pa_set_nio_fn pa_set_nio; |
c7200_pa_set_nio_fn pa_set_nio; |
128 |
c7200_pa_unset_nio_fn pa_unset_nio; |
c7200_pa_unset_nio_fn pa_unset_nio; |
129 |
|
c7200_pa_show_info_fn pa_show_info; |
130 |
}; |
}; |
131 |
|
|
132 |
/* C7200 NIO binding to a slot/port */ |
/* C7200 NIO binding to a slot/port */ |
285 |
/* Shutdown all PA of a router */ |
/* Shutdown all PA of a router */ |
286 |
int c7200_pa_shutdown_all(c7200_t *router); |
int c7200_pa_shutdown_all(c7200_t *router); |
287 |
|
|
288 |
|
/* Show info about all NMs */ |
289 |
|
int c7200_pa_show_all_info(c7200_t *router); |
290 |
|
|
291 |
/* Create a Port Adapter (command line) */ |
/* Create a Port Adapter (command line) */ |
292 |
int c7200_cmd_pa_create(c7200_t *router,char *str); |
int c7200_cmd_pa_create(c7200_t *router,char *str); |
293 |
|
|