{"id":47,"date":"2011-06-17T09:33:59","date_gmt":"2011-06-17T14:33:59","guid":{"rendered":"http:\/\/tommysprinkle.com\/txxos\/?p=47"},"modified":"2021-04-17T18:31:58","modified_gmt":"2021-04-17T23:31:58","slug":"channel-command-word","status":"publish","type":"post","link":"https:\/\/tommysprinkle.com\/txxos\/?p=47","title":{"rendered":"Channel Command Word"},"content":{"rendered":"<p>Each CCW is 64 bits (8 BYTES) in length and has the following format:<\/p>\n<p><strong>Command Code<\/strong> (Bits 0-7) Specifies the I\/O operation to be performed.<\/p>\n<p><strong>Data Address<\/strong> (Bits 8-31) Specifies the location in main storage for the data associated with the I\/O operation.<\/p>\n<p><strong>Chain Data Flag (CD)<\/strong> (Bit 32) When set to one indicates the chaining of data.\u00a0 It causes the storage area of the next CCW to be used with the current I\/O operation.\u00a0 The use of data chaining allows data to be transferred to or from noncontiguous areas of storage in a single I\/O operation.<\/p>\n<p><strong>Command Chain (CC) <\/strong>(Bit 33) When set to one, and when the CD flag is set to zero, indicates the chaining of commands.\u00a0 When the operation of the current CCW is complete and Command Chaining is active, the next CCW will become the new current I\/O operation.<\/p>\n<p><strong>Suppress Length Indication (SLI) <\/strong>(Bit 34) When set to one and the CD flag is set to zero, the incorrect length indication is suppressed.<\/p>\n<p><strong>Skip (SKIP) <\/strong>(Bit 35) When set to one the transfer of information is suppressed for read and sense operations.<\/p>\n<p><strong>Program Controlled Interrupt (PCI)<\/strong> (Bit 36) When set to one the channel will generate an interruption condition when the CCW begins execution in the channel.<\/p>\n<p><strong>Indirect Data Address (IDA) <\/strong>(Bit 37) When set to one indicates indirect addressing.\u00a0 The data address of the CCW points to an Indirect Address List instead of directly to the data.<\/p>\n<p><strong>Count <\/strong>(Bits 48-63) Specifies the number of bytes to be used for the I\/O operation.<\/p>\n<p>Bits 38-47 should always be set to zeros.<\/p>\n<p>Channel command codes are specific to each individual device but fall into general categories: Write, Read, Read Backward, Control and Sense.\u00a0 Write transfers data from the processor storage to the device, read and read backward transfer data from the device to processor storage.\u00a0 Control operations are specific to each device and generally do not involve data transfer but the data address in the CCW may point to an area in storage related to the control operation.<\/p>\n<p><a title=\"Sense Command\" href=\"http:\/\/tommysprinkle.com\/txxos\/?p=49\">[Next &#8211; Sense Command]<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each CCW is 64 bits (8 BYTES) in length and has the following format: Command Code (Bits 0-7) Specifies the I\/O operation to be performed. Data Address (Bits 8-31) Specifies the location in main storage for the data associated with &hellip; <a href=\"https:\/\/tommysprinkle.com\/txxos\/?p=47\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"template-page-builder-no-sidebar.php","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1CPQT-L","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":4,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions\/534"}],"wp:attachment":[{"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tommysprinkle.com\/txxos\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}