quadra28_reg_access.h (765B)
1 /* 2 * 3 * 4 * 5 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 6 * 7 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 8 */ 9 #ifndef QUADRA28_REG_ACCESS_H 10 #define QUADRA28_REG_ACCESS_H 11 12 #define QUADRA28_CLAUSE45_ADDR(_devad, _regad) \ 13 ((((_devad) & 0x3F) << 16) | \ 14 ((_regad) & 0xFFFF)) 15 16 17 18 19 int phymod_raw_iblk_read(const phymod_access_t *pa, uint32_t reg_addr, uint32_t *data); 20 int phymod_raw_iblk_write(const phymod_access_t *pa, uint32_t addr, uint32_t data); 21 int quadra28_reg_modify(const phymod_access_t *pa, 22 uint32_t addr, 23 uint16_t reg_data, 24 uint16_t reg_mask); 25 26 #endif 27