Changeset 133 for trunk/src/os2ahci/init.asm
- Timestamp:
- May 16, 2012, 10:19:24 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/init.asm
r128 r133 6 6 7 7 ; ----------------------------------------------------------------------------- 8 ; Constants 9 DEV_IDC EQU 0400h ; IDC bit for ADD flags 10 11 ; ----------------------------------------------------------------------------- 8 12 ; Public symbols 9 13 10 14 PUBLIC _asm_strat ; low-level strategy routine 15 PUBLIC _asm_idc_entry ; low-level IDC entry point 11 16 PUBLIC _readl ; MMIO read (32 bits) 12 17 PUBLIC _writel ; MMIO write (32 bits) … … 29 34 DEVHDR SEGMENT WORD PUBLIC 'DATA' 30 35 _dev_hdr dd _legacy_hdr ; next device header 31 dw DEVLEV_3 + DEV_CHAR_DEV ; flags for ADD drivers36 dw DEVLEV_3 + DEV_CHAR_DEV + DEV_IDC ; flags for ADD drivers 32 37 dw OFFSET _asm_strat ; strategy routine 33 dw 0 ; no IDC routine38 dw OFFSET _asm_idc_entry ; IDC entry point 34 39 db "OS2AHCI$" ; name of character device 35 40 dq 0 ; 8 reserved bytes … … 40 45 dw DEVLEV_3 + DEV_CHAR_DEV ; flags for ADD drivers 41 46 dw OFFSET _asm_strat ; strategy routine 42 dw 0 ; no IDC routine47 dw 0 ; IDC entry point 43 48 db "IBMS506$" ; name of character device 44 49 dq 0 ; 8 reserved bytes … … 129 134 RET 130 135 _asm_strat ENDP 136 137 138 ; IDC entry point (Assembler stub) 139 _asm_idc_entry PROC FAR 140 141 ; push request packet address 142 PUSH ES 143 PUSH BX 144 CLD 145 146 ; call C IDC entry point - which is the strategy routine 147 CALL _c_strat 148 149 POP BX 150 POP ES 151 MOV WORD PTR ES:[BX+3], AX 152 RET 153 _asm_idc_entry ENDP 131 154 132 155 .386
Note:
See TracChangeset
for help on using the changeset viewer.