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
Kirill Smelkov
linux
Commits
d5877800
Commit
d5877800
authored
Sep 01, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: more changes due to name changes in the greybus document
parent
712d6591
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
42 deletions
+41
-42
drivers/staging/greybus/greybus_desc.h
drivers/staging/greybus/greybus_desc.h
+32
-32
drivers/staging/greybus/svc_msg.h
drivers/staging/greybus/svc_msg.h
+9
-10
No files found.
drivers/staging/greybus/greybus_desc.h
View file @
d5877800
...
...
@@ -18,11 +18,11 @@ struct greybus_decriptor_block_header {
enum
greybus_descriptor_type
{
GREYBUS_TYPE_INVALID
=
0x0000
,
GREYBUS_TYPE_
DEVICE_ID
=
0x0001
,
GREYBUS_TYPE_
SERIAL_NUMBER
=
0x0002
,
GREYBUS_TYPE_
DEVICE_STRING
=
0x0003
,
GREYBUS_TYPE_
CPORT
=
0x0004
,
GREYBUS_TYPE_
FUNCTION
=
0x0005
,
GREYBUS_TYPE_
FUNCTION
=
0x0001
,
GREYBUS_TYPE_
MODULE_ID
=
0x0002
,
GREYBUS_TYPE_
SERIAL_NUMBER
=
0x0003
,
GREYBUS_TYPE_
DEVICE_STRING
=
0x0004
,
GREYBUS_TYPE_
CPORT
=
0x0005
,
};
struct
greybus_descriptor_header
{
...
...
@@ -30,31 +30,6 @@ struct greybus_descriptor_header {
__le16
type
;
/* enum greybus_descriptor_type */
};
struct
greybus_descriptor_deviceid
{
__le16
vendor
;
__le16
product
;
__le16
version
;
__u8
vendor_stringid
;
__u8
product_stringid
;
};
struct
greybus_descriptor_serial_number
{
__le64
serial_number
;
};
struct
greybus_descriptor_string
{
__u8
id
;
__le16
length
;
__u8
string
[
0
];
};
struct
greybus_descriptor_cport
{
__le16
number
;
__u8
speed
;
// FIXME
__u8
reserved
;
};
enum
greybus_function_class
{
GREYBUS_FUNCTION_CONTROL
=
0x00
,
GREYBUS_FUNCTION_USB
=
0x01
,
...
...
@@ -81,14 +56,39 @@ struct greybus_descriptor_function {
__u8
reserved
;
};
struct
greybus_descriptor_module_id
{
__le16
vendor
;
__le16
product
;
__le16
version
;
__u8
vendor_stringid
;
__u8
product_stringid
;
};
struct
greybus_descriptor_serial_number
{
__le64
serial_number
;
};
struct
greybus_descriptor_string
{
__le16
length
;
__u8
id
;
__u8
string
[
0
];
};
struct
greybus_descriptor_cport
{
__le16
number
;
__le16
size
;
__u8
speed
;
// FIXME
__u8
reserved
;
};
struct
greybus_msg_descriptor
{
struct
greybus_descriptor_header
header
;
union
{
struct
greybus_descriptor_deviceid
device_id
;
struct
greybus_descriptor_function
function
;
struct
greybus_descriptor_module_id
module_id
;
struct
greybus_descriptor_serial_number
serial_number
;
struct
greybus_descriptor_string
string
;
struct
greybus_descriptor_cport
cport
;
struct
greybus_descriptor_function
function
;
};
};
...
...
drivers/staging/greybus/svc_msg.h
View file @
d5877800
...
...
@@ -39,14 +39,14 @@ struct svc_function_handshake {
};
struct
svc_function_unipro_set_route
{
__u8
source_
devic
e_id
;
__u8
source_
modul
e_id
;
__u8
source_cport_id
;
__u8
destination_
devic
e_id
;
__u8
destination_
modul
e_id
;
__u8
destination_cport_id
;
};
struct
svc_function_unipro_link_up
{
__u8
devic
e_id
;
__u8
modul
e_id
;
};
enum
svc_function_management_event
{
...
...
@@ -69,7 +69,7 @@ enum svc_function_hotplug_event {
struct
svc_function_hotplug
{
__u8
hotplug_event
;
/* enum svc_function_hotplug_event */
__u8
devic
e_id
;
__u8
modul
e_id
;
};
enum
svc_function_ddb_type
{
...
...
@@ -78,12 +78,12 @@ enum svc_function_ddb_type {
};
struct
svc_function_ddb_get
{
__u8
devic
e_id
;
__u8
modul
e_id
;
__u8
message_id
;
};
struct
svc_function_ddb_response
{
__u8
devic
e_id
;
__u8
modul
e_id
;
__u8
message_id
;
__le16
descriptor_length
;
__u8
ddb
[
0
];
...
...
@@ -117,12 +117,11 @@ struct svc_function_power_battery_status {
};
struct
svc_function_power_battery_status_request
{
__u8
epm_command_type
;
/* enum svc_function_epm_command_type */
__u8
device_id
;
};
struct
svc_function_power
{
__u8
power_type
;
/* enum svc_function_power_type */
__u8
module_id
;
union
{
struct
svc_function_power_battery_status
status
;
struct
svc_function_power_battery_status_request
request
;
...
...
@@ -136,7 +135,7 @@ enum svc_function_epm_command_type {
struct
svc_function_epm
{
__u8
epm_command_type
;
/* enum svc_function_epm_command_type */
__u8
devic
e_id
;
__u8
modul
e_id
;
};
enum
svc_function_suspend_command_type
{
...
...
@@ -146,7 +145,7 @@ enum svc_function_suspend_command_type {
struct
svc_function_suspend
{
__u8
suspend_command_type
;
/* enum function_suspend_command_type */
__u8
devic
e_id
;
__u8
modul
e_id
;
};
struct
svc_msg
{
...
...
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