This repository holds a C program designed to translate MMD register interactions into SPI data. It was specifically written for use with the KSZ9896C, but I believe would also work for the KSZ9897 ...