MACsec Intel® FPGA System Design User Guide

ID 767516
Date 3/31/2024
Public
Document Table of Contents

6.6.6. macsec_read_register

macsec_read_register

Synopsis
uint32_t macsec_read(struct macsec_info *info, uint32_t offset, uint32_t port, uint32_t sc, uint32_t sa, void *value)
Description

Read the MACsec IP register.

Arguments

info—points to the macsec_info structure.

port—physical port.

offset—CSR register offset value.

sc—secure channel value.

sa—secure association value.

value—read value.

Returns

MACSEC_OK if successful.

MACSEC_ERR_INVALID_PORT if port not associated with any port.

MACSEC_ERR_INVALID_ARG if the macsec_info structure or info is NULL or offset and SC/SA are invalid.

MACSEC_ERR_READ if CSR read failure.