An apparatus controls a card device. The apparatus includes an interface unit
and a control unit. The interface unit receives a command issued by a host system.
The received command contains an operation command designating an operation to
be performed by the card device and execution state information showing a state
in which the card device performs the operation designated by the operation command.
The control unit performs a process of changing the state of the card device to
a state designated by the execution state information contained in the received
command, a process of issuing to the card device the operation command contained
in the received command, and a process of setting the card device back to a specific state.