<def f='src/src/sys/dev/pci/amrio.h' l='100' ll='109'/>
<size>56</size>
<doc f='src/src/sys/dev/pci/amrio.h' l='73'>/*
 * Pass a command from userspace through to the adapter.
 *
 * Note that in order to be code-compatible with the Linux
 * interface where possible, the formatting of the au_cmd field is
 * somewhat Interesting.
 *
 * For normal commands, the layout is (fields from struct amr_mailbox_ioctl):
 *
 * 0		mb_command
 * 1		mb_channel
 * 2		mb_param
 * 3		mb_pad[0]
 * 4		mb_drive
 *
 * For SCSI passthrough commands, the layout is:
 *
 * 0		AMR_CMD_PASS	(0x3)
 * 1		reserved, 0
 * 2		cdb length
 * 3		cdb data
 * 3+cdb_len	passthrough control byte (timeout, ars, islogical)
 * 4+cdb_len	reserved, 0
 * 5+cdb_len	channel
 * 6+cdb_len	target
 */</doc>
<mbr r='amr_user_ioctl::au_cmd' o='0' t='unsigned char [32]'/>
<mbr r='amr_user_ioctl::au_buffer' o='256' t='void *'/>
<mbr r='amr_user_ioctl::au_length' o='320' t='unsigned long'/>
<mbr r='amr_user_ioctl::au_direction' o='384' t='int'/>
<mbr r='amr_user_ioctl::au_status' o='416' t='int'/>
