Ignore:
Timestamp:
Jun 21, 2011, 2:39:30 PM (14 years ago)
Author:
Markus Thielen
Message:

contains CMs changes for unaligned buffers; removed unused stack var; let driver continue boot on unknown command line switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ata.h

    r87 r110  
    432432} ATA_PARM;
    433433
     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
    434443/* ------------------------ typedefs and structures ------------------------ */
    435444
     
    473482/* -------------------------- function prototypes -------------------------- */
    474483
    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 
     484extern int       ata_cmd                  (AD_INFO *ai, int port, int device,
     485                                           int slot, int cmd, ...);
     486extern int       v_ata_cmd                (AD_INFO *ai, int port, int device,
     487                                           int slot, int cmd, va_list va);
     488extern void      ata_cmd_to_fis           (u8 _far *fis, ATA_CMD _far *cmd,
     489                                           int device);
     490extern USHORT    ata_get_sg_indx          (IORB_EXECUTEIO _far *io);
     491extern 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
     496extern int       ata_get_geometry         (IORBH _far *iorb, int slot);
     497extern void      ata_get_geometry_pp      (IORBH _far *iorb);
     498extern int       ata_unit_ready           (IORBH _far *iorb, int slot);
     499extern int       ata_read                 (IORBH _far *iorb, int slot);
     500extern int       ata_read_unaligned       (IORBH _far *iorb, int slot);
     501extern void      ata_read_pp              (IORBH _far *iorb);
     502extern int       ata_verify               (IORBH _far *iorb, int slot);
     503extern int       ata_write                (IORBH _far *iorb, int slot);
     504extern int       ata_write_unaligned      (IORBH _far *iorb, int slot);
     505extern void      ata_write_pp             (IORBH _far *iorb);
     506extern int       ata_execute_ata          (IORBH _far *iorb, int slot);
     507extern int       ata_req_sense            (IORBH _far *iorb, int slot);
     508
     509extern char     *ata_dev_name             (u16 *id_buf);
     510
Note: See TracChangeset for help on using the changeset viewer.