channels/smartcard: modify operation functions to take SMARTCARD_OPERATION*