Changeset 14
- Timestamp:
- Sep 14, 2010, 10:44:57 AM (15 years ago)
- Location:
- trunk/src/os2ahci
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/ahci.c
r13 r14 1232 1232 void ahci_error_intr(AD_INFO *ai, int p, u32 irq_stat) 1233 1233 { 1234 u8 _far *port_mmio = port_base(ai, p);1235 1234 int reset_port = 0; 1236 u32 tmp;1237 1235 1238 1236 /* Handle adapter and interface errors. Those typically require a port -
trunk/src/os2ahci/init.asm
r13 r14 182 182 ; print debug message if debug level is 3+ 183 183 CMP _debug, 3 184 JB no_debug 184 JB no_debug2 185 185 MOV BX, AX ; addr & 0x7f (port reg index) 186 186 AND BX, 7FH … … 193 193 ADD SP, 12 194 194 195 no_debug :LEAVE195 no_debug2: LEAVE 196 196 RET 197 197 _writel ENDP -
trunk/src/os2ahci/libc.c
r13 r14 657 657 int disable(void) 658 658 { 659 int rc ;659 int rc = 0; 660 660 661 661 _asm { -
trunk/src/os2ahci/os2ahci.c
r13 r14 32 32 goto init_fail; \ 33 33 } \ 34 value = (type) strtol((s) + 2, &_ep, radix); \ 34 value = (type) strtol((s) + 2, \ 35 (const char _far* _far*) &_ep, \ 36 radix); \ 35 37 s = _ep; \ 36 38 } … … 116 118 DDD_PARM_LIST _far *ddd_pl = (DDD_PARM_LIST _far *) req->InitArgs; 117 119 APIRET rmrc; 118 PSEL p;119 120 char _far *cmd_line; 120 char _far *ep;121 121 char _far *s; 122 122 int adapter_index; -
trunk/src/os2ahci/pci.c
r13 r14 483 483 UCHAR dev_func = data->find_class.dev_func; 484 484 ULONG val; 485 UCHAR rc;486 485 SEL gdt[PORT_DMA_BUF_SEGS + 1]; 487 486 char tmp[40]; … … 831 830 void (_far *func)(void); 832 831 RP_GENIOCTL ioctl; 832 unsigned short prot_idc_ds; 833 833 834 834 if (oemhlp.ProtIDCEntry == NULL || oemhlp.ProtIDC_DS == 0) { … … 867 867 func = oemhlp.ProtIDCEntry; 868 868 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 869 874 _asm { 870 875 push ds; … … 877 882 pop es 878 883 lea bx, ioctl; 879 mov ds, oemhlp.ProtIDC_DS;884 mov ds, prot_idc_ds; 880 885 call dword ptr [func]; 881 886 -
trunk/src/os2ahci/wmakefile
r13 r14 67 67 -I$(DDK)$(PS)BASE$(PS)SRC$(PS)DEV$(PS)DASD$(PS)DISKINC 68 68 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... 70 LIB_DIRS = $(DDK)$(PS)BASE$(PS)LIB$;$(DDK)$(PS)BASE$(PS)SRC$(PS)DEV$(PS)DASD$(PS)DEVHLP;$(WATCOM)$(PS)LIB 70 71 71 72 … … 142 143 $(LD) $(LFLAGS) 143 144 144
Note:
See TracChangeset
for help on using the changeset viewer.