BAIYI/HARDWARE/DEV_HAL/de_demo.h

34 lines
345 B
C
Raw Normal View History

#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