summaryrefslogtreecommitdiff
path: root/sys/arch/arm/imx/imxclockvar.h
blob: d1e1d8e7852f9b62fd5a5bcfccbc7d8f5b5b62fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _ARM_IMX_IMXCLOCKVAR_H
#define	_ARM_IMX_IMXCLOCKVAR_H

struct imxclock_softc {
	device_t sc_dev;
	bus_space_tag_t sc_iot;
	bus_space_handle_t sc_ioh;
	int sc_intr;

	int sc_reload_value;

	uint32_t sc_clksrc;

	void *sc_ih;			/* interrupt handler */
};

extern struct imxclock_softc *epit1_sc, *epit2_sc;

int imxclock_get_timerfreq(struct imxclock_softc *);
#endif	/* _ARM_IMX_IMXCLOCKVAR_H */