hba_exp.h
来自「6440linuxDriver的源代码」· C头文件 代码 · 共 68 行
H
68 行
#ifndef __HBA_EXPOSE_H__#define __HBA_EXPOSE_H__#ifdef SUPPORT_EVENT#include "com_event_struct.h"#include "com_event_define.h"#include "com_event_define_ext.h"#endif /* SUPPORT_EVENT */#include "hba_header.h"#include "com_mod_mgmt.h"typedef struct _Assigned_Uncached_Memory{ MV_PVOID Virtual_Address; MV_PHYSICAL_ADDR Physical_Address; MV_U32 Byte_Size; MV_U32 Reserved0;} Assigned_Uncached_Memory, *PAssigned_Uncached_Memory;typedef struct _Controller_Infor{ MV_PVOID Base_Address; MV_U16 Vendor_Id; MV_U16 Device_Id; MV_U8 Revision_Id; MV_U8 Reserved[3];} Controller_Infor, *PController_Infor;void HBA_ModuleStarted(struct mv_mod_desc *mod_desc);#ifdef SUPPORT_EVENT/* wrapper for DriverEvent, needed to implement queue */typedef struct _Driver_Event_Entry{ struct list_head Queue_Pointer; DriverEvent Event;} Driver_Event_Entry, *PDriver_Event_Entry;#endif /* SUPPORT_EVENT */void hba_swap_buf_le16(u16 *buf, unsigned int words);/* map bus addr in sg entry into cpu addr (access via. Data_Buffer) */void hba_map_sg_to_buffer(void *preq);void hba_unmap_sg_to_buffer(void *preq);void hba_log_msg(unsigned char *buf, unsigned int len);int __hba_dump_log(unsigned char *buf);#ifdef __AC_PROF__unsigned long __hba_current_time(void);#endif /* __AC_PROF__ */static inline MV_BOOLEANHBA_ModuleGetPhysicalAddress(MV_PVOID Module, MV_PVOID Virtual, MV_PVOID TranslationContext, MV_PU64 PhysicalAddress, MV_PU32 Length){ panic("not supposed to be called.\n"); return MV_FALSE;};#endif /* __HBA_EXPOSE_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?