- usb_dev_bulk (mci->eop_out, &cbw, sizeof (cbw), &tx);
- usb_dev_bulk (mci->eop_in, &buf, sizeof (buf), &tx);
+ usb_dev_bulk (mci->eop_out, &cbw, sizeof cbw, &tx);
+ if (tx != sizeof cbw)
+ PANIC ("send cbw");
+ usb_dev_bulk (mci->eop_in, &cap, sizeof cap, &tx);
+ if (tx != sizeof cap)
+ PANIC ("recv cap");
+ usb_dev_bulk (mci->eop_in, &csw, sizeof csw, &tx);
+ if (tx != sizeof csw)
+ PANIC ("recv csw");