- Timestamp:
- Sep 24, 2010, 4:08:31 PM (15 years ago)
- Location:
- trunk/src/os2ahci
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/Makefile
r16 r26 23 23 # Tool Chain 24 24 25 AS = ml25 AS = $(DDK)\tools\alp.exe 26 26 CC = cl 27 27 LD = link 28 28 29 AFLAGS = - c -nologo29 AFLAGS = -Mb 30 30 CFLAGS = -c -nologo -Asnw -W2 -G2ms -Zlpd -Fc -Zi 31 31 LFLAGS = /noe /nod /packd /a:16 /batch /map /line … … 49 49 -I$(CC16)\include 50 50 51 AS_INCLUDE = -I $(DDK)\base\inc \52 -I $(DDK)\base\src\dev\dasd\diskinc51 AS_INCLUDE = -I:$(DDK)\base\inc \ 52 -I:$(DDK)\base\src\dev\dasd\diskinc 53 53 54 54 LIB_DIRS = $(DDK)\base\lib\ \ -
trunk/src/os2ahci/ahci.c
r25 r26 38 38 39 39 static void ahci_setup_device (AD_INFO *ai, int p, int d, u16 *id_buf); 40 static void _ far timeout_callback (ULONG timer_handle, ULONG p1, ULONG p2);40 static void _cdecl _far timeout_callback (ULONG timer_handle, ULONG p1, ULONG p2); 41 41 42 42 /* ------------------------ global/static variables ------------------------ */ … … 103 103 #define call_ahci_intr(i) return(ahci_intr(irq_map[i]) >> 1) 104 104 105 static USHORT _ far APIENTRYirq_handler_00(void) { call_ahci_intr(0); }106 static USHORT _ far APIENTRYirq_handler_01(void) { call_ahci_intr(1); }107 static USHORT _ far APIENTRYirq_handler_02(void) { call_ahci_intr(2); }108 static USHORT _ far APIENTRYirq_handler_03(void) { call_ahci_intr(3); }109 static USHORT _ far APIENTRYirq_handler_04(void) { call_ahci_intr(4); }110 static USHORT _ far APIENTRYirq_handler_05(void) { call_ahci_intr(5); }111 static USHORT _ far APIENTRYirq_handler_06(void) { call_ahci_intr(6); }112 static USHORT _ far APIENTRYirq_handler_07(void) { call_ahci_intr(7); }105 static USHORT _cdecl _far irq_handler_00(void) { call_ahci_intr(0); } 106 static USHORT _cdecl _far irq_handler_01(void) { call_ahci_intr(1); } 107 static USHORT _cdecl _far irq_handler_02(void) { call_ahci_intr(2); } 108 static USHORT _cdecl _far irq_handler_03(void) { call_ahci_intr(3); } 109 static USHORT _cdecl _far irq_handler_04(void) { call_ahci_intr(4); } 110 static USHORT _cdecl _far irq_handler_05(void) { call_ahci_intr(5); } 111 static USHORT _cdecl _far irq_handler_06(void) { call_ahci_intr(6); } 112 static USHORT _cdecl _far irq_handler_07(void) { call_ahci_intr(7); } 113 113 114 114 PFN irq_handlers[] = { … … 1452 1452 * separate function which is invoked via a context hook. 1453 1453 */ 1454 static void _far timeout_callback(ULONG timer_handle, ULONG p1, ULONG p2) 1454 static void _cdecl _far timeout_callback(ULONG timer_handle, ULONG p1, 1455 ULONG p2) 1455 1456 { 1456 1457 IORBH _far *iorb = (IORBH _far *) p1; -
trunk/src/os2ahci/libc.c
r25 r26 45 45 /* -------------------------- function prototypes -------------------------- */ 46 46 47 static void 48 49 50 51 static void APIENTRY _farmdelay_timer_callback (ULONG timer_handle,52 53 54 static int 47 static void long_to_asc (long val, 48 char _far *buf, 49 int base, 50 int zero, int flen); 51 static void _cdecl _far mdelay_timer_callback (ULONG timer_handle, 52 ULONG parm1, 53 ULONG parm2); 54 static int mdelay_cal_end (void); 55 55 56 56 /* ------------------------ global/static variables ------------------------ */ … … 540 540 dprintf("calibrating delay loop... "); 541 541 542 _asm int 3;543 544 542 mdelay_loops_per_ms = 100000; 545 543 mdelay_cal_status = MD_CALIBRATION_START; … … 732 730 * Timer callback handler for 'mdelay_calibrate()' 733 731 */ 734 static void APIENTRY_far mdelay_timer_callback(ULONG timer_handle,735 736 732 static void _cdecl _far mdelay_timer_callback(ULONG timer_handle, 733 ULONG parm1, 734 ULONG parm2) 737 735 { 738 736 mdelay_cal_status = MD_CALIBRATION_END; -
trunk/src/os2ahci/os2ahci.c
r25 r26 285 285 * details. 286 286 */ 287 void _ far APIENTRY_loadds add_entry(IORBH _far *first_iorb)287 void _cdecl _far _loadds add_entry(IORBH _far *first_iorb) 288 288 { 289 289 IORBH _far *iorb; -
trunk/src/os2ahci/os2ahci.h
r25 r26 340 340 341 341 /* init.asm */ 342 extern u32 _cdecl readl(void _far *addr);343 extern u32 _cdecl writel(void _far *addr, u32 val);344 extern void _far * _cdecl memcpy(void _far *v_dst, void _far *v_src, int len);345 extern void _far * _cdecl memset(void _far *p, int ch, size_t len);346 extern void _ far _cdeclrestart_hook (void);347 extern void _ far _cdeclreset_hook (void);348 extern void _ far _cdeclengine_hook (void);342 extern u32 _cdecl readl (void _far *addr); 343 extern u32 _cdecl writel (void _far *addr, u32 val); 344 extern void _far * _cdecl memcpy (void _far *v_dst, void _far *v_src, int len); 345 extern void _far * _cdecl memset (void _far *p, int ch, size_t len); 346 extern void _cdecl _far restart_hook (void); 347 extern void _cdecl _far reset_hook (void); 348 extern void _cdecl _far engine_hook (void); 349 349 350 350 /* os2ahci.c */ 351 351 extern USHORT init_drv (RPINITIN _far *req); 352 extern void _ far APIENTRY_loadds add_entry (IORBH _far *iorb);352 extern void _cdecl _far _loadds add_entry (IORBH _far *iorb); 353 353 extern void trigger_engine (void); 354 354 extern int trigger_engine_1 (void); … … 435 435 436 436 /* ctxhook.c */ 437 extern void 438 extern void 439 extern void 437 extern void _cdecl restart_ctxhook (ULONG parm); 438 extern void _cdecl reset_ctxhook (ULONG parm); 439 extern void _cdecl engine_ctxhook (ULONG parm); 440 440 441 441 /* ---------------------------- global variables --------------------------- */ -
trunk/src/os2ahci/wmakefile
r24 r26 35 35 36 36 CC_INCLUDE = -I..\include \ 37 -I$(DDK)\base\src\dev\dasd\diskh \38 37 -I$(DDK)\base\h \ 39 38 -I$(DDK)\base\ibmh \ 39 -I$(DDK)\base\src\dev\dasd\diskh \ 40 40 -I$(WATCOM)\h 41 41
Note:
See TracChangeset
for help on using the changeset viewer.