?? prototype.h
字號:
#ifndef USB_P_PTT_INC#define USB_P_PTT_INC#include <linux/kernel.h>#include <linux/module.h>#include <linux/compatmac.h>#include <linux/hdreg.h>#include <linux/vmalloc.h>#include <linux/fs.h>#include <linux/module.h>#include <linux/blkpg.h>#include "type.h"/* external API from Device Manager *///extern STATUS _DevInstall(DEVICE *pDevice);/* external API from HAL *///extern STATUS _HalAttachIsr(U8, P_VOID, U32);//extern STATUS _HalDetachIsr(U8 IntSourceNum);/* external API from DMA manager *///extern CHAN_NUM _DmaRequestChannel(U8 type, U8 source, P_DMA_REQ pReq);//extern void _DmaReleaseChannel(CHAN_NUM channelNum);//extern STATUS _DmaConfigChannel(CHAN_NUM channelNum, P_DMA_CONFIG pConfig);//extern STATUS _DmaStartTransfer(CHAN_NUM channelNum, P_VOID source, P_VOID dest, U32 byteCount, U8 mode);/* internal API *//*extern STATUS _UsbInit(void);extern STATUS _UsbOpen(void *pOpenParams);extern STATUS _UsbRead(void* pBuf, U32 dataSize, P_U32 dataRead);extern STATUS _UsbWrite(void* pBuf, U32 dataSize, P_U32 dataWrite );extern STATUS _UsbIoctl( U16 key, void* pArg , P_U32 pSize);extern STATUS _UsbClose(void);extern STATUS _UsbTerm( void );extern void _iUsbHandleDevReq(void);extern void _iUsbProcessCommand(void);extern void _iUsbProcessDataFromHost(void);extern void _iUsbProcessDataToHost(void);extern void _iUsbReadSector(void);extern void _iUsbWriteSector(void);void _iUsbReset();*/extern void usb_interrupt(int irq, void *dev_id, struct pt_regs *regs);extern void ep0_interrupt(int irq, void *dev_id, struct pt_regs *regs);extern void ep1_interrupt(int irq, void *dev_id, struct pt_regs *regs);extern void ep2_interrupt(int irq, void *dev_id, struct pt_regs *regs);extern void _iUsbHandleDevReq(void);#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -