static int hpc_get_prog_int(struct slot *slot, u8 *prog_int) { struct controller *ctrl = slot->ctrl; *prog_int = shpc_readb(ctrl, PROG_INTERFACE); return 0; }
static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode) { int retval = 0; struct controller *ctrl = slot->ctrl; u16 sec_bus_status = shpc_readw(ctrl, SEC_BUS_CONFIG); u8 pi = shpc_readb(ctrl, PROG_INTERFACE); if (pi == 2) { *mode = (sec_bus_status & 0x0100) >> 8; } else {
static int hpc_get_prog_int(struct slot *slot, u8 *prog_int) { struct controller *ctrl = slot->ctrl; DBG_ENTER_ROUTINE *prog_int = shpc_readb(ctrl, PROG_INTERFACE); DBG_LEAVE_ROUTINE return 0; }