Changeset 110 for trunk/src/os2ahci/ata.h
- Timestamp:
- Jun 21, 2011, 2:39:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ata.h
r87 r110 432 432 } ATA_PARM; 433 433 434 /****************************************************************************** 435 * Return codes for ata_cmd(); please note that positive return codes indicate 436 * that not all S/G elements could be mapped, 0 means success and negative 437 * values indicate error conditions. 438 */ 439 #define ATA_CMD_SUCCESS 0 440 #define ATA_CMD_INVALID_PARM -1 441 #define ATA_CMD_UNALIGNED_ADDR -2 442 434 443 /* ------------------------ typedefs and structures ------------------------ */ 435 444 … … 473 482 /* -------------------------- function prototypes -------------------------- */ 474 483 475 extern int ata_cmd (AD_INFO *ai, int port, int device, 476 int slot, int cmd, ...); 477 extern int v_ata_cmd (AD_INFO *ai, int port, int device, 478 int slot, int cmd, va_list va); 479 extern void ata_cmd_to_fis (u8 _far *fis, ATA_CMD _far *cmd, 480 int device); 481 extern USHORT ata_get_sg_indx (IORB_EXECUTEIO _far *io); 482 extern void ata_max_sg_cnt (IORB_EXECUTEIO _far *io, USHORT sg_indx, 483 USHORT sg_max, USHORT _far *sg_cnt, 484 USHORT _far *sector_cnt); 485 486 extern int ata_get_geometry (IORBH _far *iorb, int slot); 487 extern void ata_get_geometry_pp (IORBH _far *iorb); 488 extern int ata_unit_ready (IORBH _far *iorb, int slot); 489 extern int ata_read (IORBH _far *iorb, int slot); 490 extern void ata_read_pp (IORBH _far *iorb); 491 extern int ata_verify (IORBH _far *iorb, int slot); 492 extern int ata_write (IORBH _far *iorb, int slot); 493 extern void ata_write_pp (IORBH _far *iorb); 494 extern int ata_execute_ata (IORBH _far *iorb, int slot); 495 extern int ata_req_sense (IORBH _far *iorb, int slot); 496 497 extern char *ata_dev_name (u16 *id_buf); 498 484 extern int ata_cmd (AD_INFO *ai, int port, int device, 485 int slot, int cmd, ...); 486 extern int v_ata_cmd (AD_INFO *ai, int port, int device, 487 int slot, int cmd, va_list va); 488 extern void ata_cmd_to_fis (u8 _far *fis, ATA_CMD _far *cmd, 489 int device); 490 extern USHORT ata_get_sg_indx (IORB_EXECUTEIO _far *io); 491 extern void ata_max_sg_cnt (IORB_EXECUTEIO _far *io, 492 USHORT sg_indx, USHORT sg_max, 493 USHORT _far *sg_cnt, 494 USHORT _far *sector_cnt); 495 496 extern int ata_get_geometry (IORBH _far *iorb, int slot); 497 extern void ata_get_geometry_pp (IORBH _far *iorb); 498 extern int ata_unit_ready (IORBH _far *iorb, int slot); 499 extern int ata_read (IORBH _far *iorb, int slot); 500 extern int ata_read_unaligned (IORBH _far *iorb, int slot); 501 extern void ata_read_pp (IORBH _far *iorb); 502 extern int ata_verify (IORBH _far *iorb, int slot); 503 extern int ata_write (IORBH _far *iorb, int slot); 504 extern int ata_write_unaligned (IORBH _far *iorb, int slot); 505 extern void ata_write_pp (IORBH _far *iorb); 506 extern int ata_execute_ata (IORBH _far *iorb, int slot); 507 extern int ata_req_sense (IORBH _far *iorb, int slot); 508 509 extern char *ata_dev_name (u16 *id_buf); 510
Note:
See TracChangeset
for help on using the changeset viewer.