void DRV_DIEID_TEST(void) { int i = 0; char *buf = kzalloc(EFUSE_DIEID_LEN, GFP_KERNEL); if(NULL == buf) { efuse_print_info("alloc mem is fail.\n"); return; } if(EFUSE_OK == DRV_GET_DIEID(buf, EFUSE_DIEID_LEN)) { for(i = 0; i < EFUSE_DIEID_LEN; i++) { efuse_print_info("0x%x \n", *(buf+i)); } } else { efuse_print_error("DRV_GET_DIEID is fail.\n"); } kfree(buf); }
void Test_DIEID(void) { unsigned char buf[20] = {0}; int index; int result; printk("Test_DIEID\n"); result = DRV_GET_DIEID(buf, DIEID_BYTE_LEN); printk("\n==========CALL DRV_GET_DIEID============\n"); if(OK == result) { for(index = 0; index < DIEID_BYTE_LEN; index++) { printk("%#x ", buf[index]); } } printk("\n==========CALL DRV_GET_DIEID============\n"); return ; }
int mdrv_efuse_get_dieid(unsigned char* buf, int length) { return DRV_GET_DIEID(buf, length); }