version 1.1.6.3, 2005/12/11 10:28:36 |
version 1.2, 2005/11/14 19:11:24 |
Line 72 clkctrl_attach(struct device *parent, st |
|
Line 72 clkctrl_attach(struct device *parent, st |
|
struct sbus_attach_args *sa = &uoba->uoba_sbus; |
struct sbus_attach_args *sa = &uoba->uoba_sbus; |
bus_space_handle_t bh; |
bus_space_handle_t bh; |
struct cpu_info *cur; |
struct cpu_info *cur; |
|
|
if (clkctrl_reg != NULL) { |
if (clkctrl_reg != NULL) { |
aprint_error("unable to attach more than once\n"); |
aprint_error("unable to attach more than once\n"); |
return; |
return; |
Line 87 clkctrl_attach(struct device *parent, st |
|
Line 87 clkctrl_attach(struct device *parent, st |
|
|
|
clkctrl_reg = (volatile uint8_t *)bus_space_vaddr(sa->sa_bustag, bh); |
clkctrl_reg = (volatile uint8_t *)bus_space_vaddr(sa->sa_bustag, bh); |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
printf(" reg: %x", (uint32_t)clkctrl_reg); |
printf(" reg: %x", (uint32_t)clkctrl_reg); |
#endif |
#endif |
cur = curcpu(); |
cur = curcpu(); |
cur->idlespin = tadpole_cpu_sleep; |
cur->idlespin = tadpole_cpu_sleep; |
|
|
printf("\n"); |
printf("\n"); |
} |
} |
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static void |
static void |
tadpole_cpu_sleep(struct cpu_info *ci) |
tadpole_cpu_sleep(struct cpu_info *ci) |
{ |
{ |
if (clkctrl_reg == 0) |
if (clkctrl_reg == 0) |