netup-eeprom.h 707 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * netup-eeprom.h
  4. *
  5. * 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card
  6. *
  7. * Copyright (C) 2009 NetUP Inc.
  8. * Copyright (C) 2009 Abylay Ospan <[email protected]>
  9. */
  10. #ifndef NETUP_EEPROM_H
  11. #define NETUP_EEPROM_H
  12. struct netup_port_info {
  13. u8 mac[6];/* card MAC address */
  14. };
  15. struct netup_card_info {
  16. struct netup_port_info port[2];/* ports - 1,2 */
  17. u8 rev;/* card revision */
  18. };
  19. extern int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr);
  20. extern int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data);
  21. extern void netup_get_card_info(struct i2c_adapter *i2c_adap,
  22. struct netup_card_info *cinfo);
  23. #endif