Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9eb1d2c7
Commit
9eb1d2c7
authored
Sep 17, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved I/O port handling to dlls/winedos.
parent
10aacbf3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
26 deletions
+17
-26
instr.c
dlls/kernel/instr.c
+6
-2
Makefile.in
dlls/ntdll/Makefile.in
+0
-2
Makefile.in
dlls/winedos/Makefile.in
+1
-0
dosexe.h
dlls/winedos/dosexe.h
+5
-0
ioports.c
dlls/winedos/ioports.c
+0
-0
ppdev.c
dlls/winedos/ppdev.c
+0
-0
timer.c
dlls/winedos/timer.c
+2
-4
winedos.spec
dlls/winedos/winedos.spec
+1
-3
callback.h
include/callback.h
+2
-4
miscemu.h
include/miscemu.h
+0
-9
dpmi.c
msdos/dpmi.c
+0
-2
ioports.c
msdos/ioports.c
+0
-0
No files found.
dlls/kernel/instr.c
View file @
9eb1d2c7
...
...
@@ -337,7 +337,10 @@ static BOOL INSTR_EmulateLDS( CONTEXT86 *context, BYTE *instr, int long_op,
*/
static
DWORD
INSTR_inport
(
WORD
port
,
int
size
,
CONTEXT86
*
context
)
{
DWORD
res
=
IO_inport
(
port
,
size
);
DWORD
res
=
~
0U
;
if
(
Dosvm
.
inport
||
DPMI_LoadDosSystem
())
res
=
Dosvm
.
inport
(
port
,
size
);
if
(
TRACE_ON
(
io
))
{
switch
(
size
)
...
...
@@ -367,7 +370,8 @@ static DWORD INSTR_inport( WORD port, int size, CONTEXT86 *context )
*/
static
void
INSTR_outport
(
WORD
port
,
int
size
,
DWORD
val
,
CONTEXT86
*
context
)
{
IO_outport
(
port
,
size
,
val
);
if
(
Dosvm
.
outport
||
DPMI_LoadDosSystem
())
Dosvm
.
outport
(
port
,
size
,
val
);
if
(
TRACE_ON
(
io
))
{
switch
(
size
)
...
...
dlls/ntdll/Makefile.in
View file @
9eb1d2c7
...
...
@@ -31,8 +31,6 @@ C_SRCS = \
$(TOPOBJDIR)
/msdos/dosmem.c
\
$(TOPOBJDIR)
/msdos/dpmi.c
\
$(TOPOBJDIR)
/msdos/int21.c
\
$(TOPOBJDIR)
/msdos/ioports.c
\
$(TOPOBJDIR)
/msdos/ppdev.c
\
$(TOPOBJDIR)
/relay32/builtin32.c
\
$(TOPOBJDIR)
/relay32/relay386.c
\
$(TOPOBJDIR)
/relay32/snoop.c
\
...
...
dlls/winedos/Makefile.in
View file @
9eb1d2c7
...
...
@@ -46,6 +46,7 @@ C_SRCS = \
interrupts.c
\
ioports.c
\
module.c
\
ppdev.c
\
relay.c
\
soundblaster.c
\
timer.c
\
...
...
dlls/winedos/dosexe.h
View file @
9eb1d2c7
...
...
@@ -271,6 +271,11 @@ void DOSVM_BuildCallFrame( CONTEXT86 *, DOSRELAY, LPVOID );
extern
void
SB_ioport_out
(
WORD
port
,
BYTE
val
);
extern
BYTE
SB_ioport_in
(
WORD
port
);
/* ppdev.c */
extern
BOOL
IO_pp_outp
(
int
port
,
DWORD
*
res
);
extern
int
IO_pp_inp
(
int
port
,
DWORD
*
res
);
extern
char
IO_pp_init
(
void
);
/* timer.c */
extern
void
WINAPI
DOSVM_Int08Handler
(
CONTEXT86
*
);
...
...
dlls/winedos/ioports.c
View file @
9eb1d2c7
This diff is collapsed.
Click to expand it.
ms
dos/ppdev.c
→
dlls/wine
dos/ppdev.c
View file @
9eb1d2c7
File moved
dlls/winedos/timer.c
View file @
9eb1d2c7
...
...
@@ -28,8 +28,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
int
);
/*
* FIXME: Move timer ioport handling here and remove
* Dosvm.GetTimer/Dosvm.SetTimer.
* FIXME: Use QueryPerformanceCounter for
* more precise GetTimer implementation.
* FIXME: Use QueryPerformanceCounter (or GetTimer implementation)
...
...
@@ -96,7 +94,7 @@ static void WINAPI TIMER_DoSetTimer( ULONG_PTR arg )
/***********************************************************************
*
GetTimer (WINEDOS.@)
*
DOSVM_GetTimer
*/
UINT
WINAPI
DOSVM_GetTimer
(
void
)
{
...
...
@@ -117,7 +115,7 @@ UINT WINAPI DOSVM_GetTimer( void )
/***********************************************************************
*
SetTimer (WINEDOS.@)
*
DOSVM_SetTimer
*/
void
WINAPI
DOSVM_SetTimer
(
UINT
ticks
)
{
...
...
dlls/winedos/winedos.spec
View file @
9eb1d2c7
...
...
@@ -4,7 +4,5 @@
@ stdcall CallBuiltinHandler(ptr long) DOSVM_CallBuiltinHandler
# I/O functions
@ stdcall SetTimer(long) DOSVM_SetTimer
@ stdcall GetTimer() DOSVM_GetTimer
@ stdcall inport(long long ptr) DOSVM_inport
@ stdcall inport(long long) DOSVM_inport
@ stdcall outport(long long long) DOSVM_outport
include/callback.h
View file @
9eb1d2c7
...
...
@@ -31,10 +31,8 @@ typedef struct {
void
(
WINAPI
*
CallBuiltinHandler
)(
CONTEXT86
*
context
,
BYTE
intnum
);
/* I/O functions */
void
(
WINAPI
*
SetTimer
)(
unsigned
ticks
);
unsigned
(
WINAPI
*
GetTimer
)(
void
);
BOOL
(
WINAPI
*
inport
)(
int
port
,
int
size
,
DWORD
*
res
);
BOOL
(
WINAPI
*
outport
)(
int
port
,
int
size
,
DWORD
val
);
DWORD
(
WINAPI
*
inport
)(
int
port
,
int
size
);
void
(
WINAPI
*
outport
)(
int
port
,
int
size
,
DWORD
val
);
}
DOSVM_TABLE
;
extern
DOSVM_TABLE
Dosvm
;
...
...
include/miscemu.h
View file @
9eb1d2c7
...
...
@@ -107,18 +107,9 @@ extern UINT DOSMEM_MapLinearToDos(LPVOID); /* linear Wine to DOS */
/* memory/instr.c */
extern
DWORD
INSTR_EmulateInstruction
(
EXCEPTION_RECORD
*
rec
,
CONTEXT86
*
context
);
/* msdos/ioports.c */
extern
DWORD
IO_inport
(
int
port
,
int
count
);
extern
void
IO_outport
(
int
port
,
int
count
,
DWORD
value
);
/* msdos/dpmi.c */
extern
BOOL
DPMI_LoadDosSystem
(
void
);
/* misc/ppdev.c */
extern
BOOL
IO_pp_outp
(
int
port
,
DWORD
*
res
);
extern
int
IO_pp_inp
(
int
port
,
DWORD
*
res
);
extern
char
IO_pp_init
(
void
);
#define PTR_REAL_TO_LIN(seg,off) \
((void*)(((unsigned int)(seg) << 4) + LOWORD(off)))
...
...
msdos/dpmi.c
View file @
9eb1d2c7
...
...
@@ -48,8 +48,6 @@ BOOL DPMI_LoadDosSystem(void)
}
#define GET_ADDR(func) Dosvm.func = (void *)GetProcAddress(DosModule, #func);
GET_ADDR
(
SetTimer
);
GET_ADDR
(
GetTimer
);
GET_ADDR
(
inport
);
GET_ADDR
(
outport
);
GET_ADDR
(
EmulateInterruptPM
);
...
...
msdos/ioports.c
deleted
100644 → 0
View file @
10aacbf3
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment