2 Header file for IDE Bus Driver, containing the helper functions'
5 Copyright (c) 2006 - 2007 Intel Corporation. <BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 @par Revision Reference:
15 2002-6: Add Atapi6 enhancement, support >120GB hard disk, including
16 Add - IDEBlkIoReadBlocksExt() func definition
17 Add - IDEBlkIoWriteBlocksExt() func definition
25 // Helper functions Prototype
28 read a one-byte data from a IDE port.
30 @param PciIo The PCI IO protocol instance
31 @param Port the IDE Port number
33 return the one-byte data read from IDE port
37 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
42 Reads multiple words of data from the IDE data port.
43 Call the IO abstraction once to do the complete read,
44 not one word at a time.
46 @param PciIo Pointer to the EFI_PCI_IO instance
47 @param Port IO port to read
48 @param Count No. of UINT16's to read
49 @param Buffer Pointer to the data buffer for read
53 IDEReadPortWMultiple (
54 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
61 write a 1-byte data to a specific IDE port.
63 @param PciIo PCI IO protocol instance
64 @param Port The IDE port to be writen
65 @param Data The data to write to the port
69 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
75 write a 1-word data to a specific IDE port.
77 @param PciIo PCI IO protocol instance
78 @param Port The IDE port to be writen
79 @param Data The data to write to the port
83 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
89 Write multiple words of data to the IDE data port.
90 Call the IO abstraction once to do the complete read,
91 not one word at a time.
93 @param PciIo Pointer to the EFI_PCI_IO instance
94 @param Port IO port to read
95 @param Count No. of UINT16's to read
96 @param Buffer Pointer to the data buffer for read
100 IDEWritePortWMultiple (
101 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
108 Get IDE IO port registers' base addresses by mode. In 'Compatibility' mode,
109 use fixed addresses. In Native-PCI mode, get base addresses from BARs in
110 the PCI IDE controller's Configuration Space.
112 The steps to get IDE IO port registers' base addresses for each channel
115 1. Examine the Programming Interface byte of the Class Code fields in PCI IDE
116 controller's Configuration Space to determine the operating mode.
118 2. a) In 'Compatibility' mode, use fixed addresses shown in the Table 1 below.
120 ___________________________________________
121 | | Command Block | Control Block |
122 | Channel | Registers | Registers |
123 |___________|_______________|_______________|
124 | Primary | 1F0h - 1F7h | 3F6h - 3F7h |
125 |___________|_______________|_______________|
126 | Secondary | 170h - 177h | 376h - 377h |
127 |___________|_______________|_______________|
129 Table 1. Compatibility resource mappings
132 b) In Native-PCI mode, IDE registers are mapped into IO space using the BARs
133 in IDE controller's PCI Configuration Space, shown in the Table 2 below.
135 ___________________________________________________
136 | | Command Block | Control Block |
137 | Channel | Registers | Registers |
138 |___________|___________________|___________________|
139 | Primary | BAR at offset 0x10| BAR at offset 0x14|
140 |___________|___________________|___________________|
141 | Secondary | BAR at offset 0x18| BAR at offset 0x1C|
142 |___________|___________________|___________________|
144 Table 2. BARs for Register Mapping
146 @note Refer to Intel ICH4 datasheet, Control Block Offset: 03F4h for
147 primary, 0374h for secondary. So 2 bytes extra offset should be
148 added to the base addresses read from BARs.
150 For more details, please refer to PCI IDE Controller Specification and Intel
153 @param PciIo Pointer to the EFI_PCI_IO_PROTOCOL instance
154 @param IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to
155 receive IDE IO port registers' base addresses
157 @retval EFI_UNSUPPORTED return this value when the BARs is not IO type
158 @retval EFI_SUCCESS Get the Base address successfully
159 @retval other read the pci configureation data error
163 GetIdeRegistersBaseAddr (
164 IN EFI_PCI_IO_PROTOCOL
*PciIo
,
165 OUT IDE_REGISTERS_BASE_ADDR
*IdeRegsBaseAddr
169 This function is used to requery IDE resources. The IDE controller will
170 probably switch between native and legacy modes during the EFI->CSM->OS
171 transfer. We do this everytime before an BlkIo operation to ensure its
174 @param IdeDev The BLK_IO private data which specifies the IDE device
176 @retval EFI_INVALID_PARAMETER return this value when the channel is invalid
177 @retval EFI_SUCCESS reassign the IDE IO resource successfully
178 @retval other get the IDE current base address effor
182 ReassignIdeResources (
183 IN IDE_BLK_IO_DEV
*IdeDev
187 Detect if there is disk attached to this port.
189 @param IdeDev The BLK_IO private data which specifies the IDE device.
191 @retval EFI_NOT_FOUND The device or channel is not found
192 @retval EFI_SUCCESS The device is found
197 IN IDE_BLK_IO_DEV
*IdeDev
201 This interface is used to initialize all state data related to the
202 detection of one channel.
204 @retval EFI_SUCCESS Completed successfully.
208 InitializeIDEChannelData (
213 This function is used to poll for the DRQ bit clear in the Status
214 Register. DRQ is cleared when the device is finished transferring data.
215 So this function is called after data transfer is finished.
217 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
218 to record all the information of the IDE device.
219 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ clear.
221 @retval EFI_SUCCESS DRQ bit clear within the time out.
223 @retval EFI_TIMEOUT DRQ bit not clear within the time out.
226 Read Status Register will clear interrupt status.
231 IN IDE_BLK_IO_DEV
*IdeDev
,
232 IN UINTN TimeoutInMilliSeconds
236 This function is used to poll for the DRQ bit clear in the Alternate
237 Status Register. DRQ is cleared when the device is finished
238 transferring data. So this function is called after data transfer
241 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
242 to record all the information of the IDE device.
244 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ clear.
246 @retval EFI_SUCCESS DRQ bit clear within the time out.
248 @retval EFI_TIMEOUT DRQ bit not clear within the time out.
250 Read Alternate Status Register will not clear interrupt status.
255 IN IDE_BLK_IO_DEV
*IdeDev
,
256 IN UINTN TimeoutInMilliSeconds
260 This function is used to poll for the DRQ bit set in the
262 DRQ is set when the device is ready to transfer data. So this function
263 is called after the command is sent to the device and before required
266 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to
267 record all the information of the IDE device.
268 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
270 @retval EFI_SUCCESS DRQ bit set within the time out.
271 @retval EFI_TIMEOUT DRQ bit not set within the time out.
272 @retval EFI_ABORTED DRQ bit not set caused by the command abort.
274 @note Read Status Register will clear interrupt status.
279 IN IDE_BLK_IO_DEV
*IdeDev
,
280 IN UINTN TimeoutInMilliSeconds
284 This function is used to poll for the DRQ bit set in the Alternate Status Register.
285 DRQ is set when the device is ready to transfer data. So this function is called after
286 the command is sent to the device and before required data is transferred.
288 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to
289 record all the information of the IDE device.
291 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
293 @retval EFI_SUCCESS DRQ bit set within the time out.
294 @retval EFI_TIMEOUT DRQ bit not set within the time out.
295 @retval EFI_ABORTED DRQ bit not set caused by the command abort.
296 @note Read Alternate Status Register will not clear interrupt status.
301 IN IDE_BLK_IO_DEV
*IdeDev
,
302 IN UINTN TimeoutInMilliSeconds
306 This function is used to poll for the BSY bit clear in the Status Register. BSY
307 is clear when the device is not busy. Every command must be sent after device is not busy.
309 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
310 to record all the information of the IDE device.
311 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
313 @retval EFI_SUCCESS BSY bit clear within the time out.
314 @retval EFI_TIMEOUT BSY bit not clear within the time out.
316 @note Read Status Register will clear interrupt status.
320 IN IDE_BLK_IO_DEV
*IdeDev
,
321 IN UINTN TimeoutInMilliSeconds
325 This function is used to poll for the BSY bit clear in the Alternate Status Register.
326 BSY is clear when the device is not busy. Every command must be sent after device is
329 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to record
330 all the information of the IDE device.
331 @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.
333 @retval EFI_SUCCESS BSY bit clear within the time out.
334 @retval EFI_TIMEOUT BSY bit not clear within the time out.
335 @note Read Alternate Status Register will not clear interrupt status.
340 IN IDE_BLK_IO_DEV
*IdeDev
,
341 IN UINTN TimeoutInMilliSeconds
345 This function is used to poll for the DRDY bit set in the Status Register. DRDY
346 bit is set when the device is ready to accept command. Most ATA commands must be
347 sent after DRDY set except the ATAPI Packet Command.
349 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
350 to record all the information of the IDE device.
351 @param DelayInMilliSeconds used to designate the timeout for the DRQ ready.
353 @retval EFI_SUCCESS DRDY bit set within the time out.
354 @retval EFI_TIMEOUT DRDY bit not set within the time out.
356 @note Read Status Register will clear interrupt status.
360 IN IDE_BLK_IO_DEV
*IdeDev
,
361 IN UINTN DelayInMilliSeconds
365 This function is used to poll for the DRDY bit set in the Alternate Status Register.
366 DRDY bit is set when the device is ready to accept command. Most ATA commands must
367 be sent after DRDY set except the ATAPI Packet Command.
369 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
370 to record all the information of the IDE device.
371 @param DelayInMilliSeconds used to designate the timeout for the DRQ ready.
373 @retval EFI_SUCCESS DRDY bit set within the time out.
374 @retval EFI_TIMEOUT DRDY bit not set within the time out.
376 @note Read Alternate Status Register will clear interrupt status.
381 IN IDE_BLK_IO_DEV
*IdeDev
,
382 IN UINTN DelayInMilliSeconds
386 // ATA device functions' prototype
389 Sends out an ATA Identify Command to the specified device.
391 This function is called by DiscoverIdeDevice() during its device
392 identification. It sends out the ATA Identify Command to the
393 specified device. Only ATA device responses to this command. If
394 the command succeeds, it returns the Identify data structure which
395 contains information about the device. This function extracts the
396 information it needs to fill the IDE_BLK_IO_DEV data structure,
397 including device type, media block size, media capacity, and etc.
399 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure,used to record
400 all the information of the IDE device.
402 @retval EFI_SUCCESS Identify ATA device successfully.
403 @retval EFI_DEVICE_ERROR ATA Identify Device Command failed or device is not ATA device.
404 @note parameter IdeDev will be updated in this function.
409 IN IDE_BLK_IO_DEV
*IdeDev
413 This function is called by ATAIdentify() or ATAPIIdentify() to print device's module name.
415 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to record
416 all the information of the IDE device.
420 IN IDE_BLK_IO_DEV
*IdeDev
423 This function is used to send out ATA commands conforms to the PIO Data In Protocol.
425 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to record
426 all the information of the IDE device.
427 @param Buffer buffer contained data transferred from device to host.
428 @param ByteCount data size in byte unit of the buffer.
429 @param AtaCommand value of the Command Register
430 @param Head value of the Head/Device Register
431 @param SectorCount value of the Sector Count Register
432 @param SectorNumber value of the Sector Number Register
433 @param CylinderLsb value of the low byte of the Cylinder Register
434 @param CylinderMsb value of the high byte of the Cylinder Register
436 @retval EFI_SUCCESS send out the ATA command and device send required data successfully.
437 @retval EFI_DEVICE_ERROR command sent failed.
442 IN IDE_BLK_IO_DEV
*IdeDev
,
447 IN UINT8 SectorCount
,
448 IN UINT8 SectorNumber
,
449 IN UINT8 CylinderLsb
,
454 This function is used to send out ATA commands conforms to the
455 PIO Data Out Protocol.
457 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
458 to record all the information of the IDE device.
459 @param *Buffer buffer contained data transferred from host to device.
460 @param ByteCount data size in byte unit of the buffer.
461 @param AtaCommand value of the Command Register
462 @param Head value of the Head/Device Register
463 @param SectorCount value of the Sector Count Register
464 @param SectorNumber value of the Sector Number Register
465 @param CylinderLsb value of the low byte of the Cylinder Register
466 @param CylinderMsb value of the high byte of the Cylinder Register
468 @retval EFI_SUCCESS send out the ATA command and device received required
470 @retval EFI_DEVICE_ERROR command sent failed.
475 IN IDE_BLK_IO_DEV
*IdeDev
,
480 IN UINT8 SectorCount
,
481 IN UINT8 SectorNumber
,
482 IN UINT8 CylinderLsb
,
487 This function is used to analyze the Status Register and print out
488 some debug information and if there is ERR bit set in the Status
489 Register, the Error Register's value is also be parsed and print out.
491 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to
492 record all the information of the IDE device.
494 @retval EFI_SUCCESS No err information in the Status Register.
495 @retval EFI_DEVICE_ERROR Any err information in the Status Register.
500 IN IDE_BLK_IO_DEV
*IdeDev
504 This function is used to implement the Soft Reset on the specified device. But,
505 the ATA Soft Reset mechanism is so strong a reset method that it will force
506 resetting on both devices connected to the same cable.
508 It is called by IdeBlkIoReset(), a interface function of Block
511 This function can also be used by the ATAPI device to perform reset when
512 ATAPI Reset command is failed.
514 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used to record
515 all the information of the IDE device.
516 @retval EFI_SUCCESS Soft reset completes successfully.
517 @retval EFI_DEVICE_ERROR Any step during the reset process is failed.
519 @note The registers initial values after ATA soft reset are different
520 to the ATA device and ATAPI device.
524 IN IDE_BLK_IO_DEV
*IdeDev
528 This function is the ATA implementation for ReadBlocks in the
529 Block I/O Protocol interface.
531 @param IdeBlkIoDevice Indicates the calling context.
532 @param MediaId The media id that the read request is for.
533 @param Lba The starting logical block address to read from on the device.
534 @param BufferSize The size of the Buffer in bytes. This must be a multiple
535 of the intrinsic block size of the device.
537 @param Buffer A pointer to the destination buffer for the data. The caller
538 is responsible for either having implicit or explicit ownership
539 of the memory that data is read into.
541 @retval EFI_SUCCESS Read Blocks successfully.
542 @retval EFI_DEVICE_ERROR Read Blocks failed.
543 @retval EFI_NO_MEDIA There is no media in the device.
544 @retval EFI_MEDIA_CHANGE The MediaId is not for the current media.
545 @retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
546 intrinsic block size of the device.
547 @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
548 or the data buffer is not valid.
550 @note If Read Block error because of device error, this function will call
551 AtaSoftReset() function to reset device.
556 IN IDE_BLK_IO_DEV
*IdeBlkIoDevice
,
564 This function is the ATA implementation for WriteBlocks in the
565 Block I/O Protocol interface.
567 @param IdeBlkIoDevice Indicates the calling context.
568 @param MediaId The media id that the write request is for.
569 @param Lba The starting logical block address to write onto the device.
570 @param BufferSize The size of the Buffer in bytes. This must be a multiple
571 of the intrinsic block size of the device.
572 @param Buffer A pointer to the source buffer for the data.The caller
573 is responsible for either having implicit or explicit
574 ownership of the memory that data is written from.
576 @retval EFI_SUCCESS Write Blocks successfully.
577 @retval EFI_DEVICE_ERROR Write Blocks failed.
578 @retval EFI_NO_MEDIA There is no media in the device.
579 @retval EFI_MEDIA_CHANGE The MediaId is not for the current media.
581 @retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
582 intrinsic block size of the device.
583 @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
584 or the data buffer is not valid.
586 @note If Write Block error because of device error, this function will call
587 AtaSoftReset() function to reset device.
590 AtaBlkIoWriteBlocks (
591 IN IDE_BLK_IO_DEV
*IdeBlkIoDevice
,
599 This function is called by DiscoverIdeDevice() during its device
601 Its main purpose is to get enough information for the device media
602 to fill in the Media data structure of the Block I/O Protocol interface.
604 There are 5 steps to reach such objective:
605 1. Sends out the ATAPI Identify Command to the specified device.
606 Only ATAPI device responses to this command. If the command succeeds,
607 it returns the Identify data structure which filled with information
608 about the device. Since the ATAPI device contains removable media,
609 the only meaningful information is the device module name.
610 2. Sends out ATAPI Inquiry Packet Command to the specified device.
611 This command will return inquiry data of the device, which contains
612 the device type information.
613 3. Allocate sense data space for future use. We don't detect the media
614 presence here to improvement boot performance, especially when CD
615 media is present. The media detection will be performed just before
616 each BLK_IO read/write
618 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
619 to record all the information of the IDE device.
621 @retval EFI_SUCCESS Identify ATAPI device successfully.
622 @retval EFI_DEVICE_ERROR ATAPI Identify Device Command failed or device type
623 is not supported by this IDE driver.
624 @retval EFI_OUT_OF_RESOURCES Allocate memory for sense data failed
626 @note Parameter "IdeDev" will be updated in this function.
630 IN IDE_BLK_IO_DEV
*IdeDev
634 This function is used to implement the Soft Reset on the specified
635 ATAPI device. Different from the AtaSoftReset(), here reset is a ATA
636 Soft Reset Command special for ATAPI device, and it only take effects
637 on the specified ATAPI device, not on the whole IDE bus.
638 Since the ATAPI soft reset is needed when device is in exceptional
639 condition (such as BSY bit is always set ), I think the Soft Reset
640 command should be sent without waiting for the BSY clear and DRDY
642 This function is called by IdeBlkIoReset(),
643 a interface function of Block I/O protocol.
645 @param IdeDev pointer pointing to IDE_BLK_IO_DEV data structure, used
646 to record all the information of the IDE device.
648 @retval EFI_SUCCESS Soft reset completes successfully.
649 @retval EFI_DEVICE_ERROR Any step during the reset process is failed.
654 IN IDE_BLK_IO_DEV
*IdeDev
658 This function is the ATAPI implementation for ReadBlocks in the
659 Block I/O Protocol interface.
661 @param IdeBlkIoDevice Indicates the calling context.
662 @param MediaId The media id that the read request is for.
663 @param Lba The starting logical block address to read from on the device.
664 @param BufferSize The size of the Buffer in bytes. This must be a multiple
665 of the intrinsic block size of the device.
666 @param Buffer A pointer to the destination buffer for the data. The caller
667 is responsible for either having implicit or explicit
668 ownership of the memory that data is read into.
670 @retval EFI_SUCCESS Read Blocks successfully.
671 @retval EFI_DEVICE_ERROR Read Blocks failed.
672 @retval EFI_NO_MEDIA There is no media in the device.
673 @retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
674 @retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
675 intrinsic block size of the device.
676 @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
677 or the data buffer is not valid.
680 AtapiBlkIoReadBlocks (
681 IN IDE_BLK_IO_DEV
*IdeBlkIoDevice
,
689 This function is the ATAPI implementation for WriteBlocks in the
690 Block I/O Protocol interface.
692 @param IdeBlkIoDevice Indicates the calling context.
693 @param MediaId The media id that the write request is for.
694 @param Lba The starting logical block address to write onto the device.
695 @param BufferSize The size of the Buffer in bytes. This must be a multiple
696 of the intrinsic block size of the device.
697 @param Buffer A pointer to the source buffer for the data. The caller
698 is responsible for either having implicit or explicit ownership
699 of the memory that data is written from.
701 @retval EFI_SUCCESS Write Blocks successfully.
702 @retval EFI_DEVICE_ERROR Write Blocks failed.
703 @retval EFI_NO_MEDIA There is no media in the device.
704 @retval EFI_MEDIA_CHANGE The MediaId is not for the current media.
705 @retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
706 intrinsic block size of the device.
707 @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
708 or the data buffer is not valid.
710 @retval EFI_WRITE_PROTECTED The write protected is enabled or the media does not support write
713 AtapiBlkIoWriteBlocks (
714 IN IDE_BLK_IO_DEV
*IdeBlkIoDevice
,
722 Release resources of an IDE device before stopping it.
724 @param IdeBlkIoDevice Standard IDE device private data structure
728 ReleaseIdeResources (
729 IN IDE_BLK_IO_DEV
*IdeBlkIoDevice
733 Set the calculated Best transfer mode to a detected device
735 @param IdeDev Standard IDE device private data structure
736 @param TransferMode The device transfer mode to be set
737 @return Set transfer mode Command execute status.
740 SetDeviceTransferMode (
741 IN IDE_BLK_IO_DEV
*IdeDev
,
742 IN ATA_TRANSFER_MODE
*TransferMode
745 Send ATA command into device with NON_DATA protocol.
747 @param IdeDev Standard IDE device private data structure
748 @param AtaCommand The ATA command to be sent
749 @param Device The value in Device register
750 @param Feature The value in Feature register
751 @param SectorCount The value in SectorCount register
752 @param LbaLow The value in LBA_LOW register
753 @param LbaMiddle The value in LBA_MIDDLE register
754 @param LbaHigh The value in LBA_HIGH register
756 @retval EFI_SUCCESS Reading succeed
757 @retval EFI_ABORTED Command failed
758 @retval EFI_DEVICE_ERROR Device status error.
762 AtaNonDataCommandIn (
763 IN IDE_BLK_IO_DEV
*IdeDev
,
767 IN UINT8 SectorCount
,
774 Send ATA Ext command into device with NON_DATA protocol.
776 @param IdeDev Standard IDE device private data structure
777 @param AtaCommand The ATA command to be sent
778 @param Device The value in Device register
779 @param Feature The value in Feature register
780 @param SectorCount The value in SectorCount register
781 @param LbaAddress The Lba address in 48-bit mode
783 @retval EFI_SUCCESS Reading succeed
784 @retval EFI_ABORTED Command failed
785 @retval EFI_DEVICE_ERROR Device status error.
789 AtaNonDataCommandInExt (
790 IN IDE_BLK_IO_DEV
*IdeDev
,
794 IN UINT16 SectorCount
,
795 IN EFI_LBA LbaAddress
798 Enable Long Physical Sector Feature for ATA device.
800 @param IdeDev The IDE device data
802 @retval EFI_SUCCESS The ATA device supports Long Physical Sector feature
803 and corresponding fields in BlockIo structure is updated.
804 @retval EFI_UNSUPPORTED The device is not ATA device or Long Physical Sector
805 feature is not supported.
808 AtaEnableLongPhysicalSector (
809 IN IDE_BLK_IO_DEV
*IdeDev
813 Set drive parameters for devices not support PACKETS command.
815 @param IdeDev Standard IDE device private data structure
816 @param DriveParameters The device parameters to be set into the disk
817 @return SetParameters Command execute status.
822 IN IDE_BLK_IO_DEV
*IdeDev
,
823 IN ATA_DRIVE_PARMS
*DriveParameters
827 Enable Interrupt on IDE controller
829 @param IdeDev Standard IDE device private data structure
831 @retval EFI_SUCCESS Enable Interrupt successfully
835 IN IDE_BLK_IO_DEV
*IdeDev