M pc/ether82557.c => pc/ether82557.c +2 -1
@@ 1,10 1,11 @@
/*
* Intel 82557 Fast Ethernet PCI Bus LAN Controller
* as found on the Intel EtherExpress PRO/100B. This chip is full
- * of smarts, unfortunately none of them are in the right place.
+ * of smarts, unfortunately they're not all in the right place.
* To do:
* the PCI scanning code could be made common to other adapters;
* auto-negotiation;
+ * full-duplex;
* optionally use memory-mapped registers.
*/
#include "u.h"
M pc/scsi.c => pc/scsi.c +4 -2
@@ 539,8 539,10 @@ scsireadcdda(Target *t, char lun, int, void *b, long n, long bsize, long bno)
cmd[3] = bno>>16;
cmd[4] = bno>>8;
cmd[5] = bno;
- cmd[6] = n>>8;
- cmd[7] = n;
+ cmd[6] = n>>24;
+ cmd[7] = n>>16;
+ cmd[8] = n>>8;
+ cmd[9] = n;
nbytes = n*bsize;
s = scsiexec(t, SCSIread, cmd, sizeof(cmd), b, &nbytes);