FreeBSD/sys/dev/extres/clk/clk.c
/*
 * Create a clock domain.  Returns with the topo lock held.
 */
Create a clock domain.  Returns with the topo lock held.
Create a clock domain . Returns with the topo lock held .
struct clkdom *
clkdom_create(device_t dev)
{
	struct clkdom *clkdom;
	clkdom = malloc(sizeof(struct clkdom), M_CLOCK, M_WAITOK | M_ZERO);
	clkdom->dev = dev;
	TAILQ_INIT(&clkdom->clknode_list);
#ifdef FDT
	clkdom->ofw_mapper = clknode_default_ofw_map;
#endif
	return (clkdom);
}
struct clkdom * clkdom_create ( device_t dev ) { struct clkdom * clkdom ; clkdom = malloc ( sizeof ( struct clkdom ) , M_CLOCK , M_WAITOK | M_ZERO ) ; clkdom -> dev = dev ; TAILQ_INIT ( & clkdom -> clknode_list ) ; #ifdef FDT clkdom -> ofw_mapper = clknode_default_ofw_map ; #endif return ( clkdom ) ; }
Create a clock domain.
Create a clock domain .