Changeset 8 for trunk/src/os2ahci.h


Ignore:
Timestamp:
Sep 10, 2010, 11:30:39 AM (15 years ago)
Author:
markus
Message:

latest changes by Christian

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci.h

    r4 r8  
    317317/* ADD workspace in IORB (must not exceed 16 bytes) */
    318318typedef struct {
    319   IORBH _far   *next;                  /* link to next IORB in our own queues */
    320319  void (*ppfunc)(IORBH _far *iorb);    /* post-processing function */
    321320  void         *buf;                   /* response buffer (e.g. for identify cmds) */
    322321  ULONG         timer;                 /* timer for timeout procesing */
     322  USHORT        blocks;                /* number of blocks to be transferred */
    323323  unsigned      processing    : 1;     /* IORB is being processd */
    324324  unsigned      idempotent    : 1;     /* IORB is idempotent (can be retried) */
    325325  unsigned      queued_hw     : 1;     /* IORB has been queued to hardware */
    326   unsigned      no_ncq        : 1;     /* don't use native command queuing */
     326  unsigned      no_ncq        : 1;     /* must not use native command queuing */
     327  unsigned      is_ncq        : 1;     /* should use native command queueing */
     328  unsigned      complete      : 1;     /* IORB has completed processing */
    327329  unsigned      cmd_slot      : 4;     /* AHCI command slot for this IORB */
    328330} ADD_WORKSPACE;
     
    357359extern void    iorb_seterr            (IORBH _far *iorb, USHORT error_code);
    358360extern void    iorb_done              (IORBH _far *iorb);
     361extern void    iorb_requeue           (IORBH _far *iorb);
    359362
    360363/* ahci.c */
     
    380383                                             int (*func)(IORBH _far *, int),
    381384                                             ULONG timeout);
     385extern int     ahci_exec_polled_cmd         (AD_INFO *ai, int p, int d,
     386                                             int timeout, int cmd, ...);
    382387
    383388extern int     ahci_intr                    (u16 irq);
Note: See TracChangeset for help on using the changeset viewer.