diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/scsi.h | 4 | ||||
| -rw-r--r-- | include/usb.h | 4 | 
2 files changed, 6 insertions, 2 deletions
| diff --git a/include/scsi.h b/include/scsi.h index c52759c78..89ae45f8e 100644 --- a/include/scsi.h +++ b/include/scsi.h @@ -26,7 +26,9 @@  typedef struct SCSI_cmd_block{  	unsigned char		cmd[16];					/* command				   */ -	unsigned char		sense_buf[64];		/* for request sense */ +	/* for request sense */ +	unsigned char		sense_buf[64] +		__attribute__((aligned(ARCH_DMA_MINALIGN)));  	unsigned char		status;						/* SCSI Status			 */  	unsigned char		target;						/* Target ID				 */  	unsigned char		lun;							/* Target LUN        */ diff --git a/include/usb.h b/include/usb.h index 48e4bcda5..6da91e723 100644 --- a/include/usb.h +++ b/include/usb.h @@ -109,7 +109,9 @@ struct usb_device {  	int epmaxpacketout[16];		/* OUTput endpoint specific maximums */  	int configno;			/* selected config number */ -	struct usb_device_descriptor descriptor; /* Device Descriptor */ +	/* Device Descriptor */ +	struct usb_device_descriptor descriptor +		__attribute__((aligned(ARCH_DMA_MINALIGN)));  	struct usb_config config; /* config descriptor */  	int have_langid;		/* whether string_langid is valid yet */ |