/* Read a port's MAC address from the VPD ROM.  */
static int vpd_macaddress_get(adapter_t *adapter, int index, u8 mac_addr[])
/* Read a port's MAC address from the VPD ROM.  */
static int vpd_macaddress_get(adapter_t *adapter, int index, u8 mac_addr[])
{
	struct chelsio_vpd_t vpd;
	if (t1_eeprom_vpd_get(adapter, &vpd))
		return 1;
	memcpy(mac_addr, vpd.mac_base_address, 5);
	mac_addr[5] = vpd.mac_base_address[5] + index;
	return 0;
}