cregit-Linux how code gets into the kernel

Release 4.15 include/linux/acpi_iort.h

Directory: include/linux
/*
 * Copyright (C) 2016, Semihalf
 *      Author: Tomasz Nowicki <tn@semihalf.com>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place - Suite 330, Boston, MA 02111-1307 USA.
 */

#ifndef __ACPI_IORT_H__

#define __ACPI_IORT_H__

#include <linux/acpi.h>
#include <linux/fwnode.h>
#include <linux/irqdomain.h>


#define IORT_IRQ_MASK(irq)		(irq & 0xffffffffULL)

#define IORT_IRQ_TRIGGER_MASK(irq)	((irq >> 32) & 0xffffffffULL)

int iort_register_domain_token(int trans_id, struct fwnode_handle *fw_node);
void iort_deregister_domain_token(int trans_id);
struct fwnode_handle *iort_find_domain_token(int trans_id);
#ifdef CONFIG_ACPI_IORT
void acpi_iort_init(void);
u32 iort_msi_map_rid(struct device *dev, u32 req_id);
struct irq_domain *iort_get_device_domain(struct device *dev, u32 req_id);
void acpi_configure_pmsi_domain(struct device *dev);
int iort_pmsi_get_dev_id(struct device *dev, u32 *dev_id);
/* IOMMU interface */
void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *size);
const struct iommu_ops *iort_iommu_configure(struct device *dev);
#else

static inline void acpi_iort_init(void) { }

Contributors

PersonTokensPropCommitsCommitProp
Tomasz Nowicki8100.00%1100.00%
Total8100.00%1100.00%


static inline u32 iort_msi_map_rid(struct device *dev, u32 req_id) { return req_id; }

Contributors

PersonTokensPropCommitsCommitProp
Tomasz Nowicki18100.00%1100.00%
Total18100.00%1100.00%


static inline struct irq_domain *iort_get_device_domain(struct device *dev, u32 req_id) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Tomasz Nowicki20100.00%1100.00%
Total20100.00%1100.00%


static inline void acpi_configure_pmsi_domain(struct device *dev) { }

Contributors

PersonTokensPropCommitsCommitProp
Hanjun Guo11100.00%1100.00%
Total11100.00%1100.00%

/* IOMMU interface */
static inline void iort_dma_setup(struct device *dev, u64 *dma_addr, u64 *size) { }

Contributors

PersonTokensPropCommitsCommitProp
Lorenzo Pieralisi19100.00%2100.00%
Total19100.00%2100.00%


static inline const struct iommu_ops *iort_iommu_configure( struct device *dev) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Lorenzo Pieralisi18100.00%1100.00%
Total18100.00%1100.00%

#endif #endif /* __ACPI_IORT_H__ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Tomasz Nowicki13253.44%225.00%
Lorenzo Pieralisi8233.20%450.00%
Hanjun Guo3313.36%225.00%
Total247100.00%8100.00%
Directory: include/linux
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.