Ignore:
Timestamp:
Nov 29, 2016, 5:30:22 AM (9 years ago)
Author:
David Azarewicz
Message:

Major reorganization

File:
1 edited

Legend:

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

    r125 r178  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
     6 * Copyright (c) 2013-2016 David Azarewicz
    67 *
    78 * Authors: Christian Mueller, Markus Thielen
     
    431432  AP_SECTOR_48,    /* [u32, u16]          48-bit sector address              */
    432433  AP_DEVICE,       /* [u16]               ATA cmd "device" field             */
    433   AP_SGLIST,       /* [void _far *, u16]  buffer S/G (SCATGATENTRY/count)    */
    434   AP_VADDR,        /* [void _far *, u16]  buffer virtual address (buf/len)   */
     434  AP_SGLIST,       /* [void *, u16]  buffer S/G (SCATGATENTRY/count)    */
     435  AP_VADDR,        /* [void *, u16]  buffer virtual address (buf/len)   */
    435436  AP_WRITE,        /* [u16]               if != 0, data is written to device */
    436437  AP_AHCI_FLAGS,   /* [u16]               AHCI command header flags          */
    437   AP_ATAPI_CMD,    /* [void _far *, u16]  ATAPI command (CDB) and length     */
    438   AP_ATA_CMD,      /* [void _far *]       ATA command (fixed len)            */
     438  AP_ATAPI_CMD,    /* [void *, u16]  ATAPI command (CDB) and length     */
     439  AP_ATA_CMD,      /* [void *]       ATA command (fixed len)            */
    439440  AP_END           /* []                  end of variable argument list      */
    440441} ATA_PARM;
     
    494495extern int       v_ata_cmd                (AD_INFO *ai, int port, int device,
    495496                                           int slot, int cmd, va_list va);
    496 extern void      ata_cmd_to_fis           (u8 _far *fis, ATA_CMD _far *cmd,
     497extern void      ata_cmd_to_fis           (u8 *fis, ATA_CMD *cmd,
    497498                                           int device);
    498 extern USHORT    ata_get_sg_indx          (IORB_EXECUTEIO _far *io);
    499 extern void      ata_max_sg_cnt           (IORB_EXECUTEIO _far *io,
     499extern USHORT    ata_get_sg_indx          (IORB_EXECUTEIO *io);
     500extern void      ata_max_sg_cnt           (IORB_EXECUTEIO *io,
    500501                                           USHORT sg_indx, USHORT sg_max,
    501                                            USHORT _far *sg_cnt,
    502                                            USHORT _far *sector_cnt);
    503 
    504 extern int       ata_get_geometry         (IORBH _far *iorb, int slot);
    505 extern void      ata_get_geometry_pp      (IORBH _far *iorb);
    506 extern int       ata_unit_ready           (IORBH _far *iorb, int slot);
    507 extern int       ata_read                 (IORBH _far *iorb, int slot);
    508 extern int       ata_read_unaligned       (IORBH _far *iorb, int slot);
    509 extern void      ata_read_pp              (IORBH _far *iorb);
    510 extern int       ata_verify               (IORBH _far *iorb, int slot);
    511 extern int       ata_write                (IORBH _far *iorb, int slot);
    512 extern int       ata_write_unaligned      (IORBH _far *iorb, int slot);
    513 extern void      ata_write_pp             (IORBH _far *iorb);
    514 extern int       ata_execute_ata          (IORBH _far *iorb, int slot);
    515 extern void      ata_execute_ata_pp       (IORBH _far *iorb);
    516 extern int       ata_req_sense            (IORBH _far *iorb, int slot);
     502                                           USHORT *sg_cnt,
     503                                           USHORT *sector_cnt);
     504
     505extern int ata_get_geometry(IORBH FAR16DATA *iorb, IORBH *pIorb, int slot);
     506extern void ata_get_geometry_pp(IORBH FAR16DATA *vIorb, IORBH *pIorb);
     507extern int ata_unit_ready(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
     508extern int ata_read(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
     509extern int ata_read_unaligned(IORBH *pIorb, int slot);
     510extern void ata_read_pp(IORBH FAR16DATA *vIorb, IORBH *pIorb);
     511extern int ata_verify(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
     512extern int ata_write(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
     513extern int ata_write_unaligned(IORBH *pIorb, int slot);
     514extern void ata_write_pp(IORBH FAR16DATA *vIorb, IORBH *pIorb);
     515extern int ata_execute_ata(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
     516extern void ata_execute_ata_pp(IORBH FAR16DATA *vIorb, IORBH *pIorb);
     517extern int ata_req_sense(IORBH FAR16DATA *vIorb, IORBH *pIorb, int slot);
    517518
    518519extern char     *ata_dev_name             (u16 *id_buf);
Note: See TracChangeset for help on using the changeset viewer.