Annotation of kernel/bsd/dev/ppc/drvPPCATA/IdeCntCmds.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: 
                     25: // Copyright 1997 by Apple Computer, Inc., all rights reserved.
                     26: /*
                     27:  * Copyright (c) 1994-1997 NeXT Software, Inc.  All rights reserved. 
                     28:  *
                     29:  * IdeCntCmds.m - IDE commands interface. 
                     30:  *
                     31:  * HISTORY 
                     32:  * 17-July-1994        Rakesh Dubey at NeXT 
                     33:  *     Created. 
                     34:  */
                     35: 
                     36: #import <driverkit/return.h>
                     37: #import <driverkit/driverTypes.h>
                     38: #import <driverkit/IODevice.h>
                     39: #import <driverkit/ppc/directDevice.h>
                     40: #import <driverkit/generalFuncs.h>
                     41: #import "IdeCntPublic.h"
                     42: 
                     43: 
                     44: /*
                     45:  * IDE commands to the controller. These methods are used by the Disk objects
                     46:  * via the IdeSendCmd:ToDrive: interface. They also might be invoked by one
                     47:  * of the internal methods. 
                     48:  */
                     49: 
                     50: @interface IdeController(Commands)
                     51: 
                     52: /*
                     53:  * The following commands use the revelant register values from
                     54:  * ideRegsAddrs as inputs. In case of a command failure (i.e., when the
                     55:  * returned value is IDER_CMD_ERROR, all registers are dumped into 
                     56:  * ideRegsAddrs structure.
                     57:  */
                     58: 
                     59: - (ide_return_t) ideReadGetInfoCommon:(ideRegsVal_t *)ideRegs 
                     60:                        client:(struct vm_map *)client 
                     61:                        addr:(caddr_t)xferAddr 
                     62:                        command:(unsigned)cmd;
                     63: 
                     64: - (ide_return_t) ideReadMultiple:(ideRegsVal_t *)ideRegs 
                     65:                        client:(struct vm_map *)client 
                     66:                        addr:(caddr_t)xferAddr;
                     67: 
                     68: - (ide_return_t) ideWrite:(ideRegsVal_t *)ideRegs 
                     69:                        client:(struct vm_map *)client  
                     70:                        addr:(caddr_t)addr;
                     71: 
                     72: - (ide_return_t) ideWriteMultiple:(ideRegsVal_t *)ideRegs 
                     73:                        client: (struct vm_map *)client 
                     74:                        addr:(caddr_t)addr;
                     75: 
                     76: - (ide_return_t) ideReadVerifySeekCommon:(ideRegsVal_t *)ideRegs 
                     77:                        command:(unsigned)cmd;
                     78: 
                     79: /*
                     80:  * ideDiagnose and ideSetParams:numHeads:ForDrive are also used by the
                     81:  * controller class. 
                     82:  */
                     83: 
                     84: - (ide_return_t)ideDiagnose:(unsigned *)error;
                     85: 
                     86: - (ide_return_t)ideSetParams:(unsigned)sectCnt numHeads:(unsigned)nHeads
                     87:                        ForDrive:(unsigned)drive;
                     88:                        
                     89: - (ide_return_t)ideSetDriveFeature:(unsigned)feature value:(unsigned)val;
                     90:                        
                     91: - (ide_return_t) ideRestore:(ideRegsVal_t *)ideRegs;
                     92: 
                     93: - (ide_return_t) ideSetMultiSectorMode:(ideRegsVal_t *)ideRegs 
                     94:                        numSectors:(unsigned char)nSectors;
                     95: 
                     96: 
                     97: - (ideRegsVal_t)logToPhys:(unsigned)block numOfBlocks:(unsigned)nblk;
                     98: 
                     99: /*
                    100:  * These methods are used by the IdeDisk class. 
                    101:  */
                    102: - (IOReturn) _ideExecuteCmd : (ideIoReq_t *)ideIoReq  
                    103:                 ToDrive: (unsigned char) drive;
                    104: 
                    105: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.