Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235953
b: refs/heads/master
c: a534f17
h: refs/heads/master
i:
  235951: f7f348a
v: v3
  • Loading branch information
Rene Sapiens authored and Omar Ramirez Luna committed Feb 5, 2011
1 parent 1195cd7 commit bc05add
Show file tree
Hide file tree
Showing 19 changed files with 184 additions and 184 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 085467b8f5e60a2fe9ef85031ab40bd8724fcac6
refs/heads/master: a534f17bd50834188b24e0a573c22c3285e7b1bb
20 changes: 10 additions & 10 deletions trunk/drivers/staging/tidspbridge/gen/uuidutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ void uuid_uuid_to_string(struct dsp_uuid *uuid_obj, char *sz_uuid,

i = snprintf(sz_uuid, size,
"%.8X_%.4X_%.4X_%.2X%.2X_%.2X%.2X%.2X%.2X%.2X%.2X",
uuid_obj->data1, uuid_obj->us_data2, uuid_obj->us_data3,
uuid_obj->uc_data4, uuid_obj->uc_data5,
uuid_obj->uc_data6[0], uuid_obj->uc_data6[1],
uuid_obj->uc_data6[2], uuid_obj->uc_data6[3],
uuid_obj->uc_data6[4], uuid_obj->uc_data6[5]);
uuid_obj->data1, uuid_obj->data2, uuid_obj->data3,
uuid_obj->data4, uuid_obj->data5,
uuid_obj->data6[0], uuid_obj->data6[1],
uuid_obj->data6[2], uuid_obj->data6[3],
uuid_obj->data6[4], uuid_obj->data6[5]);

DBC_ENSURE(i != -1);
}
Expand Down Expand Up @@ -85,29 +85,29 @@ void uuid_uuid_from_string(char *sz_uuid, struct dsp_uuid *uuid_obj)
/* Step over underscore */
sz_uuid++;

uuid_obj->us_data2 = (u16) uuid_hex_to_bin(sz_uuid, 4);
uuid_obj->data2 = (u16) uuid_hex_to_bin(sz_uuid, 4);
sz_uuid += 4;

/* Step over underscore */
sz_uuid++;

uuid_obj->us_data3 = (u16) uuid_hex_to_bin(sz_uuid, 4);
uuid_obj->data3 = (u16) uuid_hex_to_bin(sz_uuid, 4);
sz_uuid += 4;

/* Step over underscore */
sz_uuid++;

uuid_obj->uc_data4 = (u8) uuid_hex_to_bin(sz_uuid, 2);
uuid_obj->data4 = (u8) uuid_hex_to_bin(sz_uuid, 2);
sz_uuid += 2;

uuid_obj->uc_data5 = (u8) uuid_hex_to_bin(sz_uuid, 2);
uuid_obj->data5 = (u8) uuid_hex_to_bin(sz_uuid, 2);
sz_uuid += 2;

/* Step over underscore */
sz_uuid++;

for (j = 0; j < 6; j++) {
uuid_obj->uc_data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2);
uuid_obj->data6[j] = (u8) uuid_hex_to_bin(sz_uuid, 2);
sz_uuid += 2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct dcd_nodeprops {
char *pstr_i_alg_name;

/* Dynamic load properties */
u16 us_load_type; /* Static, dynamic, overlay */
u16 load_type; /* Static, dynamic, overlay */
u32 data_mem_seg_mask; /* Data memory requirements */
u32 code_mem_seg_mask; /* Code memory requirements */
};
Expand Down
30 changes: 15 additions & 15 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/dbdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ static inline bool is_valid_proc_event(u32 x)
/* The Node UUID structure */
struct dsp_uuid {
u32 data1;
u16 us_data2;
u16 us_data3;
u8 uc_data4;
u8 uc_data5;
u8 uc_data6[6];
u16 data2;
u16 data3;
u8 data4;
u8 data5;
u8 data6[6];
};

/* DCD types */
Expand Down Expand Up @@ -229,11 +229,11 @@ struct dsp_strmattr {
u32 buf_size; /* Buffer size (DSP words) */
u32 num_bufs; /* Number of buffers */
u32 buf_alignment; /* Buffer alignment */
u32 utimeout; /* Timeout for blocking STRM calls */
u32 timeout; /* Timeout for blocking STRM calls */
enum dsp_strmmode strm_mode; /* mode of stream when opened */
/* DMA chnl id if dsp_strmmode is LDMA or RDMA */
u32 udma_chnl_id;
u32 udma_priority; /* DMA channel priority 0=lowest, >0=high */
u32 dma_priority; /* DMA channel priority 0=lowest, >0=high */
};

/* The dsp_cbdata structure */
Expand All @@ -255,9 +255,9 @@ struct dsp_resourcereqmts {
u32 static_data_size;
u32 global_data_size;
u32 program_mem_size;
u32 uwc_execution_time;
u32 uwc_period;
u32 uwc_deadline;
u32 wc_execution_time;
u32 wc_period;
u32 wc_deadline;
u32 avg_exection_time;
u32 minimum_period;
};
Expand Down Expand Up @@ -294,7 +294,7 @@ struct dsp_ndbprops {
u32 message_depth;
u32 num_input_streams;
u32 num_output_streams;
u32 utimeout;
u32 timeout;
u32 count_profiles; /* Number of supported profiles */
/* Array of profiles */
struct dsp_nodeprofs node_profiles[MAX_PROFILES];
Expand All @@ -306,7 +306,7 @@ struct dsp_ndbprops {
struct dsp_nodeattrin {
u32 cb_struct;
s32 prio;
u32 utimeout;
u32 timeout;
u32 profile_id;
/* Reserved, for Bridge Internal use only */
u32 heap_size;
Expand Down Expand Up @@ -347,7 +347,7 @@ struct dsp_notification {
/* The dsp_processorattrin structure describes the attributes of a processor */
struct dsp_processorattrin {
u32 cb_struct;
u32 utimeout;
u32 timeout;
};
/*
* The dsp_processorinfo structure describes basic capabilities of a
Expand Down Expand Up @@ -401,13 +401,13 @@ struct dsp_resourceinfo {
*/
struct dsp_streamattrin {
u32 cb_struct;
u32 utimeout;
u32 timeout;
u32 segment_id;
u32 buf_alignment;
u32 num_bufs;
enum dsp_strmmode strm_mode;
u32 udma_chnl_id;
u32 udma_priority;
u32 dma_priority;
};

/* The dsp_bufferattr structure describes the attributes of a data buffer */
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/tidspbridge/include/dspbridge/drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct process_context {
enum gpp_proc_res_state res_state;

/* Handle to Processor */
void *hprocessor;
void *processor;

/* DSP Node resources */
struct idr *node_id;
Expand Down
44 changes: 22 additions & 22 deletions trunk/drivers/staging/tidspbridge/include/dspbridge/dspapi-ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ union trapped_args {
struct dsp_notification __user *__user *anotifications;
u32 count;
u32 __user *pu_index;
u32 utimeout;
u32 timeout;
} args_mgr_wait;

/* PROC Module */
Expand All @@ -67,71 +67,71 @@ union trapped_args {
} args_proc_attach;

struct {
void *hprocessor;
void *processor;
u32 cmd;
struct dsp_cbdata __user *pargs;
} args_proc_ctrl;

struct {
void *hprocessor;
void *processor;
} args_proc_detach;

struct {
void *hprocessor;
void *processor;
void *__user *node_tab;
u32 node_tab_size;
u32 __user *pu_num_nodes;
u32 __user *pu_allocated;
} args_proc_enumnode_info;

struct {
void *hprocessor;
void *processor;
u32 resource_type;
struct dsp_resourceinfo *resource_info;
u32 resource_info_size;
} args_proc_enumresources;

struct {
void *hprocessor;
void *processor;
struct dsp_processorstate __user *proc_state_obj;
u32 state_info_size;
} args_proc_getstate;

struct {
void *hprocessor;
void *processor;
u8 __user *pbuf;
u8 __user *psize;
u32 max_size;
} args_proc_gettrace;

struct {
void *hprocessor;
void *processor;
s32 argc_index;
char __user *__user *user_args;
char *__user *user_envp;
} args_proc_load;

struct {
void *hprocessor;
void *processor;
u32 event_mask;
u32 notify_type;
struct dsp_notification __user *hnotification;
} args_proc_register_notify;

struct {
void *hprocessor;
void *processor;
u32 size;
void *__user *pp_rsv_addr;
} args_proc_rsvmem;

struct {
void *hprocessor;
void *processor;
u32 size;
void *prsv_addr;
} args_proc_unrsvmem;

struct {
void *hprocessor;
void *processor;
void *pmpu_addr;
u32 size;
void *req_addr;
Expand All @@ -140,34 +140,34 @@ union trapped_args {
} args_proc_mapmem;

struct {
void *hprocessor;
void *processor;
u32 size;
void *map_addr;
} args_proc_unmapmem;

struct {
void *hprocessor;
void *processor;
void *pmpu_addr;
u32 size;
u32 dir;
} args_proc_dma;

struct {
void *hprocessor;
void *processor;
void *pmpu_addr;
u32 size;
u32 ul_flags;
} args_proc_flushmemory;

struct {
void *hprocessor;
void *processor;
void *pmpu_addr;
u32 size;
} args_proc_invalidatememory;

/* NODE Module */
struct {
void *hprocessor;
void *processor;
struct dsp_uuid __user *node_id_ptr;
struct dsp_cbdata __user *pargs;
struct dsp_nodeattrin __user *attr_in;
Expand Down Expand Up @@ -218,7 +218,7 @@ union trapped_args {
struct {
void *hnode;
struct dsp_msg __user *message;
u32 utimeout;
u32 timeout;
} args_node_getmessage;

struct {
Expand All @@ -228,7 +228,7 @@ union trapped_args {
struct {
void *hnode;
struct dsp_msg __user *message;
u32 utimeout;
u32 timeout;
} args_node_putmessage;

struct {
Expand All @@ -248,7 +248,7 @@ union trapped_args {
} args_node_terminate;

struct {
void *hprocessor;
void *processor;
struct dsp_uuid __user *node_id_ptr;
struct dsp_ndbprops __user *node_props;
} args_node_getuuidprops;
Expand Down Expand Up @@ -323,7 +323,7 @@ union trapped_args {
void *__user *stream_tab;
u32 strm_num;
u32 __user *pmask;
u32 utimeout;
u32 timeout;
} args_strm_select;

/* CMM Module */
Expand All @@ -341,7 +341,7 @@ union trapped_args {
} args_cmm_freebuf;

struct {
void *hprocessor;
void *processor;
struct cmm_object *__user *ph_cmm_mgr;
} args_cmm_gethandle;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ typedef int(*fxn_brd_write) (struct bridge_dev_context *dev_ctxt,
* mgr_attrts->irq_shared: TRUE if the IRQ is shareable.
* mgr_attrts->word_size: DSP Word size in equivalent PC bytes..
* mgr_attrts->shm_base: Base physical address of shared memory, if any.
* mgr_attrts->usm_length: Bytes of shared memory block.
* mgr_attrts->sm_length: Bytes of shared memory block.
* Returns:
* 0: Success;
* -ENOMEM: Insufficient memory for requested resources.
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/tidspbridge/include/dspbridge/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct io_attrs {
bool irq_shared; /* TRUE if the IRQ is shareable. */
u32 word_size; /* DSP Word size. */
u32 shm_base; /* Physical base address of shared memory. */
u32 usm_length; /* Size (in bytes) of shared memory. */
u32 sm_length; /* Size (in bytes) of shared memory. */
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct node_strmdef {
u32 buf_size; /* Size of buffers for SIO stream */
u32 num_bufs; /* max # of buffers in SIO stream at once */
u32 seg_id; /* Memory segment id to allocate buffers */
u32 utimeout; /* Timeout for blocking SIO calls */
u32 timeout; /* Timeout for blocking SIO calls */
u32 buf_alignment; /* Buffer alignment */
char *sz_device; /* Device name for stream */
};
Expand All @@ -55,10 +55,10 @@ struct node_taskargs {
u32 stack_size;
u32 sys_stack_size;
u32 stack_seg;
u32 udsp_heap_res_addr; /* DSP virtual heap address */
u32 udsp_heap_addr; /* DSP virtual heap address */
u32 dsp_heap_res_addr; /* DSP virtual heap address */
u32 dsp_heap_addr; /* DSP virtual heap address */
u32 heap_size; /* Heap size */
u32 ugpp_heap_addr; /* GPP virtual heap address */
u32 gpp_heap_addr; /* GPP virtual heap address */
u32 profile_id; /* Profile ID */
u32 num_inputs;
u32 num_outputs;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/tidspbridge/pmgr/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ int dev_create_device(struct dev_object **device_obj,
/* Assume last memory window is for CHNL */
io_mgr_attrs.shm_base = host_res->mem_base[1] +
host_res->offset_for_monitor;
io_mgr_attrs.usm_length =
io_mgr_attrs.sm_length =
host_res->mem_length[1] -
host_res->offset_for_monitor;
} else {
io_mgr_attrs.shm_base = 0;
io_mgr_attrs.usm_length = 0;
io_mgr_attrs.sm_length = 0;
pr_err("%s: No memory reserved for shared structures\n",
__func__);
}
Expand Down
Loading

0 comments on commit bc05add

Please sign in to comment.