Trivial whitespace normalization in ieee1394.h and raw1394.h
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
03faa97445
commit
d4e754165e
240
src/raw1394.h
240
src/raw1394.h
|
@ -54,26 +54,26 @@ typedef u_int16_t arm_length_t;
|
||||||
typedef struct raw1394_handle *raw1394handle_t;
|
typedef struct raw1394_handle *raw1394handle_t;
|
||||||
|
|
||||||
typedef struct raw1394_arm_request {
|
typedef struct raw1394_arm_request {
|
||||||
nodeid_t destination_nodeid;
|
nodeid_t destination_nodeid;
|
||||||
nodeid_t source_nodeid;
|
nodeid_t source_nodeid;
|
||||||
nodeaddr_t destination_offset;
|
nodeaddr_t destination_offset;
|
||||||
u_int8_t tlabel;
|
u_int8_t tlabel;
|
||||||
u_int8_t tcode;
|
u_int8_t tcode;
|
||||||
u_int8_t extended_transaction_code;
|
u_int8_t extended_transaction_code;
|
||||||
u_int32_t generation;
|
u_int32_t generation;
|
||||||
arm_length_t buffer_length;
|
arm_length_t buffer_length;
|
||||||
byte_t *buffer;
|
byte_t *buffer;
|
||||||
} *raw1394_arm_request_t;
|
} *raw1394_arm_request_t;
|
||||||
|
|
||||||
typedef struct raw1394_arm_response {
|
typedef struct raw1394_arm_response {
|
||||||
int response_code;
|
int response_code;
|
||||||
arm_length_t buffer_length;
|
arm_length_t buffer_length;
|
||||||
byte_t *buffer;
|
byte_t *buffer;
|
||||||
} *raw1394_arm_response_t;
|
} *raw1394_arm_response_t;
|
||||||
|
|
||||||
typedef struct raw1394_arm_request_response {
|
typedef struct raw1394_arm_request_response {
|
||||||
struct raw1394_arm_request *request;
|
struct raw1394_arm_request *request;
|
||||||
struct raw1394_arm_response *response;
|
struct raw1394_arm_response *response;
|
||||||
} *raw1394_arm_request_response_t;
|
} *raw1394_arm_request_response_t;
|
||||||
|
|
||||||
/* new ISO API */
|
/* new ISO API */
|
||||||
|
@ -166,12 +166,12 @@ typedef enum raw1394_iso_disposition (*raw1394_iso_recv_handler_t)(
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_xmit_init(raw1394handle_t handle,
|
int raw1394_iso_xmit_init(raw1394handle_t handle,
|
||||||
raw1394_iso_xmit_handler_t handler,
|
raw1394_iso_xmit_handler_t handler,
|
||||||
unsigned int buf_packets,
|
unsigned int buf_packets,
|
||||||
unsigned int max_packet_size,
|
unsigned int max_packet_size,
|
||||||
unsigned char channel,
|
unsigned char channel,
|
||||||
enum raw1394_iso_speed speed,
|
enum raw1394_iso_speed speed,
|
||||||
int irq_interval);
|
int irq_interval);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_recv_init - initialize isochronous reception
|
* raw1394_iso_recv_init - initialize isochronous reception
|
||||||
|
@ -190,12 +190,12 @@ int raw1394_iso_xmit_init(raw1394handle_t handle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_recv_init(raw1394handle_t handle,
|
int raw1394_iso_recv_init(raw1394handle_t handle,
|
||||||
raw1394_iso_recv_handler_t handler,
|
raw1394_iso_recv_handler_t handler,
|
||||||
unsigned int buf_packets,
|
unsigned int buf_packets,
|
||||||
unsigned int max_packet_size,
|
unsigned int max_packet_size,
|
||||||
unsigned char channel,
|
unsigned char channel,
|
||||||
enum raw1394_iso_dma_recv_mode mode,
|
enum raw1394_iso_dma_recv_mode mode,
|
||||||
int irq_interval);
|
int irq_interval);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_multichannel_recv_init - initialize multi-channel iso reception
|
* raw1394_iso_multichannel_recv_init - initialize multi-channel iso reception
|
||||||
|
@ -211,10 +211,10 @@ int raw1394_iso_recv_init(raw1394handle_t handle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_multichannel_recv_init(raw1394handle_t handle,
|
int raw1394_iso_multichannel_recv_init(raw1394handle_t handle,
|
||||||
raw1394_iso_recv_handler_t handler,
|
raw1394_iso_recv_handler_t handler,
|
||||||
unsigned int buf_packets,
|
unsigned int buf_packets,
|
||||||
unsigned int max_packet_size,
|
unsigned int max_packet_size,
|
||||||
int irq_interval);
|
int irq_interval);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_recv_listen_channel - listen to a specific channel in multi-channel mode
|
* raw1394_iso_recv_listen_channel - listen to a specific channel in multi-channel mode
|
||||||
|
@ -226,7 +226,7 @@ int raw1394_iso_multichannel_recv_init(raw1394handle_t handle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_recv_listen_channel(raw1394handle_t handle,
|
int raw1394_iso_recv_listen_channel(raw1394handle_t handle,
|
||||||
unsigned char channel);
|
unsigned char channel);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_recv_unlisten_channel - stop listening to a specific channel in multi-channel mode
|
* raw1394_iso_recv_unlisten_channel - stop listening to a specific channel in multi-channel mode
|
||||||
|
@ -236,7 +236,7 @@ int raw1394_iso_recv_listen_channel(raw1394handle_t handle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_recv_unlisten_channel(raw1394handle_t handle,
|
int raw1394_iso_recv_unlisten_channel(raw1394handle_t handle,
|
||||||
unsigned char channel);
|
unsigned char channel);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_recv_set_channel_mask - listen or unlisten to a whole bunch of channels at once
|
* raw1394_iso_recv_set_channel_mask - listen or unlisten to a whole bunch of channels at once
|
||||||
|
@ -261,7 +261,7 @@ int raw1394_iso_recv_set_channel_mask(raw1394handle_t handle, u_int64_t mask);
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_xmit_start(raw1394handle_t handle, int start_on_cycle,
|
int raw1394_iso_xmit_start(raw1394handle_t handle, int start_on_cycle,
|
||||||
int prebuffer_packets);
|
int prebuffer_packets);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_recv_start - begin isochronous reception
|
* raw1394_iso_recv_start - begin isochronous reception
|
||||||
|
@ -274,7 +274,7 @@ int raw1394_iso_xmit_start(raw1394handle_t handle, int start_on_cycle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle,
|
int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle,
|
||||||
int tag_mask, int sync);
|
int tag_mask, int sync);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_xmit_write - alternative blocking-write API for ISO transmission
|
* raw1394_iso_xmit_write - alternative blocking-write API for ISO transmission
|
||||||
|
@ -292,8 +292,8 @@ int raw1394_iso_recv_start(raw1394handle_t handle, int start_on_cycle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data,
|
int raw1394_iso_xmit_write(raw1394handle_t handle, unsigned char *data,
|
||||||
unsigned int len, unsigned char tag,
|
unsigned int len, unsigned char tag,
|
||||||
unsigned char sy);
|
unsigned char sy);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_iso_xmit_sync - wait until all queued packets have been sent
|
* raw1394_iso_xmit_sync - wait until all queued packets have been sent
|
||||||
|
@ -475,7 +475,7 @@ raw1394handle_t raw1394_new_handle_on_port(int port);
|
||||||
*
|
*
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_busreset_notify (raw1394handle_t handle, int off_on_switch);
|
int raw1394_busreset_notify(raw1394handle_t handle, int off_on_switch);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_get_fd - get the communication file descriptor
|
* raw1394_get_fd - get the communication file descriptor
|
||||||
|
@ -535,9 +535,8 @@ nodeid_t raw1394_get_irm_id(raw1394handle_t handle);
|
||||||
* raw1394_get_nodecount - get number of nodes on the bus
|
* raw1394_get_nodecount - get number of nodes on the bus
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
*
|
*
|
||||||
* Since the root node always has
|
* Since the root node always has the highest node ID, this number can be used
|
||||||
* the highest node ID, this number can be used to determine that ID (it's
|
* to determine that ID. (It is LOCAL_BUS|(count - 1).)
|
||||||
* LOCAL_BUS|(count-1)).
|
|
||||||
*
|
*
|
||||||
* Returns: the number of nodes on the bus to which the handle is connected.
|
* Returns: the number of nodes on the bus to which the handle is connected.
|
||||||
* This value can change with every bus reset.
|
* This value can change with every bus reset.
|
||||||
|
@ -545,8 +544,8 @@ nodeid_t raw1394_get_irm_id(raw1394handle_t handle);
|
||||||
int raw1394_get_nodecount(raw1394handle_t handle);
|
int raw1394_get_nodecount(raw1394handle_t handle);
|
||||||
|
|
||||||
struct raw1394_portinfo {
|
struct raw1394_portinfo {
|
||||||
int nodes;
|
int nodes;
|
||||||
char name[32];
|
char name[32];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -568,7 +567,7 @@ struct raw1394_portinfo {
|
||||||
* not into more than @maxports elements.
|
* not into more than @maxports elements.
|
||||||
**/
|
**/
|
||||||
int raw1394_get_port_info(raw1394handle_t handle, struct raw1394_portinfo *pinf,
|
int raw1394_get_port_info(raw1394handle_t handle, struct raw1394_portinfo *pinf,
|
||||||
int maxports);
|
int maxports);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_set_port - choose port for handle
|
* raw1394_set_port - choose port for handle
|
||||||
|
@ -636,7 +635,7 @@ typedef int (*bus_reset_handler_t)(raw1394handle_t, unsigned int generation);
|
||||||
* Returns: the old handler or NULL on failure (sets errno)
|
* Returns: the old handler or NULL on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
bus_reset_handler_t raw1394_set_bus_reset_handler(raw1394handle_t handle,
|
bus_reset_handler_t raw1394_set_bus_reset_handler(raw1394handle_t handle,
|
||||||
bus_reset_handler_t new_h);
|
bus_reset_handler_t new_h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_get_generation - get generation number of handle
|
* raw1394_get_generation - get generation number of handle
|
||||||
|
@ -649,7 +648,7 @@ bus_reset_handler_t raw1394_set_bus_reset_handler(raw1394handle_t handle,
|
||||||
* raw1394_update_generation() has to be used for this.
|
* raw1394_update_generation() has to be used for this.
|
||||||
*
|
*
|
||||||
* Returns: the generation number associated with the handle or UINT_MAX on
|
* Returns: the generation number associated with the handle or UINT_MAX on
|
||||||
* failure.
|
* failure.
|
||||||
**/
|
**/
|
||||||
unsigned int raw1394_get_generation(raw1394handle_t handle);
|
unsigned int raw1394_get_generation(raw1394handle_t handle);
|
||||||
|
|
||||||
|
@ -669,7 +668,7 @@ unsigned int raw1394_get_generation(raw1394handle_t handle);
|
||||||
void raw1394_update_generation(raw1394handle_t handle, unsigned int generation);
|
void raw1394_update_generation(raw1394handle_t handle, unsigned int generation);
|
||||||
|
|
||||||
typedef int (*tag_handler_t)(raw1394handle_t, unsigned long tag,
|
typedef int (*tag_handler_t)(raw1394handle_t, unsigned long tag,
|
||||||
raw1394_errcode_t err);
|
raw1394_errcode_t err);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_set_tag_handler - set request completion handler
|
* raw1394_set_tag_handler - set request completion handler
|
||||||
|
@ -688,11 +687,11 @@ typedef int (*tag_handler_t)(raw1394handle_t, unsigned long tag,
|
||||||
* Returns: the old handler or NULL on failure (sets errno)
|
* Returns: the old handler or NULL on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
tag_handler_t raw1394_set_tag_handler(raw1394handle_t handle,
|
tag_handler_t raw1394_set_tag_handler(raw1394handle_t handle,
|
||||||
tag_handler_t new_h);
|
tag_handler_t new_h);
|
||||||
|
|
||||||
typedef int (*arm_tag_handler_t)(raw1394handle_t handle, unsigned long arm_tag,
|
typedef int (*arm_tag_handler_t)(raw1394handle_t handle, unsigned long arm_tag,
|
||||||
byte_t request_type, unsigned int requested_length,
|
byte_t request_type,
|
||||||
void *data);
|
unsigned int requested_length, void *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_set_arm_tag_handler - set the async request handler
|
* raw1394_set_arm_tag_handler - set the async request handler
|
||||||
|
@ -706,10 +705,10 @@ typedef int (*arm_tag_handler_t)(raw1394handle_t handle, unsigned long arm_tag,
|
||||||
* Returns: old handler or NULL on failure (sets errno)
|
* Returns: old handler or NULL on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
arm_tag_handler_t raw1394_set_arm_tag_handler(raw1394handle_t handle,
|
arm_tag_handler_t raw1394_set_arm_tag_handler(raw1394handle_t handle,
|
||||||
arm_tag_handler_t new_h);
|
arm_tag_handler_t new_h);
|
||||||
|
|
||||||
typedef int (*fcp_handler_t)(raw1394handle_t, nodeid_t nodeid, int response,
|
typedef int (*fcp_handler_t)(raw1394handle_t, nodeid_t nodeid, int response,
|
||||||
size_t length, unsigned char *data);
|
size_t length, unsigned char *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_set_fcp_handler - set FCP handler
|
* raw1394_set_fcp_handler - set FCP handler
|
||||||
|
@ -725,7 +724,8 @@ typedef int (*fcp_handler_t)(raw1394handle_t, nodeid_t nodeid, int response,
|
||||||
*
|
*
|
||||||
* Returns: the old handler or NULL on failure (sets errno)
|
* Returns: the old handler or NULL on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
fcp_handler_t raw1394_set_fcp_handler(raw1394handle_t handle, fcp_handler_t new_h);
|
fcp_handler_t raw1394_set_fcp_handler(raw1394handle_t handle,
|
||||||
|
fcp_handler_t new_h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* typedef req_callback_t - This is the general request handler
|
* typedef req_callback_t - This is the general request handler
|
||||||
|
@ -735,11 +735,11 @@ fcp_handler_t raw1394_set_fcp_handler(raw1394handle_t handle, fcp_handler_t new_
|
||||||
* and the error code of the request.
|
* and the error code of the request.
|
||||||
**/
|
**/
|
||||||
typedef int (*req_callback_t)(raw1394handle_t, void *data,
|
typedef int (*req_callback_t)(raw1394handle_t, void *data,
|
||||||
raw1394_errcode_t err);
|
raw1394_errcode_t err);
|
||||||
|
|
||||||
struct raw1394_reqhandle {
|
struct raw1394_reqhandle {
|
||||||
req_callback_t callback;
|
req_callback_t callback;
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -748,26 +748,26 @@ struct raw1394_reqhandle {
|
||||||
* Used by the default arm-tag handler (arm = address range mapping).
|
* Used by the default arm-tag handler (arm = address range mapping).
|
||||||
* Called when a request has been received.
|
* Called when a request has been received.
|
||||||
**/
|
**/
|
||||||
typedef int (*arm_req_callback_t) (raw1394handle_t,
|
typedef int (*arm_req_callback_t)(raw1394handle_t,
|
||||||
struct raw1394_arm_request_response *arm_req_resp,
|
struct raw1394_arm_request_response *arm_req_resp,
|
||||||
unsigned int requested_length,
|
unsigned int requested_length,
|
||||||
void *pcontext, byte_t request_type);
|
void *pcontext, byte_t request_type);
|
||||||
|
|
||||||
struct raw1394_arm_reqhandle {
|
struct raw1394_arm_reqhandle {
|
||||||
arm_req_callback_t arm_callback;
|
arm_req_callback_t arm_callback;
|
||||||
void *pcontext;
|
void *pcontext;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_arm_register - register an AddressRangeMapping
|
* raw1394_arm_register - register an address range mapping
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
* @start: identifies addressrange
|
* @start: identifies address range
|
||||||
* @length: identifies addressrange
|
* @length: identifies address range
|
||||||
* @initial_value: pointer to buffer containing (if necessary) initial value
|
* @initial_value: pointer to buffer containing (if necessary) initial value
|
||||||
* NULL means undefined
|
* NULL means undefined
|
||||||
* @arm_tag: identifier for arm_tag_handler
|
* @arm_tag: identifier for arm_tag_handler
|
||||||
* (usually pointer to raw1394_arm_reqhandle)
|
* (usually pointer to raw1394_arm_reqhandle)
|
||||||
* @access_rights: access-rights for registered addressrange handled
|
* @access_rights: access-rights for registered address range handled
|
||||||
* by kernel-part. Value is one or more binary or of the
|
* by kernel-part. Value is one or more binary or of the
|
||||||
* following flags - ARM_READ, ARM_WRITE, ARM_LOCK
|
* following flags - ARM_READ, ARM_WRITE, ARM_LOCK
|
||||||
* @notification_options: identifies for which type of request you want
|
* @notification_options: identifies for which type of request you want
|
||||||
|
@ -787,14 +787,14 @@ struct raw1394_arm_reqhandle {
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_arm_register(raw1394handle_t handle, nodeaddr_t start,
|
int raw1394_arm_register(raw1394handle_t handle, nodeaddr_t start,
|
||||||
size_t length, byte_t *initial_value,
|
size_t length, byte_t *initial_value,
|
||||||
octlet_t arm_tag, arm_options_t access_rights,
|
octlet_t arm_tag, arm_options_t access_rights,
|
||||||
arm_options_t notification_options,
|
arm_options_t notification_options,
|
||||||
arm_options_t client_transactions);
|
arm_options_t client_transactions);
|
||||||
/**
|
/**
|
||||||
* raw1394_arm_unregister - unregister an AddressRangeMapping
|
* raw1394_arm_unregister - unregister an address range mapping
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
* @start: identifies addressrange for unregistering
|
* @start: identifies address range for unregistering
|
||||||
* (value of start have to be the same value
|
* (value of start have to be the same value
|
||||||
* used for registering this adressrange)
|
* used for registering this adressrange)
|
||||||
*
|
*
|
||||||
|
@ -805,8 +805,8 @@ int raw1394_arm_unregister(raw1394handle_t handle, nodeaddr_t start);
|
||||||
/**
|
/**
|
||||||
* raw1394_arm_set_buf - set the buffer of an AdressRangeMapping
|
* raw1394_arm_set_buf - set the buffer of an AdressRangeMapping
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
* @start: identifies addressrange
|
* @start: identifies address range
|
||||||
* @length: identifies addressrange
|
* @length: identifies address range
|
||||||
* @buf: pointer to buffer
|
* @buf: pointer to buffer
|
||||||
*
|
*
|
||||||
* This function copies @length bytes from user memory area @buf
|
* This function copies @length bytes from user memory area @buf
|
||||||
|
@ -815,14 +815,14 @@ int raw1394_arm_unregister(raw1394handle_t handle, nodeaddr_t start);
|
||||||
*
|
*
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_arm_set_buf (raw1394handle_t handle, nodeaddr_t start,
|
int raw1394_arm_set_buf(raw1394handle_t handle, nodeaddr_t start,
|
||||||
size_t length, void *buf);
|
size_t length, void *buf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_arm_get_buf - get the buffer of an AdressRangeMapping
|
* raw1394_arm_get_buf - get the buffer of an address range mapping
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
* @start: identifies addressrange
|
* @start: identifies address range
|
||||||
* @length: identifies addressrange
|
* @length: identifies address range
|
||||||
* @buf: pointer to buffer
|
* @buf: pointer to buffer
|
||||||
*
|
*
|
||||||
* This function copies @length bytes from one
|
* This function copies @length bytes from one
|
||||||
|
@ -831,8 +831,8 @@ int raw1394_arm_set_buf (raw1394handle_t handle, nodeaddr_t start,
|
||||||
*
|
*
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_arm_get_buf (raw1394handle_t handle, nodeaddr_t start,
|
int raw1394_arm_get_buf(raw1394handle_t handle, nodeaddr_t start,
|
||||||
size_t length, void *buf);
|
size_t length, void *buf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_echo_request - send an echo request to the driver
|
* raw1394_echo_request - send an echo request to the driver
|
||||||
|
@ -858,7 +858,6 @@ int raw1394_echo_request(raw1394handle_t handle, quadlet_t data);
|
||||||
**/
|
**/
|
||||||
int raw1394_wake_up(raw1394handle_t handle);
|
int raw1394_wake_up(raw1394handle_t handle);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_phy_packet_write - send physical request
|
* raw1394_phy_packet_write - send physical request
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
|
@ -868,7 +867,7 @@ int raw1394_wake_up(raw1394handle_t handle);
|
||||||
*
|
*
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_phy_packet_write (raw1394handle_t handle, quadlet_t data);
|
int raw1394_phy_packet_write(raw1394handle_t handle, quadlet_t data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_phy_packet_write - initiate sending a physical request
|
* raw1394_start_phy_packet_write - initiate sending a physical request
|
||||||
|
@ -881,7 +880,7 @@ int raw1394_phy_packet_write (raw1394handle_t handle, quadlet_t data);
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_phy_packet_write(raw1394handle_t handle,
|
int raw1394_start_phy_packet_write(raw1394handle_t handle,
|
||||||
quadlet_t data, unsigned long tag);
|
quadlet_t data, unsigned long tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_read - initiate a read transaction
|
* raw1394_start_read - initiate a read transaction
|
||||||
|
@ -905,7 +904,7 @@ int raw1394_start_phy_packet_write(raw1394handle_t handle,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_start_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
size_t length, quadlet_t *buffer, unsigned long tag);
|
size_t length, quadlet_t *buffer, unsigned long tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_write - initiate a write transaction
|
* raw1394_start_write - initiate a write transaction
|
||||||
|
@ -929,7 +928,7 @@ int raw1394_start_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_start_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
size_t length, quadlet_t *data, unsigned long tag);
|
size_t length, quadlet_t *data, unsigned long tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_lock - initiate a 32-bit compare-swap lock transaction
|
* raw1394_start_lock - initiate a 32-bit compare-swap lock transaction
|
||||||
|
@ -953,8 +952,8 @@ int raw1394_start_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_start_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
unsigned int extcode, quadlet_t data, quadlet_t arg,
|
unsigned int extcode, quadlet_t data, quadlet_t arg,
|
||||||
quadlet_t *result, unsigned long tag);
|
quadlet_t *result, unsigned long tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_lock64 - initiate a 64-bit compare-swap lock transaction
|
* raw1394_start_lock64 - initiate a 64-bit compare-swap lock transaction
|
||||||
|
@ -978,8 +977,8 @@ int raw1394_start_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_start_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
unsigned int extcode, octlet_t data, octlet_t arg,
|
unsigned int extcode, octlet_t data, octlet_t arg,
|
||||||
octlet_t *result, unsigned long tag);
|
octlet_t *result, unsigned long tag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_async_stream - initiate asynchronous stream
|
* raw1394_start_async_stream - initiate asynchronous stream
|
||||||
|
@ -998,9 +997,9 @@ int raw1394_start_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_async_stream(raw1394handle_t handle, unsigned int channel,
|
int raw1394_start_async_stream(raw1394handle_t handle, unsigned int channel,
|
||||||
unsigned int tag, unsigned int sy,
|
unsigned int tag, unsigned int sy,
|
||||||
unsigned int speed, size_t length, quadlet_t *data,
|
unsigned int speed, size_t length,
|
||||||
unsigned long rawtag);
|
quadlet_t *data, unsigned long rawtag);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1027,9 +1026,9 @@ int raw1394_start_async_stream(raw1394handle_t handle, unsigned int channel,
|
||||||
* Returns: >= 0 on success or -1 on failure (sets errno)
|
* Returns: >= 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_start_async_send(raw1394handle_t handle,
|
int raw1394_start_async_send(raw1394handle_t handle,
|
||||||
size_t length, size_t header_length,
|
size_t length, size_t header_length,
|
||||||
unsigned int expect_response,
|
unsigned int expect_response,
|
||||||
quadlet_t *data, unsigned long rawtag);
|
quadlet_t *data, unsigned long rawtag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_read - send async read request to a node and wait for response.
|
* raw1394_read - send async read request to a node and wait for response.
|
||||||
|
@ -1048,7 +1047,7 @@ int raw1394_start_async_send(raw1394handle_t handle,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
size_t length, quadlet_t *buffer);
|
size_t length, quadlet_t *buffer);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_write - send async write request to a node and wait for response.
|
* raw1394_write - send async write request to a node and wait for response.
|
||||||
|
@ -1067,7 +1066,7 @@ int raw1394_read(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
size_t length, quadlet_t *data);
|
size_t length, quadlet_t *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_lock - send 32-bit compare-swap lock request and wait for response.
|
* raw1394_lock - send 32-bit compare-swap lock request and wait for response.
|
||||||
|
@ -1086,8 +1085,8 @@ int raw1394_write(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
unsigned int extcode, quadlet_t data, quadlet_t arg,
|
unsigned int extcode, quadlet_t data, quadlet_t arg,
|
||||||
quadlet_t *result);
|
quadlet_t *result);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_lock64 - send 64-bit compare-swap lock request and wait for response.
|
* raw1394_lock64 - send 64-bit compare-swap lock request and wait for response.
|
||||||
|
@ -1106,8 +1105,8 @@ int raw1394_lock(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
int raw1394_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
unsigned int extcode, octlet_t data, octlet_t arg,
|
unsigned int extcode, octlet_t data, octlet_t arg,
|
||||||
octlet_t *result);
|
octlet_t *result);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_async_stream
|
* raw1394_async_stream
|
||||||
|
@ -1122,8 +1121,8 @@ int raw1394_lock64(raw1394handle_t handle, nodeid_t node, nodeaddr_t addr,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_async_stream(raw1394handle_t handle, unsigned int channel,
|
int raw1394_async_stream(raw1394handle_t handle, unsigned int channel,
|
||||||
unsigned int tag, unsigned int sy, unsigned int speed,
|
unsigned int tag, unsigned int sy, unsigned int speed,
|
||||||
size_t length, quadlet_t *data);
|
size_t length, quadlet_t *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_async_send
|
* raw1394_async_send
|
||||||
|
@ -1136,9 +1135,9 @@ int raw1394_async_stream(raw1394handle_t handle, unsigned int channel,
|
||||||
* Returns: 0 on success or -1 on failure (sets errno)
|
* Returns: 0 on success or -1 on failure (sets errno)
|
||||||
**/
|
**/
|
||||||
int raw1394_async_send(raw1394handle_t handle,
|
int raw1394_async_send(raw1394handle_t handle,
|
||||||
size_t length, size_t header_length,
|
size_t length, size_t header_length,
|
||||||
unsigned int expect_response,
|
unsigned int expect_response,
|
||||||
quadlet_t *data);
|
quadlet_t *data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_start_fcp_listen - enable reception of FCP events
|
* raw1394_start_fcp_listen - enable reception of FCP events
|
||||||
|
@ -1164,7 +1163,6 @@ int raw1394_start_fcp_listen(raw1394handle_t handle);
|
||||||
**/
|
**/
|
||||||
int raw1394_stop_fcp_listen(raw1394handle_t handle);
|
int raw1394_stop_fcp_listen(raw1394handle_t handle);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_get_libversion - Returns the version string
|
* raw1394_get_libversion - Returns the version string
|
||||||
*
|
*
|
||||||
|
@ -1175,7 +1173,6 @@ int raw1394_stop_fcp_listen(raw1394handle_t handle);
|
||||||
*/
|
*/
|
||||||
const char *raw1394_get_libversion(void);
|
const char *raw1394_get_libversion(void);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_update_config_rom - updates the configuration ROM of a host
|
* raw1394_update_config_rom - updates the configuration ROM of a host
|
||||||
* @handle: libraw1394 handle
|
* @handle: libraw1394 handle
|
||||||
|
@ -1192,9 +1189,8 @@ const char *raw1394_get_libversion(void);
|
||||||
*
|
*
|
||||||
* This function always fails on current kernels.
|
* This function always fails on current kernels.
|
||||||
**/
|
**/
|
||||||
|
int raw1394_update_config_rom(raw1394handle_t handle, const quadlet_t *new_rom,
|
||||||
int raw1394_update_config_rom(raw1394handle_t handle, const quadlet_t
|
size_t size, unsigned char rom_version);
|
||||||
*new_rom, size_t size, unsigned char rom_version);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_add_config_rom_descriptor - add contents to local Configuration ROM
|
* raw1394_add_config_rom_descriptor - add contents to local Configuration ROM
|
||||||
|
@ -1240,8 +1236,8 @@ int raw1394_update_config_rom(raw1394handle_t handle, const quadlet_t
|
||||||
* History: New function in libraw1394 v2.1.0.
|
* History: New function in libraw1394 v2.1.0.
|
||||||
**/
|
**/
|
||||||
int raw1394_add_config_rom_descriptor(raw1394handle_t handle, u_int32_t *token,
|
int raw1394_add_config_rom_descriptor(raw1394handle_t handle, u_int32_t *token,
|
||||||
quadlet_t immediate_key, quadlet_t key,
|
quadlet_t immediate_key, quadlet_t key,
|
||||||
const quadlet_t *data, size_t size);
|
const quadlet_t *data, size_t size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_remove_config_rom_descriptor - remove contents from Configuration ROM
|
* raw1394_remove_config_rom_descriptor - remove contents from Configuration ROM
|
||||||
|
@ -1253,7 +1249,7 @@ int raw1394_add_config_rom_descriptor(raw1394handle_t handle, u_int32_t *token,
|
||||||
* History: New function in libraw1394 v2.1.0.
|
* History: New function in libraw1394 v2.1.0.
|
||||||
**/
|
**/
|
||||||
int raw1394_remove_config_rom_descriptor(raw1394handle_t handle,
|
int raw1394_remove_config_rom_descriptor(raw1394handle_t handle,
|
||||||
u_int32_t token);
|
u_int32_t token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_get_config_rom - reads the current version of the configuration ROM of a host
|
* raw1394_get_config_rom - reads the current version of the configuration ROM of a host
|
||||||
|
@ -1269,8 +1265,9 @@ int raw1394_remove_config_rom_descriptor(raw1394handle_t handle,
|
||||||
* Return: -1 (failure) if the buffer was too small or 0 for success
|
* Return: -1 (failure) if the buffer was too small or 0 for success
|
||||||
**/
|
**/
|
||||||
|
|
||||||
int raw1394_get_config_rom(raw1394handle_t handle, quadlet_t *buffer,
|
int raw1394_get_config_rom(raw1394handle_t handle,
|
||||||
size_t buffersize, size_t *rom_size, unsigned char *rom_version);
|
quadlet_t *buffer, size_t buffersize,
|
||||||
|
size_t *rom_size, unsigned char *rom_version);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_bandwidth_modify - allocate or release bandwidth
|
* raw1394_bandwidth_modify - allocate or release bandwidth
|
||||||
|
@ -1283,9 +1280,8 @@ int raw1394_get_config_rom(raw1394handle_t handle, quadlet_t *buffer,
|
||||||
* Return:
|
* Return:
|
||||||
* -1 for failure, 0 for success
|
* -1 for failure, 0 for success
|
||||||
**/
|
**/
|
||||||
int
|
int raw1394_bandwidth_modify(raw1394handle_t handle, unsigned int bandwidth,
|
||||||
raw1394_bandwidth_modify (raw1394handle_t handle, unsigned int bandwidth,
|
enum raw1394_modify_mode mode);
|
||||||
enum raw1394_modify_mode mode);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* raw1394_channel_modify - allocate or release isochronous channel
|
* raw1394_channel_modify - allocate or release isochronous channel
|
||||||
|
@ -1298,10 +1294,8 @@ raw1394_bandwidth_modify (raw1394handle_t handle, unsigned int bandwidth,
|
||||||
* Return:
|
* Return:
|
||||||
* -1 for failure, 0 for success
|
* -1 for failure, 0 for success
|
||||||
**/
|
**/
|
||||||
int
|
int raw1394_channel_modify(raw1394handle_t handle, unsigned int channel,
|
||||||
raw1394_channel_modify (raw1394handle_t handle, unsigned int channel,
|
enum raw1394_modify_mode mode);
|
||||||
enum raw1394_modify_mode mode);
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue