示例#1
0
char GetSNSectorInfo(char * pbuf)
{
    if(gpNandInfo->GetSNSectorInfo)
        return( gpNandInfo->GetSNSectorInfo( pbuf));
    else
        return GetSNSectorInfoBeforeNandInit(pbuf);
    return 0;
}
示例#2
0
int eth_mac_read_from_IDB(u8 *mac)
{
     int i;
     char *tempBuf = kmalloc(512, GFP_KERNEL);
    
    if(mac == NULL)
        return -EFAULT;

    GetSNSectorInfoBeforeNandInit(tempBuf);
    /*for (i = 0; i < 512; i++) {
        printk("%02x, ", tempBuf[i]);
		if(((i+1)%16) == 0) printk("\n");
	}*/

    for (i = 506; i <= 511; i++)
		mac[i-506] = tempBuf[i];

    kfree(tempBuf);
    
	return 0;
}