Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
21482489
Commit
21482489
authored
Feb 12, 2015
by
Uwe Bonnes
Committed by
Alexandre Julliard
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add more serial speed settings.
parent
e6e50f6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
serial.c
dlls/ntdll/serial.c
+60
-0
No files found.
dlls/ntdll/serial.c
View file @
21482489
...
...
@@ -171,6 +171,36 @@ static NTSTATUS get_baud_rate(int fd, SERIAL_BAUD_RATE* sbr)
#ifdef B460800
case
B460800
:
sbr
->
BaudRate
=
460800
;
break
;
#endif
#ifdef B500000
case
B500000
:
sbr
->
BaudRate
=
500000
;
break
;
#endif
#ifdef B921600
case
B921600
:
sbr
->
BaudRate
=
921600
;
break
;
#endif
#ifdef B1000000
case
B1000000
:
sbr
->
BaudRate
=
1000000
;
break
;
#endif
#ifdef B1152000
case
B1152000
:
sbr
->
BaudRate
=
1152000
;
break
;
#endif
#ifdef B1500000
case
B1500000
:
sbr
->
BaudRate
=
1500000
;
break
;
#endif
#ifdef B2000000
case
B2000000
:
sbr
->
BaudRate
=
2000000
;
break
;
#endif
#ifdef B2500000
case
B2500000
:
sbr
->
BaudRate
=
2500000
;
break
;
#endif
#ifdef B3000000
case
B3000000
:
sbr
->
BaudRate
=
3000000
;
break
;
#endif
#ifdef B3500000
case
B3500000
:
sbr
->
BaudRate
=
3500000
;
break
;
#endif
#ifdef B4000000
case
B4000000
:
sbr
->
BaudRate
=
4000000
;
break
;
#endif
default:
ERR
(
"unknown speed %x
\n
"
,
speed
);
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -478,6 +508,36 @@ static NTSTATUS set_baud_rate(int fd, const SERIAL_BAUD_RATE* sbr)
#ifdef B460800
case
460800
:
cfsetospeed
(
&
port
,
B460800
);
break
;
#endif
#ifdef B500000
case
500000
:
cfsetospeed
(
&
port
,
B500000
);
break
;
#endif
#ifdef B921600
case
921600
:
cfsetospeed
(
&
port
,
B921600
);
break
;
#endif
#ifdef B1000000
case
1000000
:
cfsetospeed
(
&
port
,
B1000000
);
break
;
#endif
#ifdef B1152000
case
1152000
:
cfsetospeed
(
&
port
,
B1152000
);
break
;
#endif
#ifdef B1500000
case
1500000
:
cfsetospeed
(
&
port
,
B1500000
);
break
;
#endif
#ifdef B2000000
case
2000000
:
cfsetospeed
(
&
port
,
B2000000
);
break
;
#endif
#ifdef B2500000
case
2500000
:
cfsetospeed
(
&
port
,
B2500000
);
break
;
#endif
#ifdef B3000000
case
3000000
:
cfsetospeed
(
&
port
,
B3000000
);
break
;
#endif
#ifdef B3500000
case
3500000
:
cfsetospeed
(
&
port
,
B3500000
);
break
;
#endif
#ifdef B4000000
case
4000000
:
cfsetospeed
(
&
port
,
B4000000
);
break
;
#endif
default:
#if defined (HAVE_LINUX_SERIAL_H) && defined (TIOCSSERIAL)
{
...
...
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