MACsec Intel® FPGA System Design User Guide

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

6.6.7. macsec_write_register

macsec_write_register

Synopsis
uint32_t macsec_write(struct macsec_info *info, uint32_t offset, uint32_t port, uint32_t sc, uint32_t sa, uint64_t value)
Description

Write the value to CSR register.

Arguments

info—points to the macsec_info structure.

port—port number.

offset—CSR register offset value.

sc—secure channel value.

sa—secure association value.

value—write 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 SA/SC are invalid.

MACSEC_ERR_WRITE if CSR write failure.