@@ -136,7 +136,7 @@ struct chnl_object {
struct chnl_mgr *chnl_mgr_obj;
u32 chnl_id; /* Channel id */
u8 dw_state; /* Current channel state */
- u32 chnl_mode; /* Chnl mode and attributes */
+ u8 chnl_mode; /* Chnl mode and attributes */
/* Chnl I/O completion event (user mode) */
bhandle user_event;
/* Abstract syncronization object */
@@ -26,8 +26,8 @@
#define CHNL_INITIOREQS 4 /* Default # of I/O requests. */
/* Channel modes */
-#define CHNL_MODETODSP 0x0000 /* Data streaming to the DSP. */
-#define CHNL_MODEFROMDSP 0x0001 /* Data streaming from the DSP. */
+#define CHNL_MODETODSP 0 /* Data streaming to the DSP. */
+#define CHNL_MODEFROMDSP 1 /* Data streaming from the DSP. */
/* GetIOCompletion flags */
#define CHNL_IOCINFINITE 0xffffffff /* Wait forever for IO completion. */
@@ -77,7 +77,7 @@ struct chnl_info {
bhandle event_obj; /* Channel I/O completion event. */
/*Abstraction of I/O completion event. */
struct sync_object *sync_event;
- u32 dw_mode; /* Channel mode. */
+ u8 dw_mode; /* Channel mode. */
u8 dw_state; /* Current channel state. */
u32 bytes_tx; /* Total bytes transferred. */
u32 cio_cs; /* Number of IOCs in queue. */
@@ -409,7 +409,7 @@ typedef void (*fxn_deh_notify) (struct deh_mgr *hdeh_mgr,
typedef dsp_status(*fxn_chnl_open) (OUT struct chnl_object
**phChnl,
struct chnl_mgr *hchnl_mgr,
- short int chnl_mode,
+ u8 chnl_mode,
u32 uChnlId,
CONST IN OPTIONAL struct
chnl_attr * pattrs);
@@ -33,7 +33,7 @@ extern dsp_status bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr);
extern dsp_status bridge_chnl_open(OUT struct chnl_object **phChnl,
struct chnl_mgr *hchnl_mgr,
- short int chnl_mode,
+ u8 chnl_mode,
u32 uChnlId,
CONST IN OPTIONAL struct chnl_attr
*pattrs);
@@ -845,7 +845,7 @@ dsp_status node_connect(struct node_object *hNode1, u32 uStream1,
struct stream_chnl *pstream;
gb_bit_num pipe_id = GB_NOBITS;
gb_bit_num chnl_id = GB_NOBITS;
- short int chnl_mode;
+ u8 chnl_mode;
u32 dw_length;
dsp_status status = DSP_SOK;
DBC_REQUIRE(refs > 0);
@@ -483,7 +483,7 @@ dsp_status strm_open(struct node_object *hnode, u32 dir, u32 index,
struct bridge_drv_interface *intf_fxns;
u32 ul_chnl_id;
struct strm_object *strm_obj = NULL;
- short int chnl_mode;
+ u8 chnl_mode;
struct chnl_attr chnl_attr_obj;
dsp_status status = DSP_SOK;
struct cmm_object *hcmm_mgr = NULL; /* Shared memory manager hndl */
@@ -257,7 +257,7 @@ dsp_status bridge_chnl_cancel_io(struct chnl_object *chnl_obj)
dsp_status status = DSP_SOK;
struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
u32 chnl_id = -1;
- short int chnl_mode;
+ u8 chnl_mode;
struct chnl_irp *chnl_packet_obj;
struct chnl_mgr *chnl_mgr_obj = NULL;
@@ -492,7 +492,7 @@ dsp_status bridge_chnl_flush_io(struct chnl_object *chnl_obj, u32 dwTimeOut)
{
dsp_status status = DSP_SOK;
struct chnl_object *pchnl = (struct chnl_object *)chnl_obj;
- short int chnl_mode = -1;
+ u8 chnl_mode;
struct chnl_mgr *chnl_mgr_obj;
struct chnl_ioc chnl_ioc_obj;
/* Check args: */
@@ -758,7 +758,7 @@ dsp_status bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr, u32 uChnlID,
dsp_status bridge_chnl_idle(struct chnl_object *chnl_obj, u32 dwTimeOut,
bool fFlush)
{
- short int chnl_mode;
+ u8 chnl_mode;
struct chnl_mgr *chnl_mgr_obj;
dsp_status status = DSP_SOK;
@@ -786,7 +786,7 @@ dsp_status bridge_chnl_idle(struct chnl_object *chnl_obj, u32 dwTimeOut,
* Open a new half-duplex channel to the DSP board.
*/
dsp_status bridge_chnl_open(OUT struct chnl_object **phChnl,
- struct chnl_mgr *hchnl_mgr, short int chnl_mode,
+ struct chnl_mgr *hchnl_mgr, u8 chnl_mode,
u32 uChnlId, CONST IN struct chnl_attr *pattrs)
{
dsp_status status = DSP_SOK;