Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
80c0a5ba
Commit
80c0a5ba
authored
Feb 10, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed 'typedef' from the ftdi_sio usb-serial driver.
parent
87b22d4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio.c
+2
-2
drivers/usb/serial/ftdi_sio.h
drivers/usb/serial/ftdi_sio.h
+8
-8
No files found.
drivers/usb/serial/ftdi_sio.c
View file @
80c0a5ba
...
@@ -154,7 +154,7 @@ MODULE_DEVICE_TABLE (usb, id_table_combined);
...
@@ -154,7 +154,7 @@ MODULE_DEVICE_TABLE (usb, id_table_combined);
struct
ftdi_private
{
struct
ftdi_private
{
ftdi_type_t
ftdi_type
;
enum
ftdi_type
ftdi_type
;
__u16
last_set_data_urb_value
;
/* the last data state set - needed for doing a break */
__u16
last_set_data_urb_value
;
/* the last data state set - needed for doing a break */
int
write_offset
;
int
write_offset
;
};
};
...
@@ -652,7 +652,7 @@ static void ftdi_sio_read_bulk_callback (struct urb *urb)
...
@@ -652,7 +652,7 @@ static void ftdi_sio_read_bulk_callback (struct urb *urb)
}
/* ftdi_sio_serial_read_bulk_callback */
}
/* ftdi_sio_serial_read_bulk_callback */
static
__u16
translate_baudrate_to_ftdi
(
unsigned
int
cflag
,
ftdi_type_t
ftdi_type
)
static
__u16
translate_baudrate_to_ftdi
(
unsigned
int
cflag
,
enum
ftdi_type
ftdi_type
)
{
/* translate_baudrate_to_ftdi */
{
/* translate_baudrate_to_ftdi */
__u16
urb_value
=
ftdi_sio_b9600
;
__u16
urb_value
=
ftdi_sio_b9600
;
...
...
drivers/usb/serial/ftdi_sio.h
View file @
80c0a5ba
...
@@ -87,13 +87,13 @@
...
@@ -87,13 +87,13 @@
* Data: None
* Data: None
*/
*/
typedef
enum
{
enum
ftdi_type
{
sio
=
1
,
sio
=
1
,
F8U232AM
=
2
,
F8U232AM
=
2
,
}
ftdi_type_t
;
};
typedef
enum
{
enum
{
ftdi_sio_b300
=
0
,
ftdi_sio_b300
=
0
,
ftdi_sio_b600
=
1
,
ftdi_sio_b600
=
1
,
ftdi_sio_b1200
=
2
,
ftdi_sio_b1200
=
2
,
...
@@ -104,10 +104,10 @@ typedef enum {
...
@@ -104,10 +104,10 @@ typedef enum {
ftdi_sio_b38400
=
7
,
ftdi_sio_b38400
=
7
,
ftdi_sio_b57600
=
8
,
ftdi_sio_b57600
=
8
,
ftdi_sio_b115200
=
9
ftdi_sio_b115200
=
9
}
FTDI_SIO_baudrate_t
;
};
typedef
enum
{
enum
{
ftdi_8U232AM_12MHz_b300
=
0x09c4
,
ftdi_8U232AM_12MHz_b300
=
0x09c4
,
ftdi_8U232AM_12MHz_b600
=
0x04E2
,
ftdi_8U232AM_12MHz_b600
=
0x04E2
,
ftdi_8U232AM_12MHz_b1200
=
0x0271
,
ftdi_8U232AM_12MHz_b1200
=
0x0271
,
...
@@ -119,9 +119,9 @@ typedef enum {
...
@@ -119,9 +119,9 @@ typedef enum {
ftdi_8U232AM_12MHz_b57600
=
0x000d
,
ftdi_8U232AM_12MHz_b57600
=
0x000d
,
ftdi_8U232AM_12MHz_b115200
=
0x4006
,
ftdi_8U232AM_12MHz_b115200
=
0x4006
,
ftdi_8U232AM_12MHz_b230400
=
0x8003
,
ftdi_8U232AM_12MHz_b230400
=
0x8003
,
}
FTDI_8U232AM_12MHz_baudrate_t
;
};
/* Apparently all devices are 48MHz */
/* Apparently all devices are 48MHz */
typedef
enum
{
enum
{
ftdi_8U232AM_48MHz_b300
=
0x2710
,
ftdi_8U232AM_48MHz_b300
=
0x2710
,
ftdi_8U232AM_48MHz_b600
=
0x1388
,
ftdi_8U232AM_48MHz_b600
=
0x1388
,
ftdi_8U232AM_48MHz_b1200
=
0x09c4
,
ftdi_8U232AM_48MHz_b1200
=
0x09c4
,
...
@@ -136,7 +136,7 @@ typedef enum {
...
@@ -136,7 +136,7 @@ typedef enum {
ftdi_8U232AM_48MHz_b460800
=
0x4006
,
ftdi_8U232AM_48MHz_b460800
=
0x4006
,
ftdi_8U232AM_48MHz_b921600
=
0x8003
,
ftdi_8U232AM_48MHz_b921600
=
0x8003
,
}
FTDI_8U232AM_48MHz_baudrate_t
;
};
#define FTDI_SIO_SET_DATA_REQUEST FTDI_SIO_SET_DATA
#define FTDI_SIO_SET_DATA_REQUEST FTDI_SIO_SET_DATA
#define FTDI_SIO_SET_DATA_REQUEST_TYPE 0x40
#define FTDI_SIO_SET_DATA_REQUEST_TYPE 0x40
...
...
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