Lines Matching defs:ec_sc
79 uint8_t ec_ok; /* != 0 if we have ec_base, ec_sc */
81 uint16_t ec_sc; /* EC status/command */
164 sc = inb(ec.ec_sc);
176 outb(ec.ec_sc, EC_RD); /* output a read command */
177 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
185 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
191 if (ec_wait_obf_set(ec.ec_sc) < 0) {
213 sc = inb(ec.ec_sc);
225 outb(ec.ec_sc, EC_WR); /* output a write command */
226 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
234 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
242 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
263 outb(ec.ec_sc, EC_QR); /* output a query command */
264 if (ec_wait_ibf_clear(ec.ec_sc) < 0) {
271 if (ec_wait_obf_set(ec.ec_sc) < 0) {
285 * Requires: ec.ec_sc, ec.ec_base
355 if (!(inb(ec.ec_sc) & EC_SCI))
438 ec.ec_sc = ecdt->Control.Address;
476 uint16_t ec_sc, ec_base;
490 * Find ec_base and ec_sc addresses
511 * first port is ec_base and second is ec_sc
517 ec_sc = (io_port->min_base_hi << 8) |
577 ec.ec_sc = ec_sc;
607 if (inb(ec.ec_sc) & EC_OBF) {