Changeset 14


Ignore:
Timestamp:
Sep 14, 2010, 10:44:57 AM (15 years ago)
Author:
markus
Message:

merged last NCQ related changes with Watcom related changes

Location:
trunk/src/os2ahci
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ahci.c

    r13 r14  
    12321232void ahci_error_intr(AD_INFO *ai, int p, u32 irq_stat)
    12331233{
    1234   u8 _far *port_mmio = port_base(ai, p);
    12351234  int reset_port = 0;
    1236   u32 tmp;
    12371235
    12381236  /* Handle adapter and interface errors. Those typically require a port
  • trunk/src/os2ahci/init.asm

    r13 r14  
    182182                ; print debug message if debug level is 3+
    183183                CMP     _debug, 3
    184                 JB      no_debug
     184                JB      no_debug2
    185185                MOV     BX, AX          ; addr & 0x7f (port reg index)
    186186                AND     BX, 7FH
     
    193193                ADD     SP, 12
    194194
    195 no_debug:       LEAVE
     195no_debug2:      LEAVE
    196196                RET
    197197_writel         ENDP
  • trunk/src/os2ahci/libc.c

    r13 r14  
    657657int disable(void)
    658658{
    659   int rc;
     659  int rc = 0;
    660660
    661661  _asm {
  • trunk/src/os2ahci/os2ahci.c

    r13 r14  
    3232      goto init_fail;                                     \
    3333    }                                                     \
    34     value = (type) strtol((s) + 2, &_ep, radix);          \
     34    value = (type) strtol((s) + 2,                        \
     35                          (const char _far* _far*) &_ep,  \
     36                          radix);                         \
    3537    s = _ep;                                              \
    3638  }
     
    116118  DDD_PARM_LIST _far *ddd_pl = (DDD_PARM_LIST _far *) req->InitArgs;
    117119  APIRET rmrc;
    118   PSEL p;
    119120  char _far *cmd_line;
    120   char _far *ep;
    121121  char _far *s;
    122122  int adapter_index;
  • trunk/src/os2ahci/pci.c

    r13 r14  
    483483  UCHAR dev_func  = data->find_class.dev_func;
    484484  ULONG val;
    485   UCHAR rc;
    486485  SEL gdt[PORT_DMA_BUF_SEGS + 1];
    487486  char tmp[40];
     
    831830  void (_far *func)(void);
    832831  RP_GENIOCTL ioctl;
     832  unsigned short prot_idc_ds;
    833833
    834834  if (oemhlp.ProtIDCEntry == NULL || oemhlp.ProtIDC_DS == 0) {
     
    867867  func = oemhlp.ProtIDCEntry;
    868868
     869  /* The WATCOM compiler does not support struct references in inline
     870   * assembler code, so we pass it in a stack variable
     871   */
     872  prot_idc_ds = oemhlp.ProtIDC_DS;
     873
    869874  _asm {
    870875    push ds;
     
    877882    pop  es
    878883    lea  bx, ioctl;
    879     mov  ds, oemhlp.ProtIDC_DS;
     884    mov  ds, prot_idc_ds;
    880885    call dword ptr [func];
    881886
  • trunk/src/os2ahci/wmakefile

    r13 r14  
    6767               -I$(DDK)$(PS)BASE$(PS)SRC$(PS)DEV$(PS)DASD$(PS)DISKINC
    6868
    69 LIB_DIRS     = $(DDK)$(PS)BASE$(PS)LIB$;$(DDK)$(PS)BASE$(PS)SRC$(PS)DEV$(PS)DASD$(PS)DEVHLP;$(WATCOM)$(PS)LIB;
     69#              the linker wants this on one line, no spaces...
     70LIB_DIRS     = $(DDK)$(PS)BASE$(PS)LIB$;$(DDK)$(PS)BASE$(PS)SRC$(PS)DEV$(PS)DASD$(PS)DEVHLP;$(WATCOM)$(PS)LIB
    7071
    7172
     
    142143        $(LD) $(LFLAGS)
    143144
    144 
Note: See TracChangeset for help on using the changeset viewer.