diff options
Diffstat (limited to 'drivers/ieee1394/nodemgr.h')
-rw-r--r-- | drivers/ieee1394/nodemgr.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/drivers/ieee1394/nodemgr.h b/drivers/ieee1394/nodemgr.h index 4147303ad448..e7ac683c72c7 100644 --- a/drivers/ieee1394/nodemgr.h +++ b/drivers/ieee1394/nodemgr.h | |||
@@ -153,30 +153,10 @@ static inline int hpsb_node_entry_valid(struct node_entry *ne) | |||
153 | { | 153 | { |
154 | return ne->generation == get_hpsb_generation(ne->host); | 154 | return ne->generation == get_hpsb_generation(ne->host); |
155 | } | 155 | } |
156 | 156 | void hpsb_node_fill_packet(struct node_entry *ne, struct hpsb_packet *packet); | |
157 | /* | ||
158 | * This will fill in the given, pre-initialised hpsb_packet with the current | ||
159 | * information from the node entry (host, node ID, generation number). It will | ||
160 | * return false if the node owning the GUID is not accessible (and not modify | ||
161 | * the hpsb_packet) and return true otherwise. | ||
162 | * | ||
163 | * Note that packet sending may still fail in hpsb_send_packet if a bus reset | ||
164 | * happens while you are trying to set up the packet (due to obsolete generation | ||
165 | * number). It will at least reliably fail so that you don't accidentally and | ||
166 | * unknowingly send your packet to the wrong node. | ||
167 | */ | ||
168 | void hpsb_node_fill_packet(struct node_entry *ne, struct hpsb_packet *pkt); | ||
169 | |||
170 | int hpsb_node_read(struct node_entry *ne, u64 addr, | ||
171 | quadlet_t *buffer, size_t length); | ||
172 | int hpsb_node_write(struct node_entry *ne, u64 addr, | 157 | int hpsb_node_write(struct node_entry *ne, u64 addr, |
173 | quadlet_t *buffer, size_t length); | 158 | quadlet_t *buffer, size_t length); |
174 | int hpsb_node_lock(struct node_entry *ne, u64 addr, | 159 | int nodemgr_for_each_host(void *data, int (*cb)(struct hpsb_host *, void *)); |
175 | int extcode, quadlet_t *data, quadlet_t arg); | ||
176 | |||
177 | /* Iterate the hosts, calling a given function with supplied data for each | ||
178 | * host. */ | ||
179 | int nodemgr_for_each_host(void *__data, int (*cb)(struct hpsb_host *, void *)); | ||
180 | 160 | ||
181 | int init_ieee1394_nodemgr(void); | 161 | int init_ieee1394_nodemgr(void); |
182 | void cleanup_ieee1394_nodemgr(void); | 162 | void cleanup_ieee1394_nodemgr(void); |