]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/fwnode.h
ACPI: Constify argument to acpi_device_is_present()
[mirror_ubuntu-bionic-kernel.git] / include / linux / fwnode.h
CommitLineData
ce793486
RW
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
15enum fwnode_type {
16 FWNODE_INVALID = 0,
17 FWNODE_OF,
18 FWNODE_ACPI,
445b0eb0 19 FWNODE_ACPI_DATA,
027b25b2 20 FWNODE_ACPI_STATIC,
16ba08d5 21 FWNODE_PDATA,
027b25b2 22 FWNODE_IRQCHIP
ce793486
RW
23};
24
25struct fwnode_handle {
26 enum fwnode_type type;
97badf87 27 struct fwnode_handle *secondary;
ce793486
RW
28};
29
2bd5452d
SA
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 */
36struct fwnode_endpoint {
37 unsigned int port;
38 unsigned int id;
39 const struct fwnode_handle *local_fwnode;
40};
41
ce793486 42#endif