/src/sys/arch/evbarm/nslu2/ |
nslu2_buttons.c | 112 struct ixp425_softc *ixsc = ixp425_softc; local in function:slugbutt_deferred 118 reg = GPIO_CONF_READ_4(ixsc, IXP425_GPIO_GPOER); 120 GPIO_CONF_WRITE_4(ixsc, IXP425_GPIO_GPOER, reg); 123 reg = GPIO_CONF_READ_4(ixsc, GPIO_TYPE_REG(GPIO_BUTTON_PWR)); 126 GPIO_CONF_WRITE_4(ixsc, GPIO_TYPE_REG(GPIO_BUTTON_PWR), reg); 128 reg = GPIO_CONF_READ_4(ixsc, GPIO_TYPE_REG(GPIO_BUTTON_RST)); 131 GPIO_CONF_WRITE_4(ixsc, GPIO_TYPE_REG(GPIO_BUTTON_RST), reg); 134 GPIO_CONF_WRITE_4(ixsc, IXP425_GPIO_GPISR, SLUGBUTT_PWR_BIT |
|
nslu2_leds.c | 195 struct ixp425_softc *ixsc = ixp425_softc; local in function:slugled_defer 202 reg = GPIO_CONF_READ_4(ixsc, IXP425_GPIO_GPOER); 205 GPIO_CONF_WRITE_4(ixsc, IXP425_GPIO_GPOER, reg); 208 reg = GPIO_CONF_READ_4(ixsc, IXP425_GPIO_GPOUTR); 211 GPIO_CONF_WRITE_4(ixsc, IXP425_GPIO_GPOUTR, reg);
|