xref: /illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/fsm.txt (revision 5422785d352a2bb398daceab3d1898a8aa64d006)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2000 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ident	"%Z%%M%	%I%	%E% SMI"
28
29
30	/*
31	 * The interrupt reason can be interpreted
32	 * from other bits as follows:
33	 *
34	 *  DRQ  IO  CoD
35	 *  ---  --  ---
36	 *    0   0    1  Idle
37	 *    1   0    1  Send ATAPI CDB to device
38	 *    1   1    0  Data from device
39	 *    1   0    0  Data to device
40	 *    1   1    1  Future use
41	 *    0   1    1  Status ready
42	 *
43	 */
44
45			ACTION
46
47			ATAPI Status Bits
48Current	|
49State	|	idle	cdb	datain		dataout		status
50        |-----------------------------------------------------------------
51idle	|	cmd	cmd	cmd		cmd		cmd
52command	|	*	sendcdb	*		*		rd-intr-reason
53cdb	|	*	*	start-xfer	start-xfer	rd-intr-reason
54datain	|	*	*	continue-xfer	*		rd-intr-reason
55dataout	|	*	*	*		continue-xfer	rd-intr-reason
56
57
58
59			NEXT-STATE
60
61			ATAPI Status Bits
62Current	|
63State	|	idle	cdb	datain		dataout		status
64 	|-----------------------------------------------------------------
65idle	|	command	command	command		command		command
66command	|	*	cdb	*		*		*
67cdb	|	*	*	datain		dataout		(idle)
68datain	|	*	*	datain		*		(idle)
69dataout	|	*	*	*		dataout		(idle)
70
71
72
73States marked '*' should be invalid but some non-complaint drives
74don't transition correctly between states.
75