Rafael J. Wysocki | ce79348 | 2015-03-16 23:49:03 +0100 | [diff] [blame] | 1 | /* |
| 2 | * fwnode.h - Firmware device node object handle type definition. |
| 3 | * |
| 4 | * Copyright (C) 2015, Intel Corporation |
| 5 | * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #ifndef _LINUX_FWNODE_H_ |
| 13 | #define _LINUX_FWNODE_H_ |
| 14 | |
| 15 | enum fwnode_type { |
| 16 | FWNODE_INVALID = 0, |
| 17 | FWNODE_OF, |
| 18 | FWNODE_ACPI, |
Rafael J. Wysocki | 445b0eb | 2015-08-27 04:36:14 +0200 | [diff] [blame] | 19 | FWNODE_ACPI_DATA, |
Lorenzo Pieralisi | 027b25b | 2016-11-21 10:01:33 +0000 | [diff] [blame] | 20 | FWNODE_ACPI_STATIC, |
Rafael J. Wysocki | 16ba08d | 2015-04-03 16:05:11 +0200 | [diff] [blame] | 21 | FWNODE_PDATA, |
Lorenzo Pieralisi | 027b25b | 2016-11-21 10:01:33 +0000 | [diff] [blame] | 22 | FWNODE_IRQCHIP |
Rafael J. Wysocki | ce79348 | 2015-03-16 23:49:03 +0100 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | struct fwnode_handle { |
| 26 | enum fwnode_type type; |
Rafael J. Wysocki | 97badf8 | 2015-04-03 23:23:37 +0200 | [diff] [blame] | 27 | struct fwnode_handle *secondary; |
Rafael J. Wysocki | ce79348 | 2015-03-16 23:49:03 +0100 | [diff] [blame] | 28 | }; |
| 29 | |
Sakari Ailus | 2bd5452 | 2017-03-28 10:52:25 +0300 | [diff] [blame] | 30 | /** |
| 31 | * struct fwnode_endpoint - Fwnode graph endpoint |
| 32 | * @port: Port number |
| 33 | * @id: Endpoint id |
| 34 | * @local_fwnode: reference to the related fwnode |
| 35 | */ |
| 36 | struct fwnode_endpoint { |
| 37 | unsigned int port; |
| 38 | unsigned int id; |
| 39 | const struct fwnode_handle *local_fwnode; |
| 40 | }; |
| 41 | |
Rafael J. Wysocki | ce79348 | 2015-03-16 23:49:03 +0100 | [diff] [blame] | 42 | #endif |