huracan_reg_access.h (753B)
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 HURACAN_REG_ACCESS_H 10 #define HURACAN_REG_ACCESS_H 11 12 #define HURACAN_CLAUSE45_ADDR(_devad, _regad) \ 13 ((((_devad) & 0x3F) << 16) | \ 14 ((_regad) & 0xFFFF)) 15 16 17 18 19 int huracan_reg_read(const phymod_access_t *pa, uint32_t reg_addr, uint32_t *data); 20 int huracan_reg_write(const phymod_access_t *pa, uint32_t addr, uint32_t data); 21 int huracan_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