public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* struct dmtimer definition not available in header file
@ 2010-03-10 14:25 Gurav , Pramod
  2010-03-10 17:00 ` Kevin Hilman
  0 siblings, 1 reply; 6+ messages in thread
From: Gurav , Pramod @ 2010-03-10 14:25 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

Hi All,
I am using dmtimer in my code. Code looks like this:

{
        static struct omap_dm_timer *gpt;
        void * __iomem gpt10_counter_reg;
        unsigned long gpt_phys_base;

        omap_dm_timer_init();
        gpt = omap_dm_timer_request();
        if (!gpt) {
                pr_err("Could not get the gptimer\n");
                return -1;
        }
        omap_dm_timer_set_source(gpt, OMAP_TIMER_SRC_SYS_CLK);

        gpt_phys_base = gpt->phys_base;

        gpt10_counter_reg =
                        OMAP2_L4_IO_ADDRESS(gpt_phys_base +
                                        OMAP_TIMER_COUNTER_OFFSET);

        gt_rate = clk_get_rate(omap_dm_timer_get_fclk(gpt));
        omap_dm_timer_set_load_start(gpt, 0, 0);
	
	.
	.
	.
}

I am not able to reference *gpt as the file does not know about struct omap_dm_timer. I have included plat/dmtimer.h.

Why doesn't the dmtimer struct definition appear in plat/dmtimer.h ?
Is there any reason for this?

-
Thanks and Best Regards
Pramod Gurav


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-03-11 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10 14:25 struct dmtimer definition not available in header file Gurav , Pramod
2010-03-10 17:00 ` Kevin Hilman
2010-03-10 20:57   ` Cousson, Benoit
2010-03-11  4:57     ` Gurav , Pramod
2010-03-11 10:24       ` Cousson, Benoit
2010-03-10 22:37   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox