Loading files
ebabe82c7This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/litex-45734719.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
ebabe82c7This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef __MDIO_H
#define __MDIO_H
#ifdef __cplusplus
extern "C" {
#endif
#define MDIO_CLK 0x01
#define MDIO_OE 0x02
#define MDIO_DO 0x04
#define MDIO_DI 0x01
#define MDIO_PREAMBLE 0xffffffff
#define MDIO_START 0x1
#define MDIO_READ 0x2
#define MDIO_WRITE 0x1
#define MDIO_TURN_AROUND 0x2
void mdio_write(int phyadr, int reg, int val);
int mdio_read(int phyadr, int reg);
#ifdef __cplusplus
}
#endif
#endif /* __MDIO_H */