1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef AUDIO_DSP_MODULES_H
- #define AUDIO_DSP_MODULES_H
- #include <linux/device.h>
- #include <linux/timer.h>
- #include <linux/wakelock.h>
- /*
- #include <asm/dsp/audiodsp_control.h>
- #include <asm/dsp/dsp_register.h>
- */
- #include "audiodsp_control.h"
- #include "dsp_register.h"
- #include "codec_message.h"
- #include <linux/dma-mapping.h>
- struct audiodsp_priv
- {
- struct class *class;
- struct device *dev;
- struct device *micro_dev;
- struct timer_list dsp_mointer;
- struct list_head mcode_list;
- int mcode_id;
- spinlock_t mcode_lock;
- int code_mem_size;
- struct mail_msg *mailbox_reg;
- struct mail_msg *mailbox_reg2;
- struct dsp_working_info *dsp_work_details;
- unsigned long dsp_code_start;
- unsigned long dsp_code_size;
- unsigned long dsp_stack_start;
- unsigned long dsp_stack_size;
- unsigned long dsp_gstack_start;
- unsigned long dsp_gstack_size;
- unsigned long dsp_heap_start;
- unsigned long dsp_heap_size;
- struct mutex dsp_mutex;
- char dsp_codename[32];
- unsigned long dsp_start_time;//system jiffies
- unsigned long dsp_end_time;//system jiffies
- int stream_fmt;
- int last_stream_fmt;
- struct frame_fmt frame_format;
- struct frame_info cur_frame_info;
- unsigned int last_valid_pts;
- int out_len_after_last_valid_pts;
- int decode_error_count;
- int decode_fatal_err;
- int dsp_is_started;
- void *stream_buffer_mem;
- int stream_buffer_mem_size;
- int decoded_nb_frames;
- int first_lookup_over;
- int format_wait_count;
- unsigned long stream_buffer_start;
- unsigned long stream_buffer_end;
- unsigned long stream_buffer_size;
- struct mutex stream_buffer_mutex;
- struct completion decode_completion;
- void __iomem *p;
- // for power management
- struct wake_lock wakelock;
- };
- struct audiodsp_priv *audiodsp_privdata(void);
- #define DSP_PRNT(fmt,args...) printk(KERN_INFO "[dsp]" fmt,##args)
- #endif
|