cregit-Linux how code gets into the kernel

Release 4.12 include/linux/dma/hsu.h

/*
 * Driver for the High Speed UART DMA
 *
 * Copyright (C) 2015 Intel Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _DMA_HSU_H

#define _DMA_HSU_H

#include <linux/device.h>
#include <linux/interrupt.h>

#include <linux/platform_data/dma-hsu.h>

struct hsu_dma;

/**
 * struct hsu_dma_chip - representation of HSU DMA hardware
 * @dev:                 struct device of the DMA controller
 * @irq:                 irq line
 * @regs:                memory mapped I/O space
 * @length:              I/O space length
 * @offset:              offset of the I/O space where registers are located
 * @hsu:                 struct hsu_dma that is filed by ->probe()
 * @pdata:               platform data for the DMA controller if provided
 */

struct hsu_dma_chip {
	
struct device			*dev;
	
int				irq;
	
void __iomem			*regs;
	
unsigned int			length;
	
unsigned int			offset;
	
struct hsu_dma			*hsu;
};

#if IS_ENABLED(CONFIG_HSU_DMA)
/* Export to the internal users */
int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr,
		       u32 *status);
int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status);

/* Export to the platform drivers */
int hsu_dma_probe(struct hsu_dma_chip *chip);
int hsu_dma_remove(struct hsu_dma_chip *chip);
#else

static inline int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr, u32 *status) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Chuah, Kim Tatt23100.00%1100.00%
Total23100.00%1100.00%


static inline int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Heikki Krogerus1672.73%133.33%
Chuah, Kim Tatt418.18%133.33%
Andy Shevchenko29.09%133.33%
Total22100.00%3100.00%


static inline int hsu_dma_probe(struct hsu_dma_chip *chip) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
Heikki Krogerus16100.00%1100.00%
Total16100.00%1100.00%


static inline int hsu_dma_remove(struct hsu_dma_chip *chip) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Heikki Krogerus15100.00%1100.00%
Total15100.00%1100.00%

#endif /* CONFIG_HSU_DMA */ #endif /* _DMA_HSU_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Andy Shevchenko8845.36%250.00%
Heikki Krogerus5829.90%125.00%
Chuah, Kim Tatt4824.74%125.00%
Total194100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.