This repository has been archived on 2022-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
1999-12-02 18:07:38 -05:00
|
|
|
|
|
|
|
#ifndef _RAW1394_PRIVATE_H
|
|
|
|
#define _RAW1394_PRIVATE_H
|
|
|
|
|
|
|
|
struct raw1394_handle {
|
|
|
|
int fd;
|
2000-08-07 20:29:08 -04:00
|
|
|
int protocol_version;
|
1999-12-02 18:07:38 -05:00
|
|
|
unsigned int generation;
|
|
|
|
|
|
|
|
nodeid_t local_id;
|
|
|
|
int num_of_nodes;
|
2000-08-07 20:29:08 -04:00
|
|
|
nodeid_t irm_id;
|
1999-12-02 18:07:38 -05:00
|
|
|
|
|
|
|
bus_reset_handler_t bus_reset_handler;
|
|
|
|
tag_handler_t tag_handler;
|
2000-03-15 22:40:52 -05:00
|
|
|
fcp_handler_t fcp_handler;
|
2000-02-04 18:20:17 -05:00
|
|
|
iso_handler_t iso_handler[64];
|
1999-12-02 18:07:38 -05:00
|
|
|
|
|
|
|
struct raw1394_request req;
|
|
|
|
quadlet_t buffer[2048];
|
2000-04-05 18:41:31 -04:00
|
|
|
|
|
|
|
void *userdata;
|
1999-12-02 18:07:38 -05:00
|
|
|
};
|
|
|
|
|
1999-12-29 17:24:32 -05:00
|
|
|
struct sync_cb_data {
|
|
|
|
int done;
|
|
|
|
int errcode;
|
|
|
|
};
|
|
|
|
|
|
|
|
int _raw1394_sync_cb(struct raw1394_handle*, struct sync_cb_data*, int);
|
|
|
|
|
1999-12-02 18:07:38 -05:00
|
|
|
#define HBUF_SIZE 8192
|
|
|
|
#define CLEAR_REQ(reqp) memset((reqp), 0, sizeof(struct raw1394_request))
|
|
|
|
|
|
|
|
#endif /* _RAW1394_PRIVATE_H */
|