/drivers/staging/comedi/drivers/addi-data/addi_amcc_S5920.h

https://bitbucket.org/slukk/jb-tsm-kernel-4.2 · C Header · 27 lines · 9 code · 2 blank · 16 comment · 0 complexity · 3a8e32967c8b717e20dbda5a6fe2f4c9 MD5 · raw file

  1. /*
  2. * Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
  3. *
  4. * ADDI-DATA GmbH
  5. * Dieselstrasse 3
  6. * D-77833 Ottersweier
  7. * Tel: +19(0)7223/9493-0
  8. * Fax: +49(0)7223/9493-92
  9. * http://www.addi-data.com
  10. * info@addi-data.com
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU General Public License as published by the Free
  14. * Software Foundation; either version 2 of the License, or (at your option)
  15. * any later version.
  16. */
  17. #define AMCC_OP_REG_MCSR 0x3c
  18. #define EEPROM_BUSY 0x80000000
  19. #define NVCMD_LOAD_LOW (0x4 << 5) /* nvRam load low command */
  20. #define NVCMD_LOAD_HIGH (0x5 << 5) /* nvRam load high command */
  21. #define NVCMD_BEGIN_READ (0x7 << 5) /* nvRam begin read command */
  22. #define NVCMD_BEGIN_WRITE (0x6 << 5) /* EEPROM begin write command */
  23. int i_AddiHeaderRW_ReadEeprom(int i_NbOfWordsToRead,
  24. unsigned int dw_PCIBoardEepromAddress,
  25. unsigned short w_EepromStartAddress, unsigned short *pw_DataRead);