Home | History | Annotate | Download | only in dev

Lines Matching defs:ea

63 	struct ebus_attach_args		*ea = aux;
66 if (strcmp(ea->ea_name, "SUNW,envctrl") == 0 ||
67 strcmp(ea->ea_name, "SUNW,envctrltwo") == 0)
70 if (strcmp(ea->ea_name, "i2c") != 0)
73 if (OF_getprop(ea->ea_node, "compatible", compat, sizeof(compat)) == -1)
90 struct ebus_attach_args *ea = aux;
96 if (ea->ea_nreg < 1 || ea->ea_nreg > 2) {
97 printf(": expected 1 or 2 registers, got %d\n", ea->ea_nreg);
102 if ((strcmp(ea->ea_name, "SUNW,envctrl") == 0) ||
103 (strcmp(ea->ea_name, "SUNW,envctrltwo") == 0))
107 if (OF_getprop(ea->ea_node, "compatible", compat, sizeof(compat)) > 0 &&
123 if (OF_getprop(ea->ea_node, "own-address", &addr, sizeof(addr)) == -1) {
130 if (bus_space_map(ea->ea_bustag,
131 EBUS_ADDR_FROM_REG(&ea->ea_reg[0]),
132 ea->ea_reg[0].size, 0, &sc->sc_ioh) == 0) {
133 sc->sc_iot = ea->ea_bustag;
139 if (ea->ea_nreg == 2) {
144 if (bus_space_map(sc->sc_iot, EBUS_ADDR_FROM_REG(&ea->ea_reg[1]),
145 ea->ea_reg[1].size, 0, &sc->sc_ioh2) != 0) {
153 if (ea->ea_nintr >= 1)
154 esc->esc_ih = bus_intr_establish(sc->sc_iot, ea->ea_intr[0],