OemNicConfig.h 963 B

12345678910111213141516171819202122232425262728293031323334
  1. /** @file
  2. *
  3. * Copyright (c) 2016, Hisilicon Limited. All rights reserved.
  4. * Copyright (c) 2016, Linaro Limited. All rights reserved.
  5. *
  6. * SPDX-License-Identifier: BSD-2-Clause-Patent
  7. *
  8. **/
  9. #ifndef __OEM_NIC_CONFIG_H__
  10. #define __OEM_NIC_CONFIG_H__
  11. #define I2C_SLAVEADDR_EEPROM (0x52)
  12. #define I2C_OFFSET_EEPROM_ETH0 (0xc00)
  13. #define I2C_OFFSET_EEPROM_ETH1 (I2C_OFFSET_EEPROM_ETH0 + 6)
  14. #define I2C_OFFSET_EEPROM_ETH2 (I2C_OFFSET_EEPROM_ETH1 + 6)
  15. #define I2C_OFFSET_EEPROM_ETH3 (I2C_OFFSET_EEPROM_ETH2 + 6)
  16. #define I2C_OFFSET_EEPROM_ETH4 (I2C_OFFSET_EEPROM_ETH3 + 6)
  17. #define I2C_OFFSET_EEPROM_ETH5 (I2C_OFFSET_EEPROM_ETH4 + 6)
  18. #define I2C_OFFSET_EEPROM_ETH6 (I2C_OFFSET_EEPROM_ETH5 + 6)
  19. #define I2C_OFFSET_EEPROM_ETH7 (I2C_OFFSET_EEPROM_ETH6 + 6)
  20. #define MAC_ADDR_LEN 6
  21. #pragma pack(1)
  22. typedef struct {
  23. UINT16 Crc16;
  24. UINT16 MacLen;
  25. UINT8 Mac[MAC_ADDR_LEN];
  26. } NIC_MAC_ADDRESS;
  27. #pragma pack()
  28. #endif