摘抄一段 彭东的 LMOS内核驱动
#include "drivers.h"
PUBLIC drvstus_t hostbrideg_entry(driver_t* drvobjp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_exit(driver_t* drvobjp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_open(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_close(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_read(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_write(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_ioctrl(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_lseek(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_dev_start(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_dev_stop(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_enmu(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_setpower(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS ;
}
PUBLIC drvstus_t hostbrideg_flush(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
PUBLIC drvstus_t hostbrideg_shutdown(device_t* devobjp,ioinfo_t* ioifobjp,uint_t extval,void* extp)
{
return DFCOKSTUS;
}
DEFINE_STATIC_KERMODUS(hostbrideg,"hostbrideg",KMATB_**_DRIVER,hostbrideg_entry,hostbrideg_exit); |