forked from luguangmeng/BAIYI
34 lines
345 B
C
34 lines
345 B
C
|
#ifndef __DE_DEMO_H_
|
|||
|
#define __DE_DEMO_H_
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD>豸<EFBFBD><E8B1B8>һ<EFBFBD><D2BB>
|
|||
|
struct driver
|
|||
|
{
|
|||
|
void (*Init)(struct driver *self);
|
|||
|
void* ops;//ʵ<>ʲ<EFBFBD><CAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
void* pdata;//˽<><CBBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
};
|
|||
|
|
|||
|
#define U_BOOT_DRIVER(__name) struct driver __name##driver
|
|||
|
#define GetDRIVER_Name(__name) __name##driver
|
|||
|
#define PDATA_Name(driver) (driver->pdata)
|
|||
|
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|