Commit 5db9e2bf authored by Armando Uribe's avatar Armando Uribe Committed by Omar Ramirez Luna
Browse files

staging: tidspbridge: Remove unused structs



Remove unused structs and its dependencies, like references
in other structs or as arguments of certain functions.

Signed-off-by: default avatarArmando Uribe <x0095078@ti.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.ramirez@ti.com>
parent 57e6a9f2
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -58,10 +58,4 @@ struct cfg_hostres {
	void __iomem *dw_dmmu_base;
};

struct cfg_dspmemdesc {
	u32 mem_type;		/* Type of memory. */
	u32 ul_min;		/* Minimum amount of memory of this type. */
	u32 ul_max;		/* Maximum amount of memory of this type. */
};

#endif /* CFGDEFS_ */
+1 −9
Original line number Diff line number Diff line
@@ -37,11 +37,6 @@ struct cod_manager;
/* COD library handle */
struct cod_libraryobj;

/* COD attributes */
struct cod_attrs {
	u32 ul_reserved;
};

/*
 *  Function prototypes for writing memory to a DSP system, allocating
 *  and freeing DSP memory.
@@ -76,8 +71,6 @@ extern void cod_close(struct cod_libraryobj *lib);
 *  Parameters:
 *      manager:        created manager object
 *      str_zl_file:    ZL DLL filename, of length < COD_MAXPATHLENGTH.
 *      attrs:          attributes to be used by this object. A NULL value
 *                      will cause default attrs to be used.
 *  Returns:
 *      0:                Success.
 *      -ESPIPE:   ZL_Create failed.
@@ -89,8 +82,7 @@ extern void cod_close(struct cod_libraryobj *lib);
 *  Ensures:
 */
extern int cod_create(struct cod_manager **mgr,
			     char *str_zl_file,
			     const struct cod_attrs *attrs);
			     char *str_zl_file);

/*
 *  ======== cod_delete ========
+0 −49
Original line number Diff line number Diff line
@@ -24,26 +24,6 @@
 */
typedef s32 dbl_flags;

/*
 *  ======== dbl_sect_info ========
 *  For collecting info on overlay sections
 */
struct dbl_sect_info {
	const char *name;	/* name of section */
	u32 sect_run_addr;	/* run address of section */
	u32 sect_load_addr;	/* load address of section */
	u32 size;		/* size of section (target MAUs) */
	dbl_flags type;		/* Code, data, or BSS */
};

/*
 *  ======== dbl_symbol ========
 *  (Needed for dynamic load library)
 */
struct dbl_symbol {
	u32 value;
};

/*
 *  ======== dbl_alloc_fxn ========
 *  Allocate memory function.  Allocate or reserve (if reserved == TRUE)
@@ -98,33 +78,4 @@ typedef bool(*dbl_sym_lookup) (void *handle, void *parg, void *rmm_handle,
typedef s32(*dbl_write_fxn) (void *hdl, u32 dsp_address, void *buf,
			     u32 n, s32 mtype);

/*
 *  ======== dbl_attrs ========
 */
struct dbl_attrs {
	dbl_alloc_fxn alloc;
	dbl_free_fxn free;
	void *rmm_handle;	/* Handle to pass to alloc, free functions */
	dbl_write_fxn write;
	void *input_params;	/* Handle to pass to write, cinit function */

	dbl_log_write_fxn log_write;
	void *log_write_handle;

	/* Symbol matching function and handle to pass to it */
	dbl_sym_lookup sym_lookup;
	void *sym_handle;
	void *sym_arg;

	/*
	 *  These file manipulation functions should be compatible with the
	 *  "C" run time library functions of the same name.
	 */
	 s32(*fread) (void *, size_t, size_t, void *);
	 s32(*fseek) (void *, long, int);
	 s32(*ftell) (void *);
	 s32(*fclose) (void *);
	void *(*fopen) (const char *, const char *);
};

#endif /* DBLDEFS_ */
+0 −14
Original line number Diff line number Diff line
@@ -96,17 +96,6 @@ struct dmm_rsv_object {
	u32 dsp_reserved_addr;
};

/* New structure (member of process context) abstracts DMM resource info */
struct dspheap_res_object {
	s32 heap_allocated;	/* DMM status */
	u32 ul_mpu_addr;
	u32 ul_dsp_addr;
	u32 ul_dsp_res_addr;
	u32 heap_size;
	void *hprocessor;
	struct dspheap_res_object *next;
};

/* New structure (member of process context) abstracts stream resource info */
struct strm_res_object {
	s32 stream_allocated;	/* Stream status */
@@ -151,9 +140,6 @@ struct process_context {
	struct list_head dmm_rsv_list;
	spinlock_t dmm_rsv_lock;

	/* DSP Heap resources */
	struct dspheap_res_object *pdspheap_list;

	/* Stream resources */
	struct idr *stream_id;
};
+0 −8
Original line number Diff line number Diff line
@@ -118,10 +118,6 @@ union trapped_args {
		struct dsp_notification __user *hnotification;
	} args_proc_register_notify;

	struct {
		void *hprocessor;
	} args_proc_start;

	struct {
		void *hprocessor;
		u32 ul_size;
@@ -163,10 +159,6 @@ union trapped_args {
		u32 ul_flags;
	} args_proc_flushmemory;

	struct {
		void *hprocessor;
	} args_proc_stop;

	struct {
		void *hprocessor;
		void *pmpu_addr;
Loading