19 lines
640 B
C
19 lines
640 B
C
struct gsc3280mac_timer {
|
|
void (*timer_start) (unsigned int new_freq);
|
|
void (*timer_stop) (void);
|
|
unsigned int freq;
|
|
unsigned int enable;
|
|
};
|
|
|
|
/* Open the HW timer device and return 0 in case of success */
|
|
int gsc3280mac_open_ext_timer(struct net_device *dev, struct gsc3280mac_timer *tm);
|
|
/* Stop the timer and release it */
|
|
int gsc3280mac_close_ext_timer(void);
|
|
/* Function used for scheduling task within the gsc3280mac */
|
|
void gsc3280mac_schedule(struct net_device *dev);
|
|
|
|
#if defined(CONFIG_GSC3280MAC_TMU_TIMER)
|
|
extern int tmu2_register_user(void *fnt, void *data);
|
|
extern void tmu2_unregister_user(void);
|
|
#endif
|