io_uring: ensure finish_wait() is always called in __io_uring_task_cancel()
[linux/fpc-iii.git] / drivers / pinctrl / renesas / core.h
blob5ca7e0830ae9de38c5e26ee65271a9030fdd3159
1 /* SPDX-License-Identifier: GPL-2.0
3 * SuperH Pin Function Controller support.
5 * Copyright (C) 2012 Renesas Solutions Corp.
6 */
7 #ifndef __SH_PFC_CORE_H__
8 #define __SH_PFC_CORE_H__
10 #include <linux/types.h>
12 #include "sh_pfc.h"
14 struct sh_pfc_pin_range {
15 u16 start;
16 u16 end;
19 int sh_pfc_register_gpiochip(struct sh_pfc *pfc);
21 int sh_pfc_register_pinctrl(struct sh_pfc *pfc);
23 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width);
24 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width,
25 u32 data);
26 u32 sh_pfc_read(struct sh_pfc *pfc, u32 reg);
27 void sh_pfc_write(struct sh_pfc *pfc, u32 reg, u32 data);
29 int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin);
30 int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned mark, int pinmux_type);
32 const struct pinmux_bias_reg *
33 sh_pfc_pin_to_bias_reg(const struct sh_pfc *pfc, unsigned int pin,
34 unsigned int *bit);
36 unsigned int rcar_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin);
37 void rcar_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
38 unsigned int bias);
40 #endif /* __SH_PFC_CORE_H__ */