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/os2ahci.h

    r108 r110  
    281281typedef struct {
    282282  IORB_QUEUE    iorb_queue;            /* IORB queue for this port */
    283   unsigned      dev_max   : 4;         /* maximum device number on this port (0-15) */
    284   unsigned      cmd_slot  : 5;         /* current command slot index (using round-
     283  unsigned      dev_max     : 4;       /* maximum device number on this port (0-15) */
     284  unsigned      cmd_slot    : 5;       /* current command slot index (using round-
    285285                                        * robin indexes to prevent starvation) */
    286286
     
    349349  unsigned      is_ncq        : 1;     /* should use native command queueing */
    350350  unsigned      complete      : 1;     /* IORB has completed processing */
     351  unsigned      unaligned     : 1;     /* unaligned S/G; need to use transfer buffer */
    351352  unsigned      cmd_slot      : 5;     /* AHCI command slot for this IORB */
    352353} ADD_WORKSPACE;
     354
     355/* sg_memcpy() direction */
     356typedef enum {
     357  SG_TO_BUF,                           /* copy from S/G list to buffer */
     358  BUF_TO_SG                            /* copy from buffer to S/G list */
     359} SG_MEMCPY_DIRECTION; 
    353360
    354361/* -------------------------- function prototypes -------------------------- */
     
    444451extern char _far  *strcpy        (char _far *dst, const char _far *src);
    445452extern int         memcmp        (void _far *p1, void _far *p2, size_t len);
     453extern void        sg_memcpy     (SCATGATENTRY _far *sg_list, USHORT sg_cnt,
     454                                  ULONG sg_off, void _far *buf, USHORT len,
     455                                  SG_MEMCPY_DIRECTION dir);
    446456extern long        strtol        (const char _far *buf,
    447457                                  const char _far * _far *ep, int base);
    448458extern void       *malloc        (size_t len);
    449459extern void        free          (void *ptr);
     460extern ULONG       virt_to_phys  (void _far *ptr);
    450461extern void        mdelay_cal    (void);
    451462extern void        mdelay        (u32 millies);
Note: See TracChangeset for help on using the changeset viewer.