Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 1 | #ifndef ISCSI_TARGET_TPG_H |
| 2 | #define ISCSI_TARGET_TPG_H |
| 3 | |
| 4 | extern struct iscsi_portal_group *iscsit_alloc_portal_group(struct iscsi_tiqn *, u16); |
| 5 | extern int iscsit_load_discovery_tpg(void); |
| 6 | extern void iscsit_release_discovery_tpg(void); |
| 7 | extern struct iscsi_portal_group *iscsit_get_tpg_from_np(struct iscsi_tiqn *, |
Nicholas Bellinger | d381a80 | 2013-08-15 13:40:17 -0700 | [diff] [blame] | 8 | struct iscsi_np *, struct iscsi_tpg_np **); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 9 | extern int iscsit_get_tpg(struct iscsi_portal_group *); |
| 10 | extern void iscsit_put_tpg(struct iscsi_portal_group *); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 11 | extern void iscsit_tpg_dump_params(struct iscsi_portal_group *); |
| 12 | extern int iscsit_tpg_add_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *); |
| 13 | extern int iscsit_tpg_del_portal_group(struct iscsi_tiqn *, struct iscsi_portal_group *, |
| 14 | int); |
| 15 | extern int iscsit_tpg_enable_portal_group(struct iscsi_portal_group *); |
| 16 | extern int iscsit_tpg_disable_portal_group(struct iscsi_portal_group *, int); |
| 17 | extern struct iscsi_node_acl *iscsit_tpg_add_initiator_node_acl( |
| 18 | struct iscsi_portal_group *, const char *, u32); |
| 19 | extern void iscsit_tpg_del_initiator_node_acl(struct iscsi_portal_group *, |
| 20 | struct se_node_acl *); |
| 21 | extern struct iscsi_node_attrib *iscsit_tpg_get_node_attrib(struct iscsi_session *); |
| 22 | extern void iscsit_tpg_del_external_nps(struct iscsi_tpg_np *); |
| 23 | extern struct iscsi_tpg_np *iscsit_tpg_locate_child_np(struct iscsi_tpg_np *, int); |
| 24 | extern struct iscsi_tpg_np *iscsit_tpg_add_network_portal(struct iscsi_portal_group *, |
| 25 | struct __kernel_sockaddr_storage *, char *, struct iscsi_tpg_np *, |
| 26 | int); |
| 27 | extern int iscsit_tpg_del_network_portal(struct iscsi_portal_group *, |
| 28 | struct iscsi_tpg_np *); |
| 29 | extern int iscsit_tpg_set_initiator_node_queue_depth(struct iscsi_portal_group *, |
| 30 | unsigned char *, u32, int); |
| 31 | extern int iscsit_ta_authentication(struct iscsi_portal_group *, u32); |
| 32 | extern int iscsit_ta_login_timeout(struct iscsi_portal_group *, u32); |
| 33 | extern int iscsit_ta_netif_timeout(struct iscsi_portal_group *, u32); |
| 34 | extern int iscsit_ta_generate_node_acls(struct iscsi_portal_group *, u32); |
| 35 | extern int iscsit_ta_default_cmdsn_depth(struct iscsi_portal_group *, u32); |
| 36 | extern int iscsit_ta_cache_dynamic_acls(struct iscsi_portal_group *, u32); |
| 37 | extern int iscsit_ta_demo_mode_write_protect(struct iscsi_portal_group *, u32); |
| 38 | extern int iscsit_ta_prod_mode_write_protect(struct iscsi_portal_group *, u32); |
Thomas Glanzmann | 4c54b6c | 2013-10-07 23:12:11 +0200 | [diff] [blame] | 39 | extern int iscsit_ta_demo_mode_discovery(struct iscsi_portal_group *, u32); |
Nicholas Bellinger | d1fa7a1 | 2013-11-20 11:57:18 -0800 | [diff] [blame] | 40 | extern int iscsit_ta_default_erl(struct iscsi_portal_group *, u32); |
Sagi Grimberg | 8085176 | 2014-02-19 17:50:20 +0200 | [diff] [blame] | 41 | extern int iscsit_ta_t10_pi(struct iscsi_portal_group *, u32); |
Nicholas Bellinger | 901c04a | 2015-03-29 19:36:16 -0700 | [diff] [blame] | 42 | extern int iscsit_ta_fabric_prot_type(struct iscsi_portal_group *, u32); |
David Disseldorp | a6415cd | 2015-08-01 00:10:12 -0700 | [diff] [blame^] | 43 | extern int iscsit_ta_tpg_enabled_sendtargets(struct iscsi_portal_group *, u32); |
Nicholas Bellinger | e48354c | 2011-07-23 06:43:04 +0000 | [diff] [blame] | 44 | |
| 45 | #endif /* ISCSI_TARGET_TPG_H */ |