Searched refs:ocotp (Results 1 - 3 of 3) sorted by relevance

/seL4-test-master/projects/util_libs/libethdrivers/src/plat/imx6/
H A Docotp_ctrl.h17 struct ocotp;
19 struct ocotp *ocotp_init(ps_io_mapper_t *io_mapper);
20 void ocotp_free(struct ocotp *ocotp, ps_io_mapper_t *io_mapper);
22 int ocotp_get_mac(struct ocotp* ocotp, unsigned char *mac);
H A Docotp_ctrl.c21 * NOTE: ocotp clock is sources by ipg_clk but must be gated
161 struct ocotp { struct
167 static inline ocotp_regs_t *ocotp_get_regs(struct ocotp *ocotp) argument
169 return (ocotp_regs_t *)ocotp;
172 struct ocotp *
175 return (struct ocotp *)RESOURCE(io_mapper, IMX6_OCOTP);
178 void ocotp_free(struct ocotp *ocotp, ps_io_mapper_t *io_mapper) argument
180 UNRESOURCE(io_mapper, IMX6_OCOTP, ocotp);
183 ocotp_get_mac(struct ocotp *ocotp, unsigned char *mac) argument
[all...]
H A Dimx6.c381 struct ocotp *ocotp = NULL; local
413 ocotp = ocotp_init(&io_ops.io_mapper);
414 if (!ocotp) {
415 LOG_ERROR("Failed to initialize ocotp");
446 if (ocotp == NULL || ocotp_get_mac(ocotp, mac)) {
468 if (ocotp) {
469 ocotp_free(ocotp, &io_ops.io_mapper);

Completed in 37 milliseconds