[BACK]Return to clock.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / arch / arm / mach-ns9xxx

File: [Development] / linux-2.6-xfs / arch / arm / mach-ns9xxx / clock.h (download)

Revision 1.1, Mon Aug 4 17:03:13 2008 UTC (9 years, 2 months ago) by lachlan.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD

Merge up to 2.6.26
Merge of 2.6.x-xfs-melb:linux:31804b by kenmcd.

/*
 * arch/arm/mach-ns9xxx/clock.h
 *
 * Copyright (C) 2007 by Digi International Inc.
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 */
#ifndef __NS9XXX_CLOCK_H
#define __NS9XXX_CLOCK_H

#include <linux/list.h>

struct clk {
	struct module *owner;
	const char *name;
	int id;

	struct clk *parent;

	unsigned long rate;
	int (*endisable)(struct clk *, int enable);
	unsigned long (*get_rate)(struct clk *);

	struct list_head node;
	unsigned long refcount;
	unsigned long usage;
};

int clk_register(struct clk *clk);
int clk_unregister(struct clk *clk);

#endif /* ifndef __NS9XXX_CLOCK_H */